From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Robert J. Chassell" Newsgroups: gmane.emacs.devel Subject: Re: multiple POP support for RMAIL Date: Sun, 22 Feb 2004 08:43:16 -0500 (EST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: Reply-To: bob@rattlesnake.com NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1077457643 30501 80.91.224.253 (22 Feb 2004 13:47:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 22 Feb 2004 13:47:23 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun Feb 22 14:47:15 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Autwx-000191-00 for ; Sun, 22 Feb 2004 14:47:15 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Autww-000225-00 for ; Sun, 22 Feb 2004 14:47:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1Autv7-0008Vx-AE for emacs-devel@quimby.gnus.org; Sun, 22 Feb 2004 08:45:21 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1Autui-0008MD-V5 for emacs-devel@gnu.org; Sun, 22 Feb 2004 08:44:56 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1AutuC-00084D-QZ for emacs-devel@gnu.org; Sun, 22 Feb 2004 08:44:55 -0500 Original-Received: from [140.186.114.245] (helo=rattlesnake.com) by monty-python.gnu.org with esmtp (Exim 4.30) id 1AutuB-00083y-4X for emacs-devel@gnu.org; Sun, 22 Feb 2004 08:44:23 -0500 Original-Received: by rattlesnake.com via sendmail from stdin id (Debian Smail3.2.0.115) Sun, 22 Feb 2004 08:43:16 -0500 (EST) Original-To: emacs-devel@gnu.org, bob@rattlesnake.com In-reply-to: (message from Thien-Thi Nguyen on 22 Feb 2004 06:14:38 -0500) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:20112 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:20112 ...there is currently no way to specify multiple passwords non-interactively. Please implement this feature Thien-Thi Nguyen responded actually the code posted does indeed support this usage, ... Thank you for explaining. Unfortunately, I tried what I understood to do and it fails. I evaluated the following: (setq rmail-pop-password nil) (setq rmail-pop-password-required t) (setq rmail-primary-inbox-list '("po:AAA:foo.edu" "po:AAA:bar.net" "po:BBB:bar.net" "po:CCC:bar.net")) (rmail-set-pop-password "XXX" "foo.edu") (rmail-set-pop-password "YYY" "bar.net") (rmail-set-pop-password "ZZZ" "bar.net") (rmail-set-pop-password "ZZZ" "bar.net") and then tried to fetch email from my four different accounts. Instead, I received this error message: Getting mail from post office ... movemail: Error connecting to POP server: -ERR [AUTH] Password supplied for "bob" is incorrect. (No new mail has arrived) Note that I have the same user name for two different accounts, AAA on foo.edu and AAA on bar.net and the same password on BBB@bar.net and on CCC@bar.net Thinking that the overlap caused trouble, I commented out ;; (rmail-set-pop-password "YYY" "bar.net") ;; (rmail-set-pop-password "ZZZ" "bar.net") and reevaluated the other expressions and still received the same message. (However, I did not set any values to nil first, but that should not have mattered.) Before I could fetch email from the one POP account, I had to do this, including set the various values to nil first (which I find strange): (setq rmail-pop-password-required nil) (setq rmail-primary-inbox-list '(nil)) (rmail-set-pop-password nil nil) (setq rmail-primary-inbox-list '("po:AAA:foo.edu" "/var/mail/AAA")) (setq rmail-pop-password-required t) (setq rmail-pop-password "XXX") (setq rmail-preserve-inbox nil) (Normally, I set (setq rmail-preserve-inbox nil) but this time I wanted to make sure I would not lose it.) (Incidentally, I think the format for rmail-primary-inbox-list should be [METHOD:][USER@](HOST|PATH|HOST/PATH)[:PASSWORD] such as (setq rmail-primary-inbox-list '("po:AAA@foo.edu:XXX" "po:BBB@bar.net/weird/path/to/BBB:YYY" "/var/mail/AAA")) where POP is the default method, the local account's USER is the default user, localmachine is the default HOST, "/var/mail/USER" is the default path, and the local account's PASSWORD is the default password. Following ttn's good suggestion, this expression could go into a separate `chmod go-rwx' file to provide at least some security, like a .netrc file.) -- Robert J. Chassell Rattlesnake Enterprises http://www.rattlesnake.com GnuPG Key ID: 004B4AC8 http://www.teak.cc bob@rattlesnake.com