N.J. Mann wrote:
In message <4A858666(_dot_)1000800(_at_)lakedaemon(_dot_)net>,
Jason (procmail(_at_)lakedaemon(_dot_)net) wrote:
I'd like to auto-tag all of my mail in my maildir and subfolders as they
come in. In order to do this, I need the maildir destination filename.
With courier imap, tags are recorded (eg Thunderbird's "Important" or
"Personal" tags) in a file called ":list", eg:
.maildir
\-cur
\-new
\-tmp
\-courierimapkeywords
\-:list
Inside :list is, well, a list. :-) eg:
###################################
NonJunk
$label1
$label3
1249046633.6130_0.phobos:0
1249046635.6221_0.phobos:0
1249046646.6642_0.phobos:0
###################################
where the trailing digit on each line is the label in the list at the
top. So, once procmail matches an email, I want to place it's filename,
up to the hostname, in this list with a ":1" or ":2".
I have the recipe part down, I just can't figure out how to retrieve the
filename from within procmail...
Is LASTFOLDER what you are looking for? See procmailrc(5) for details.
Yes! That was the keyword I was looking for. It resulted in this [1].
A little modification and I should have it down.
thx,
Jason.
[1] - http://blog.raamdev.com/2007/11/14/using-procmail-to-mark-as-read
____________________________________________________________
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