+2011-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
+
+ * mail/smtpmail.el (smtpmail-send-command): Don't include AUTH
+ passwords in the log buffer.
+
2011-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
* textmodes/bibtex.el (bibtex-complete-string-cleanup)
(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)