From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/5517 Path: news.gmane.org!not-for-mail From: Frank Schmitt Newsgroups: gmane.emacs.gnus.user Subject: Re: How to use `~/.authfile' for POP account Date: Wed, 10 Aug 2005 09:01:26 +0200 Organization: Hamme net, kren mer och nimmi Message-ID: References: Reply-To: replies@frank-schmitt.net NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138671220 27722 80.91.229.2 (31 Jan 2006 01:33:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 01:33:40 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:35:25 2006 Original-Path: quimby.gnus.org!uio.no!feed.news.tiscali.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-X-Trace: individual.net EDWOfh/F6tJleTJu/ARs1wTM7aa+9ss2rv2nYuDWjtMI+lWGs= X-Orig-Path: mid.gehheimdienst.de!not-for-mail X-Face: :EL9TzGRN){7|oE2~xQ8Q(VjpjsXgX$~gi&rYD5J5p)$w\Thdl~v:7h`/n)J!8nXT%_+Wj6}@EHM8}QbA(9nX-wrQ:ch1%DauV[?kFasXUcnL#+"K8zOx&$@/M'/},q-eztaJra1|?C+p$h\2XnK-HB"8_U "Yuan MEI" writes: > 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. You should use ~/.authinfo (for all protocols). Write something like this in it: machine pop.isp.com login ymei password f.h637Fj -- Did you ever realize how much text fits in eighty columns? If you now consider that a signature usually consists of up to four lines, this gives you enough space to spread a tremendous amount of information with your messages. So seize this opportunity and don't waste your signature with bullshit nobody will read.