On Wed, May 23, 2007 at 11:42:21AM -0600, Kyle Wheeler wrote: > On Wednesday, May 23 at 05:16 PM, quoth Luciano Rocha: >> Support for reading users and/or passwords from netrc(5) >> >> Extended mutt_account_getuser and mutt_account_getpass in account.c with >> netrc_user and netrc_password for retrieving username and password from >> ~/.netrc. > > ...according to my netrc(5) man pages, ~/.netrc is specific to ftp. Why is > fetching information out of it and using it for email a good idea? Well, for starters, it isn't called .ftprc. =) But wget (including http auth), fetchmail, some scripts I made and some other utilities use it. And as I use fetchmail extensively, I really didn't want to keep passwords in two or more different places. $ find /usr/share/man/ -name \*.gz | xargs zgrep -F .netrc -l /usr/share/man/man3/curl_easy_setopt.3.gz /usr/share/man/man3/rexec.3.gz /usr/share/man/man3/libcurl-tutorial.3.gz /usr/share/man/man3/Net::Netrc.3pm.gz /usr/share/man/man1/rexec.1.gz /usr/share/man/man1/curl.1.gz /usr/share/man/man1/perltoc.1.gz /usr/share/man/man1/fetchmail.1.gz /usr/share/man/man1/mkxauth.1x.gz /usr/share/man/man1/pftp.1.gz /usr/share/man/man1/ftp.1.gz /usr/share/man/man1/lftp.1.gz /usr/share/man/man1/wget.1.gz /usr/share/man/man5/netrc.5.gz Not many, and maybe using it outside of ftp goes against some standard practice, but I wanted that functionality, implemented, and maybe it will be useful for someone else. -- lfr 0/0
Attachment:
pgpZCanZGPQA5.pgp
Description: PGP signature