From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/9818 Path: main.gmane.org!not-for-mail From: Daniel Simms Newsgroups: gmane.emacs.gnus.general Subject: Re: pop mailboxes Date: 05 Feb 1997 00:35:43 -0800 Sender: dsimms@ba.alink.net Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035149786 20736 80.91.224.250 (20 Oct 2002 21:36:26 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 21:36:26 +0000 (UTC) Cc: ding@ifi.uio.no 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 AAA14568 for ; Wed, 5 Feb 1997 00:53:42 -0800 Original-Received: from alink.net (ns.alink.net [207.135.127.66]) by ifi.uio.no with ESMTP (8.6.11/ifi2.4) id for ; Wed, 5 Feb 1997 09:36:34 +0100 Original-Received: from yoyo.alink.net (dsimms@ba.alink.net [207.135.127.69]) by alink.net (8.8.0/8.7.3) with SMTP id AAA26090; Wed, 5 Feb 1997 00:36:31 -0800 Original-To: Rich Pieri In-Reply-To: Rich Pieri's message of 04 Feb 1997 22:08:34 -0500 Original-Lines: 74 X-Mailer: Red Gnus v0.82/Emacs 19.34 Xref: main.gmane.org gmane.emacs.gnus.general:9818 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:9818 >>>>> "RP" == Rich Pieri writes: >>>> "DS" == Daniel Simms writes: DS>> (setq nnmail-movemail-program 'pop3-really-movemail) DS>> (require 'pop3) RP> This will not work. nnmail-movemail-program expects an external RP> program, not a function. Really? >>>>> "I" == (gnus)Mail Backend Variables I> `nnmail-movemail-program' I> This program is executed to move mail from the user's inbox to her I> home directory. The default is `movemail'. I> I> This can also be a function. In that case, the function will be I> called with two parameters -- the name of the inbox, and the file I> to be moved to. >>>>> "N" == ~/emacs/packages/gnus-5.4.9/lisp/nnmail.el [[...]] N> ;; Function rewritten from rmail.el. N> (defun nnmail-move-inbox (inbox) [[...]] N> ;; If getting from mail spool directory, use movemail to move N> ;; rather than just renaming, so as to interlock with the N> ;; mailer. N> (unwind-protect N> (save-excursion N> (setq errors (generate-new-buffer " *nnmail loss*")) N> (buffer-disable-undo errors) N> (let ((default-directory "/")) N> (if (nnheader-functionp nnmail-movemail-program) N> (funcall nnmail-movemail-program inbox tofile) N> (apply N> 'call-process N> (append N> (list N> (expand-file-name nnmail-movemail-program N> exec-directory) N> nil errors nil inbox tofile) N> (when nnmail-internal-password N> (list (prin1-to-string nnmail-internal-password))))))) (Sorry, I'm already two versions out of date, but one was released *while* I was writing this email.) RP> At this time, nnmail also does not use pop3.el. Well, I had kind of noticed that, but figured that it was just an option. Setting nnmail-movemail-program is about the only thing you really need to do to make gnus really use pop3.el. RP> I had not gotten around to rewriting that section of nnmail RP> before Red went into feature freeze. I didn't noticed anything on the wish list (or mailing list) about this. What did you have in mind? (This is more out of curiousity than it is relevant to this particular thread.) -- Daniel Simms "A common mistake that people make when trying to design dsimms@alink.net something completely foolproof [is] to underestimate the (408) 720-6161 ingenuity of complete fools" -Ford Prefect