Gnus development mailing list
 help / color / mirror / Atom feed
From: Christian Limpach <Christian.Limpach@Nice.CH>
Subject: Re: ideas needed for nnmail-pop3-movemail
Date: 26 Oct 1997 19:05:22 +0100	[thread overview]
Message-ID: <x7sotopfh9.fsf@delight.pin.lu> (raw)
In-Reply-To: Stainless Steel Rat's message of "25 Oct 1997 23:33:11 -0500"

Stainless Steel Rat <ratinox@peorth.gweep.net> writes:

> Well, if iteration is handled by nnmail through an alist of mailboxes, then
> nnmail properly should also maintain cache of passwords, either in the same
> alist or a parallel alist, assuming that password caching is enabled (which
> by default it should not).  Within the let form that temporarilly binds
> pop3-maildrop and pop3-mailhost, pop3-password is bound to the cached
> password for the mailhost/maildrop or nil.  Then pop3-movemail is called
> within that let form, and everything just works.

If it is so, then the code which asks for passwords should be removed
from pop3 altogether.  Otherwise there will be two routines which
query for pop3 passwords and this is bad: if the user doesn't enter a
password at the first query (like to skip that pop server) pop3.el
will ask again (current API: no password = ask, right ?).

Also nnmail will not know wheter to save the password or not, as
pop3.el doesn't report why it failed.  Another advantage of pop3.el
handling the password caching is that there could be multiple clients
(gnus, vm) and the user would still only have to enter the password
once.  And finally I prefer to trust pop3.el with my password (after I
have seen the code) than some client.

If you look at my code, you will see, that I have indeed used a let
form to bind all the pop3 variables.  I had first added the parsing of
the pop-server specification to pop3.el, but then I decided that it
would be better to make as few changes to pop3.el as possible.  The
result was that I could move everything out of pop3.el except for
password caching.

What I don't like about my implementation is that it doesn't allow a
single host to be used several times with different
users/ports/... but this can be changed easily by extending the key
used to lookup the password in the alist.

    christian


  parent reply	other threads:[~1997-10-26 18:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <x74t6c2gbt.fsf@peorth.gweep.net>
1997-10-24 22:36 ` Lars Magne Ingebrigtsen
     [not found]   ` <x7bu0elgtx.fsf@peorth.gweep.net>
1997-10-25  3:20     ` Christian Limpach
     [not found]       ` <x7lnzhm9dk.fsf@peorth.gweep.net>
1997-10-26 18:05         ` Christian Limpach [this message]
     [not found]           ` <x73elo467n.fsf@peorth.gweep.net>
1997-10-27 13:47             ` Christian Limpach

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=x7sotopfh9.fsf@delight.pin.lu \
    --to=christian.limpach@nice.ch \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).