From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/64435 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general Subject: pop3 password from ~/.authinfo Date: Fri, 23 Mar 2007 22:38:46 +0100 Message-ID: Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1174686114 14722 80.91.229.12 (23 Mar 2007 21:41:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 23 Mar 2007 21:41:54 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M12959@lists.math.uh.edu Fri Mar 23 22:41:48 2007 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 1HUrW8-0007S7-Ga for ding-account@gmane.org; Fri, 23 Mar 2007 22:41:48 +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 1HUrV7-0006T7-Rj; Fri, 23 Mar 2007 16:40:45 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1HUrV5-0006Sd-JO for ding@lists.math.uh.edu; Fri, 23 Mar 2007 16:40:43 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.63) (envelope-from ) id 1HUrV4-0005mW-8L for ding@lists.math.uh.edu; Fri, 23 Mar 2007 16:40:43 -0500 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 1HUrV2-0008ND-00 for ; Fri, 23 Mar 2007 22:40:40 +0100 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HUrUx-0002aN-NG for ding@gnus.org; Fri, 23 Mar 2007 22:40:35 +0100 Original-Received: from bridgekeeper.physik.uni-ulm.de ([134.60.10.123]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 23 Mar 2007 22:40:35 +0100 Original-Received: from Reiner.Steib by bridgekeeper.physik.uni-ulm.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 23 Mar 2007 22:40:35 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 31 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: bridgekeeper.physik.uni-ulm.de X-Face: :6KQZ[nyoS_edmB.%gw-=)BYth^|2+Y+^cu%I$FSx!&>-'om>3H7A|M&n(V7fIo3P.;yo.b yq4$p;ZaBtkv)\}biaiBQe"mD}iib1AA@99-fZ7i*bLhNRVC&0Wkxg9)SH?oWc@{ Mail-Copies-To: nobody User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.95 (gnu/linux) Cancel-Lock: sha1:ym5isWg2FXXAUPRIxUIz0RXx/5w= X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:64435 Archived-At: Hi, there's code from Kai Großjohann to pt POP3 passwords in ~/.authinfo: ,----[ ] | (setq mail-sources `(... (pop :server "foo" :user "bar" | :passwd ,(pw-from-authinfo)) ...)) | | (defun pw-from-authinfo () | [...] `---- ,----[ http://thread.gmane.org/gmane.emacs.gnus.user/8170/focus=8194 ] | (defun pw-from-authinfo (popserver) | (require 'nntp) | (let* ((x (netrc-parse nntp-authinfo-file)) | (item (netrc-machine x popserver)) | (pw (netrc-get item "password"))) | pw)) `---- People asked why this is not included in Gnus proper. Could anyone using POP3 check the code an include (and document) it if it's good? Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/