mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(smtpmail-send-command): Don't include AUTH passwords in the log buffer
This commit is contained in:
parent
1c14176cfd
commit
7520339cd1
2 changed files with 7 additions and 2 deletions
|
|
@ -891,8 +891,8 @@ The list is in preference order.")
|
|||
|
||||
(defun smtpmail-send-command (process command)
|
||||
(goto-char (point-max))
|
||||
(if (= (aref command 0) ?P)
|
||||
(insert "PASS <omitted>\r\n")
|
||||
(if (string-match "\\`AUTH [A-Z]+ " command)
|
||||
(insert (match-string 0 command) "<omitted>\r\n")
|
||||
(insert command "\r\n"))
|
||||
(setq smtpmail-read-point (point))
|
||||
(process-send-string process command)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue