all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: Updating movemail in Emacs
Date: Thu, 18 Nov 2004 12:49:03 -0700	[thread overview]
Message-ID: <cniubk$3j2$1@sea.gmane.org> (raw)
In-Reply-To: <200411181708.iAIH8e028114@Mirddin.farlep.net>

Sergey Poznyakoff wrote:
 > The attached patch automatically detects which flavor of movemail
 > is in use: native Emacs or GNU mailutils. Unless the variable
 > rmail-movemail-program is set, it looks for the movemail program
 > in a list of directories composed of rmail-movemail-search-path,
 > exec-path and exec-directory.

I think it should search for rmail-movemail-program in those directories
even if it's set (to a non-absolute name):

(defcustom rmail-movemail-program "movemail"
   "If non-nil, name of program for fetching new mail."
   :group 'rmail-retrieve
   :type 'string)

(defun rmail-autodetect ()
   (if (file-name-absolute-p rmail-movemail-program)
       (rmail-probe rmail-movemail-program)
     (let ((exec-path (append rmail-movemail-search-path
                              exec-path
                              (list exec-directory))))
       (rmail-probe (setq rmail-movemail-program
			 (executable-find rmail-movemail-program))))))

...

 > @@ -3841,12 +3917,15 @@ TEXT and INDENT are not used."
 >      (setq rmail-pop-password nil)
 >      (setq rmail-encoded-pop-password nil)))
 >
 > -(defun rmail-get-pop-password ()
 > -  "Get the password for retrieving mail from a POP server.  If none
 > +(defun rmail-get-pop-password (imap)
 > +  "Get the password for retrieving mail from a POP or IMAP server. 
If none
 >  has been set, then prompt the user for one."
 >    (if (not rmail-encoded-pop-password)
 >        (progn (if (not rmail-pop-password)
 > -		 (setq rmail-pop-password (read-passwd "POP password: ")))
 > +		 (setq rmail-pop-password
 > +		       (read-passwd (if imap
 > +					"IMAP password: "
 > +				      "POP password: "))))
 >  	     (rmail-set-pop-password rmail-pop-password)
 >  	     (setq rmail-pop-password nil)))
 >    (rmail-encode-string rmail-encoded-pop-password (emacs-pid)))

Wouldn't it be cleaner to name this function rmail-get-remote-password
and the variable rmail-remote-password?  (If not, at least make the IMAP
argument to rmail-get-pop-password &optional).

Even better, maintain both rmail-pop-password and rmail-imap-password so
the user can access multiple remote mailboxes.

-- 
Kevin Rodgers

  parent reply	other threads:[~2004-11-18 19:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1CNjv3-0007le-B5@fencepost.gnu.org>
     [not found] ` <200411011451.JAA28950@smtp.ott.qnx.com>
     [not found]   ` <200411011509.iA1F91017792@Mirddin.farlep.net>
     [not found]     ` <E1COzKp-0007i0-Dc@fencepost.gnu.org>
     [not found]       ` <200411031853.iA3IrL011498@Mirddin.farlep.net>
     [not found]         ` <E1CPoRj-00040s-F8@fencepost.gnu.org>
2004-11-18 17:08           ` Updating movemail in Emacs Sergey Poznyakoff
2004-11-18 18:56             ` Robert J. Chassell
2004-11-19 10:42               ` Sergey Poznyakoff
2004-11-18 19:49             ` Kevin Rodgers [this message]
     [not found]             ` <E1CVgFF-00006Y-3I@fencepost.gnu.org>
2004-11-22 13:57               ` Sergey Poznyakoff

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='cniubk$3j2$1@sea.gmane.org' \
    --to=ihs_4664@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.