David W. Tamkin wrote:
Seee the formail(1) man page. With -s, +# means to skip the first #
split-out messages and omit them from the output.
I saw the option in the man page, but I don't know what a 'split-out'
message is... until I read below.
1. What formail sees as the first split-out message in the file is
something that doesn't have a From_ postmark (though wouldn't the
absence of -f add one?), or
The From_ postmark being the envelope information? So Formail can cope
with that information not being there and still be able to distinguish
message boundaries?
2. a 127th message was added to the file between the two attempts.
It's possible, but I did the commands in quick succession - perhaps not
quick enough?
formail -1s < $HOME/mail/junk
From MAILER-DAEMON Sat Sep 30 02:39:24 2006
Return-Path: <>
X-Original-To: bezelantisemitism(_at_)mydomain(_dot_)com
Delivered-To: sda(_at_)mydomain(_dot_)net
<snip>
So, if I understand correctly, for the purpose of simply counting the
number of messages in a particular folder, I don't need the split-out
option?
Thank you,
Steve :)
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail