Ok.  Next time i'm just going to keep my mouth shut. At leat until
I've had a few cups of coffee.

On Thu, Mar 02, 2000 at 11:41:51PM -0600, Aaron Schrab wrote:
> At 16:19 -0700 02 Mar 2000, Benjamin Korvemaker <[EMAIL PROTECTED]> wrote:
> > [delurk]
> > err. I just saw a complex answer that made my head spin. Mine's a bit
> > easier. I'm assuming you've got procmail already setup (or can figure
> > it out).
> > 
> > #################################################################
> > ### Wherever you normal re-direct non-spool mail.
> > MAILDIR=Mail
> > XXX=`date +%s`.$$.`hostname`
> 
> You should be able to use $HOST instead of `hostname`.
> 
> > # Set up a maildir for mutt
> > MUTT=IN.mutt/new/$XXX
> > :0:
> 
> Why are you having procmail use a lockfile?  Not having to use lockfiles
> is one of the major benefits to maildir.  Besides, basically nothing
> else will be using locking so it doesn't help.

[groan] good point. I just switched to maildirs and :0: is far too
habitual at this point. (/me goes and fixes magic scripts that
generate spam filters)

> > * ^TO_.*mutt
> > $MUTT
> 
> This will do the writing directly to the new subdirectory, which is bad.
> In most cases there won't be a problem, but it could cause lost mail in
> some situations.  It's possible for procmail to be suspended between the
> time it opens the file, and when it actually writes the message.  If
> some other program tries to read the message during this time it will
> see an empty file (or possibly just part of the message).  This is why
> messages are supposed to be created in the tmp subdirectory, and moved
> into new only after the whole message has been written.

[yuck] Blame it on my habit of skipping the first paragraph of
anything ('cause there's NEVER any important info in the into!).
Thanks for pointing out that my message should be purged from
everyone's memory and disk.

[going back into my hole. won't come out until I see my shadow.]

Ben
-- 
Benjamin Korvemaker
[EMAIL PROTECTED]
       C makes it easy to shoot yourself in the foot. C++ makes
       it harder, but when you do, it blows away your whole leg.
                     - Bjarne 'Stumpy' Stroustrup

Reply via email to