From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/7813 Path: main.gmane.org!not-for-mail From: Raja R Harinath Newsgroups: gmane.emacs.gnus.general Subject: Re: how do I fcc: a nnml folder? and what is gcc? (gnus 5.3) Date: 04 Sep 1996 20:01:29 -0500 Sender: harinath@cs.umn.edu Message-ID: References: <199609041433.HAA17952@kelly.teleport.com> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 (generated by tm-edit 7.68) Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1035148074 8607 80.91.224.250 (20 Oct 2002 21:07:54 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 21:07:54 +0000 (UTC) Cc: Steven L Baur , Randal L Schwartz Return-Path: ding-request@ifi.uio.no Original-Received: from ifi.uio.no (ifi.uio.no [129.240.64.2]) by deanna.miranova.com (8.7.5/8.6.9) with SMTP id SAA27458 for ; Wed, 4 Sep 1996 18:11:27 -0700 Original-Received: from mail.cs.umn.edu (mail.cs.umn.edu [128.101.149.1]) by ifi.uio.no with ESMTP (8.6.11/ifi2.4) id for ; Thu, 5 Sep 1996 03:02:07 +0200 Original-Received: from ashoka.cs.umn.edu (harinath@ashoka.cs.umn.edu [128.101.230.13]) by mail.cs.umn.edu (8.7.5/8.7.3) with ESMTP id UAA12365; Wed, 4 Sep 1996 20:01:33 -0500 (CDT) Original-Received: (harinath@localhost) by ashoka.cs.umn.edu (8.6.12/8.6.12) id UAA14771; Wed, 4 Sep 1996 20:01:31 -0500 Original-To: ding@ifi.uio.no In-Reply-To: Steven L Baur's message of 04 Sep 1996 16:27:57 -0700 Original-Lines: 54 X-Mailer: Red Gnus v0.26/Emacs 19.34 Xref: main.gmane.org gmane.emacs.gnus.general:7813 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:7813 Steven L Baur writes: > >>>>> "Randal" == Randal L Schwartz writes: > > Randal> But now I'm stuck. What's the right Fcc setup to trigger > Randal> saving into nnml "groups" called "nnml:outbox" or "nnml:todo" > Randal> or whatever? The docs say that message-fcc-handler-function > Randal> is rmail-output by default, but I can't figure out what nnml > Randal> function corresponds to rmail-output. > > You mentioned using procmail, the magic secret with Gnus procmail > support is that you do not have to use procmail with it ... > > What I do is let Gnus process Fcc's as if they were incoming > messages. Put a line like: > Fcc: ~/spool/sent.spool > > or whatever folder you wish, in your headers. The copy gets saved in > the incoming procmail spool directory. The next time you M-2 g or g > to incorporate incoming mail, it will get put into the appropriate > nnml group. The problem with doing a direct rcvstore is that it only > updates the mh unseen file, and you need to keep the .overview updated > with nnml, and I find it easiest to let Gnus do it. It's useful, but not safe. Mail spool files _should not_ be accessed arbitrarily, since you have the danger of corrupting them, and of losing mail. Spool files in the procmail spool directory should recieve the same careful handling given to, say, `/usr/spool/mail/$LOGNAME'. They should be accessed only when you can lock them in such a way that other "competing" programs (i.e. procmail) cannot/do not try to access the spool file simultaneously. Spool files should be accessed only in mutex. (Note that this is why Gnus has special procmail support.) Procmail and movemail use advisory locks on spool files, for mutual exclusion. These locks are useful only when all programs involved recognize them. You can craft a lock aware `message-fcc-handler-function', that uses the lockfile(1) program that comes with procmail (Also, such a handler function won't cause harm on non spool folders either.) Only then is it safe to Fcc: to a mail spool. Thanks for the idea, however. I occasionally have wanted to use Gcc: support without loading the whole of `gnus'. This idea of Fcc:ing to the procmail spool is an alternative. - Hari -- Raja R Harinath ------------------------------ harinath@cs.umn.edu "When all else fails, read the instructions." -- Cahn's Axiom "Our policy is, when in doubt, do the right thing." -- Roy L Ash