Now that I have a better understanding of what I'm doing in procmail I
decided to go back through one of my old archives and see if I could
extract the messages into date folders
:0
* ^Date:......\/...........
{
MYMATCH=`echo $MATCH |sed -e 's/ /-/g'`
MYFOLDER=Chat-l.$MYMATCH
LOG=$MYFOLDER$NL
:0
$MYMATCH
}
Yes, I know, this is not the right way. However, grepping the mailbox
in question
%grep -e "^Date: " old.mail
Date: Sun, 6 Oct 2002 13:20:37 -0600
Date: Sun, 06 Oct 2002 12:26:18 -0700
Date: Sun, 6 Oct 2002 13:27:14 -0600
Date: Sun, 6 Oct 2002 13:29:08 -0600
I found that the first 6 characters where always " ddd, ", and I don't
want those
the next 11 characters are either
"dd mmm yyyy" or "d mmm yyyy "
so, the question is, how to distinguish the former from the latter
easily so that ALL the folders end up being named "dd mmm yyyy"?? (add
the leading 0 and strip the trailing space)
--
MEGAHAL: within my penguin lies a torrid story of hate and love.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail