Gnus development mailing list
 help / color / mirror / Atom feed
* mail-sources and .authinfo
@ 2002-01-27 16:51 Kai Großjohann
  0 siblings, 0 replies; only message in thread
From: Kai Großjohann @ 2002-01-27 16:51 UTC (permalink / raw)


WIBNI I could put the passwd for a mail-sources entry in .authinfo?
I accomplished it via the following ugly hack:

(setq mail-sources `(... (pop :server "foo" :user "bar"
                              :passwd ,(pw-from-authinfo)) ...))

(defun pw-from-authinfo ()
  (require 'nntp)
  (let* ((x (gnus-parse-netrc nntp-authinfo-file))
         (item (gnus-netrc-machine x "pop"))
         (pw (gnus-netrc-get item "password")))
    pw))

kai
-- 
~/.signature is: umop 3p!sdn    (Frank Nobis)



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-01-27 16:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-27 16:51 mail-sources and .authinfo Kai Großjohann

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