Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* How to use `~/.authfile' for POP account
@ 2005-08-09 17:24 Yuan MEI
  2005-08-10  7:01 ` Frank Schmitt
  0 siblings, 1 reply; 3+ messages in thread
From: Yuan MEI @ 2005-08-09 17:24 UTC (permalink / raw)


My solution is
(defun passwd-from-authinfo (machine)
  (let* ((x (gnus-parse-netrc "~/.authinfo"))
         (y (gnus-netrc-machine x machine))
         (z (gnus-netrc-get y "password")))
    z))
and
(pop :server "foo.com" :user "bar"
         :password (passwd-from-authinfo "foo.com"))

Is there any ``Official'' solution to this?  Since smtp and imap could
utilize `.authfile' directly.
-- 
Yuan MEI


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

end of thread, other threads:[~2005-08-15 14:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-09 17:24 How to use `~/.authfile' for POP account Yuan MEI
2005-08-10  7:01 ` Frank Schmitt
2005-08-15 14:52   ` Yuan MEI

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