Gnus development mailing list
 help / color / mirror / Atom feed
* nnimap.el: small patch to skip "Store password?" prompt
@ 2004-02-03  2:46 Mark Plaksin
  2004-03-12 19:17 ` Reiner Steib
  0 siblings, 1 reply; 3+ messages in thread
From: Mark Plaksin @ 2004-02-03  2:46 UTC (permalink / raw)


Here's a small patch to nnimap.el which allows you to skip the "Store
password for this session?" prompt.  If nnimap-store-password is t, the
password will always be stored and you won't be prompted.

I always want nnimap to store my passwords so this saves me a few
keystrokes.

--- imap.el	2004-02-02 21:37:49.000000000 -0500
+++ imap.el.happy	2004-02-02 21:40:20.000000000 -0500
@@ -311,6 +311,9 @@
 (defvar imap-error nil
   "Error codes from the last command.")
 
+(defvar nnimap-store-password
+  "If t store password without prompting.")
+
 ;; Internal constants.  Change theese and die.
 
 (defconst imap-default-port 143)
@@ -824,7 +827,8 @@
 		(setq ret t
 		      imap-username user)
 		(if (and (not imap-password)
-			 (y-or-n-p "Store password for this session? "))
+			 (or nnimap-store-password
+			     (y-or-n-p "Store password for this session? ")))
 		    (setq imap-password passwd)))
 	    (message "Login failed...")
 	    (setq passwd nil)




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-03-12 19:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-03  2:46 nnimap.el: small patch to skip "Store password?" prompt Mark Plaksin
2004-03-12 19:17 ` Reiner Steib
2004-03-12 19:46   ` Simon Josefsson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).