From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/5509 Path: news.gmane.org!not-for-mail From: "Yuan MEI" Newsgroups: gmane.emacs.gnus.user Subject: How to use `~/.authfile' for POP account Date: Wed, 10 Aug 2005 01:24:05 +0800 Organization: ymei Studio Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138671213 27689 80.91.229.2 (31 Jan 2006 01:33:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 01:33:33 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:35:24 2006 Original-Newsgroups: gnu.emacs.gnus Original-NNTP-Posting-Host: /S+G8SUwIbB9fB4q613PSA.domitilla.aioe.org Original-X-Complaints-To: abuse@aioe.org Original-NNTP-Posting-Date: Tue, 9 Aug 2005 17:23:52 +0000 (UTC) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.0 (gnu/linux) Original-Path: quimby.gnus.org!uio.no!npeer.de.kpn-eurorings.net!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!bandi.nntp.kabelfoon.nl!82.105.139.196.MISMATCH!news.nntprelay.net!ilaria.aioe.org!aioe.org!not-for-mail Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:5651 Original-Lines: 14 X-Gnus-Article-Number: 5651 Tue Jan 17 17:35:24 2006 Xref: news.gmane.org gmane.emacs.gnus.user:5509 Archived-At: 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