From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/66335 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general Subject: Re: mail-source.el patch to use netrc-parse Date: Sat, 16 Feb 2008 23:21:25 +0100 Message-ID: References: <86ejbrrvg3.fsf@lifelogs.com> Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1203359482 3153 80.91.229.12 (18 Feb 2008 18:31:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Feb 2008 18:31:22 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M14826@lists.math.uh.edu Mon Feb 18 19:31:47 2008 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1JRAmI-0001mp-88 for ding-account@gmane.org; Mon, 18 Feb 2008 19:31:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1JRAlH-0004LJ-Me; Mon, 18 Feb 2008 12:30:43 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1JRAlG-0004L1-6f for ding@lists.math.uh.edu; Mon, 18 Feb 2008 12:30:42 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1JRAlA-0007Si-2l for ding@lists.math.uh.edu; Mon, 18 Feb 2008 12:30:42 -0600 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1JRAlE-0000KI-00 for ; Mon, 18 Feb 2008 19:30:40 +0100 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JRAl5-0008IW-AI for ding@gnus.org; Mon, 18 Feb 2008 18:30:31 +0000 Original-Received: from bridgekeeper.physik.uni-ulm.de ([134.60.41.37]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 18 Feb 2008 18:30:31 +0000 Original-Received: from Reiner.Steib by bridgekeeper.physik.uni-ulm.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 18 Feb 2008 18:30:31 +0000 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 66 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: bridgekeeper.physik.uni-ulm.de X-Face: 1;h7XMU[7l}$T@J.D}5z*w8Tg'}B5ArAWc8>2X~otB;kOjKs8X%|hTC#dG:%Vpx")x7S/`v :VXU#fZW$X$zdhEU.RfVQ@<-m9IuN{Hm"fW{,5]6kR'M*vEs+{5Cj!L(JTRzA$(},?5J=sm;%Od Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:66335 Archived-At: On Tue, Feb 05 2008, Ted Zlatanov wrote: > The attached patch Please use unified (or context) diffs. > modifies mail-source.el to use a netrc (~/.authinfo) file for IMAP > fetching. It will be triggered when mail-source-authinfo-file is > not nil. It will override the :user and > :password parameters set in mail-sources unconditionally. Is it good to override it? Wouldn't it be more natural if `mail-source-authinfo-file' is used if no user/password is given in `mail-sources'? > This allows users to store their passwords for an IMAP mail source > in the authinfo file, encrypted if necessary. I think this is useful. > I use this for my IMAP fetching and it worked fine; please test > (also if you don't use the feature, make sure your IMAP fetching > works OK). I won't commit until I get confirmations it works, since > mail fetching is a sensitive area for improvements. > > I plan to add this to POP and webmail fetching as well, possibly through > mail-source-bind instead of in each individual fetching function. > Please let me know what you think. I'm not sure if I understand what you have in mind. > Also, I think instead of the current variables > > (setq > nnimap-authinfo-file "~/.authinfo.enc" > nntp-authinfo-file "~/.authinfo.enc" > mail-source-authinfo-file "~/.authinfo.enc" > smtpmail-auth-credentials "~/.authinfo.enc") > > Gnus should have a single specification: `smtpmail.el', (pop3.el) and `mail-source.el' are not Gnus specific. So it should be a general Emacs facility. So please include emacs-devel in further discussions. As all ~/.authinfo parsing is done via `netrc.el', it might make sense to define it therein? > (setq > authinfo-files '(('nnimap "~/.imap-authinfo.enc") > (t "~/.authinfo.enc"))) Maybe a simple value "~/.authinfo" should be equivalent to '((t "~/.authinfo")). > Then we can derive each of those variables at runtime, if they are not > set: > > (setq nnimap-authinfo-file > (or nnimap-authinfo-file (gnus-get-authinfo-file 'nnimap))) > > WDYT? Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/