At 11:40 AM 4/30/97 -0500, Philip Guenther wrote:
[snip]
# If one of the previous 3 recipes was invoked, LASTFOLDER will
# now be set. To check that we use David Tamkin's ${LF+!}
# trick: if LASTFOLDER is set, ${LASTFOLDER+!} expands to a '!',
# while if it's not set, it expands to nothing. The condition
# below will 'match' (be true) iff LASTFOLDER was set. We'll
# then drop the message as already handled, and let the rest of
# the .procmailrc handle those messages which haven't already
# been delivered, possibly via the implicit delivery to
# $DEFAULT. Yes, this is the reverse of what you originally
# proposed, but it's usually more flexible this way. Remember
# that the null regexp always matches.
:0:
* $ ! ${LASTFOLDER+!}
{
# drop the message as already delivered
HOST
}
Since this trick is not very intuitive, I'm wondering what's wrong
with something easier to remember (and to explain!) such as:
:0:
* LASTFOLDER ?? .+
{
...etc.
Am I missing something?
Thanks,
Stan