aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen2011-09-14 23:59:50 +0200
committerLars Magne Ingebrigtsen2011-09-14 23:59:50 +0200
commit7520339cd1226cd3d4c0691df4b2291aa60b7118 (patch)
treec00b40708626d7b1b664c7435715137aa6b18ed8
parent1c14176cfd92376a14e4dbce27eb0c6457d12061 (diff)
downloademacs-7520339cd1226cd3d4c0691df4b2291aa60b7118.tar.gz
emacs-7520339cd1226cd3d4c0691df4b2291aa60b7118.zip
(smtpmail-send-command): Don't include AUTH passwords in the log buffer
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/mail/smtpmail.el4
2 files changed, 7 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index a8c50789a84..6804f4150af 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12011-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
2
3 * mail/smtpmail.el (smtpmail-send-command): Don't include AUTH
4 passwords in the log buffer.
5
12011-09-14 Stefan Monnier <monnier@iro.umontreal.ca> 62011-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * textmodes/bibtex.el (bibtex-complete-string-cleanup) 8 * textmodes/bibtex.el (bibtex-complete-string-cleanup)
diff --git a/lisp/mail/smtpmail.el b/lisp/mail/smtpmail.el
index 544570a1bc3..42c43c0951c 100644
--- a/lisp/mail/smtpmail.el
+++ b/lisp/mail/smtpmail.el
@@ -891,8 +891,8 @@ The list is in preference order.")
891 891
892(defun smtpmail-send-command (process command) 892(defun smtpmail-send-command (process command)
893 (goto-char (point-max)) 893 (goto-char (point-max))
894 (if (= (aref command 0) ?P) 894 (if (string-match "\\`AUTH [A-Z]+ " command)
895 (insert "PASS <omitted>\r\n") 895 (insert (match-string 0 command) "<omitted>\r\n")
896 (insert command "\r\n")) 896 (insert command "\r\n"))
897 (setq smtpmail-read-point (point)) 897 (setq smtpmail-read-point (point))
898 (process-send-string process command) 898 (process-send-string process command)