On Mon, 8 Dec 1997 15:32:58 -0800 (PST), david hunt <dh(_at_)west(_dot_)net>
wrote:
On Mon, 8 Dec 1997, era eriksson wrote: re. my recipe:
&& cat $TMP|$FORMAIL +0 -I"X-Sortmail: $$" -s $PROCMAIL \
(Useless Use of Cat Award)
<... [how to avoid it?] ...>
The construct
cat file | command
is equivalent to, but less efficient than,
command <file
(or even
<file command
if you want to insist on writing things in some particular order).
See the recurring thread in comp.unix.shell for more on this, ad naus.
[And let's not have any followups to the list, please.]
... this recipe should have an i flag, too. Possibly, both of these
recipes should share the same regional lock file.)
Ok on the 'i' flag, but how do I do the regional lockfile? I don't like
the way the first recipe doesn't lock $TMP during the transfer anyway.
Something like
LOCKFILE=sortmail$LOCKEXT
:0 chiw
...
:0 aiw
...
LOCKFILE
On a different note, perhaps this snippet should even generate a mail
message to warn you if it thinks mail may have been lost. But as long
as you're running it interactively from time to time, that's probably
not necessary.
("sorted" -- perhaps this somewhat misleading term should be abandoned?)
Only the triggering mail is abandoned, the contents of the mailbox get
'sorted' by procmail.
No, I meant the word "sorted" when referring to sorting mail into
folders is a bit misleading, because to "sort" really implies (to me,
at least) that there's something more going on than just tossing stuff
into different buckets.
/* era */
--
Paparazzi of the Net: No matter what you do to protect your privacy,
they'll hunt you down and spam you. <http://www.iki.fi/~era/spam/>