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

* Re: nnimap.el: small patch to skip "Store password?" prompt
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Reiner Steib @ 2004-03-12 19:17 UTC (permalink / raw)


On Tue, Feb 03 2004, Mark Plaksin wrote:

> 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.

That's exactly what I want, too. :-)

I already had a (probably very similar) patch in my local copy for
several months, but I didn't commit it yet (lack of docu, ...).  I've
committed my patch now.

I couldn't find a suitable place to document the new variable
`imap-store-password' in `gnus.texi'.  This is quite surprising,
because we have several defcustoms in `imap.el'.  But most (or all?)
of them are not documented in the manual.

Maybe we should another node "IMAP variables" after (info "(gnus)IMAP")?

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo--- PGP key available via WWW   http://rsteib.home.pages.de/




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

* Re: nnimap.el: small patch to skip "Store password?" prompt
  2004-03-12 19:17 ` Reiner Steib
@ 2004-03-12 19:46   ` Simon Josefsson
  0 siblings, 0 replies; 3+ messages in thread
From: Simon Josefsson @ 2004-03-12 19:46 UTC (permalink / raw)


Reiner Steib <4.uce.03.r.s@nurfuerspam.de> writes:

> I couldn't find a suitable place to document the new variable
> `imap-store-password' in `gnus.texi'.  This is quite surprising,
> because we have several defcustoms in `imap.el'.  But most (or all?)
> of them are not documented in the manual.

The reason is that imap.el is not intended to be Gnus specific.

> Maybe we should another node "IMAP variables" after (info "(gnus)IMAP")?

Ideally there should be a imap.texi manual, but until someone writes
that, it is probably a good idea to start documenting the variables
somewhere.  Go for it.



^ 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).