From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/10658 Path: main.gmane.org!not-for-mail From: wmperry@aventail.com (William M. Perry) Newsgroups: gmane.emacs.gnus.general Subject: Re: nnmail-spool-file should be a list... Date: 08 Apr 1997 21:49:39 -0700 Sender: wmperry@wmperry.in.aventail.com Message-ID: <86iv1wpzq4.fsf@wmperry.in.aventail.com> References: <86ybatw9jd.fsf@kramer.in.aventail.com> Reply-To: wmperry@aventail.com NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035150491 25625 80.91.224.250 (20 Oct 2002 21:48:11 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 21:48:11 +0000 (UTC) Cc: "(ding)" Return-Path: Original-Received: from ifi.uio.no (0@ifi.uio.no [129.240.64.2]) by deanna.miranova.com (8.8.5/8.8.5) with SMTP id VAA19564 for ; Tue, 8 Apr 1997 21:55:51 -0700 Original-Received: from wmperry.in.aventail.com (wmperry@wmperry.oz.net [207.13.185.53]) by ifi.uio.no with ESMTP (8.6.11/ifi2.4) id for ; Wed, 9 Apr 1997 06:51:17 +0200 Original-Received: (from wmperry@localhost) by wmperry.in.aventail.com (8.7.6/8.7.3) id VAA00575; Tue, 8 Apr 1997 21:49:40 -0700 Original-To: Stainless Steel Rat Errors-to: wmperry@aventail.com X-Face: O~Rn;(l][/-o1sALg4A@xpE:9-"'IR[%;,,!m7 writes: > -----BEGIN PGP SIGNED MESSAGE----- > > >>>>> "WMP" == William M Perry 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.