Gnus development mailing list
 help / color / mirror / Atom feed
From: wmperry@aventail.com (William M. Perry)
Cc: "(ding)" <ding@ifi.uio.no>
Subject: Re: nnmail-spool-file should be a list...
Date: 08 Apr 1997 21:49:39 -0700	[thread overview]
Message-ID: <86iv1wpzq4.fsf@wmperry.in.aventail.com> (raw)
In-Reply-To: Stainless Steel Rat's message of 08 Apr 1997 20:38:41 -0400

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

> -----BEGIN PGP SIGNED MESSAGE-----
> 
> >>>>> "WMP" == William M Perry <wmperry@aventail.com> writes:
> 
> WMP> (setq nnmail-spool-files '("po:wmperry@aventail.com"
> WMP>                            "po:wmperry@oz.net"
> WMP>                            "/var/spool/mail/wmperry"))
> 
> Here is a problem that a few have run into: pop3 cannot deal with local
> mail spool files; it is strictly a pop interface.  I expect the IMAP
> equivalent to have a similar problem.  On the other hand, movemail is kinda
> lame in a variety of ways but sometimes you need it.
> 
> To do things right, nnmail-spool-files should really be an alist, something
> like this, to ensure that the correct method is used to retrieve mail:
> 
> (setq nnmail-spool-methods
>       '(("po:wmperry@aventail.com" . 'nnmail-pop3-movemail) ; POP3
>         ("po:wmperry@oz.net"       . 'nnmail-imap-movemail) ; IMAP
>         ("/var/spool/mail/wmperry" . "movemail")            ; local spool file
>         ))

  Well, in case anyone is interested, this is what I ended up with as just
a quick hack.

(setq nnmail-movemail-program 'my-movemail
      nnmail-spool-file 'pop)

(defun my-movemail (inbox crashbox)
  (require 'vm)
  (if (getenv "MAIL")
      (vm-spool-move-mail (getenv "MAIL") crashbox))
  (vm-pop-move-mail "oz.net:110:pass:wmperry:*" crashbox)
  (vm-pop-move-mail "aventail.com:110:pass:wmperry:*" crashbox))

It at least works. :)  The pop support in VM is quite nice and gives
_great_ feedback during mail downloads, and lets you limit both the # of
messages, the total size of the messages, and the max size of a message
that it will download in a single retrieval session.  Pretty nice - we
should rip code out of it, or at least mimic the functionality.  I'd like
to eventually see VM + GNUS use the same POP3 backend.

-Bill P.


  parent reply	other threads:[~1997-04-09  4:49 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-04-08 20:21 William M. Perry
1997-04-08 21:13 ` William M. Perry
1997-04-09  0:13   ` Sudish Joseph
1997-04-09  4:25     ` William M. Perry
1997-04-09  0:38 ` Stainless Steel Rat
1997-04-09  2:17   ` John McClary Prevost
1997-04-09  4:49   ` William M. Perry [this message]
1997-04-09  8:58     ` Per Abrahamsen
1997-04-09 11:49       ` Hrvoje Niksic
1997-04-09 14:16         ` William M. Perry
1997-04-09 17:45           ` Hrvoje Niksic
1997-04-09 22:25     ` Stainless Steel Rat

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=86iv1wpzq4.fsf@wmperry.in.aventail.com \
    --to=wmperry@aventail.com \
    --cc=ding@ifi.uio.no \
    /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).