-2011-04-21 Teodor Zlatanov <tzz@lifelogs.com>
+2011-04-22 Teodor Zlatanov <tzz@lifelogs.com>
+
+ * nnimap.el (nnimap-user): New backend variable.
+ (nnimap-open-connection-1): Use it.
+ (nnimap-credentials): Accept user parameter so it's explicit what user
+ name is desired.
* gnus-sum.el (gnus-extra-headers): Add Keywords, Cc, and Gcc to
default.
(defvoo nnimap-address nil
"The address of the IMAP server.")
+(defvoo nnimap-user nil
+ "Username to use for authentication to the IMAP server.")
+
(defvoo nnimap-server-port nil
"The IMAP port used.
If nnimap-stream is `ssl', this will default to `imaps'. If not,
(push (current-buffer) nnimap-process-buffers)
(current-buffer)))
-(defun nnimap-credentials (address ports)
+(defun nnimap-credentials (address ports user)
(let* ((auth-source-creation-prompts
'((user . "IMAP user at %h: ")
(secret . "IMAP password for %u@%h: ")))
(found (nth 0 (auth-source-search :max 1
:host address
:port ports
+ :user user
:require '(:user :secret)
:create t))))
(if found
(list
nnimap-address
(nnoo-current-server 'nnimap)))
- ports))))
+ ports
+ nnimap-user))))
(setq nnimap-object nil)
(let ((nnimap-inhibit-logging t))
(setq login-result