All I'd like to do, is have a mail message dropped into two folders.
Here is my original recipe:
:0:$M/ixin/.lock
* ^Sender.*owner-ixion
| /usr/local/lib/mh/rcvstore +ixin
I tried:
:0:$M/ixin/.lock
* ^Sender.*owner-ixion
| /usr/local/lib/mh/rcvstore +ixin/. +dtp/.
but my log file says:
procmail: Executing "/usr/local/lib/mh/rcvstore,+ixin/.,+myix/."
rcvstore: only one folder at a time!
That's correct. rcvstore stores a message into *a* folder. Also,
rcvstore, being an MH command uses MH folder syntax "+FOLDER", and
doesn't use procmail syntax for an MH folder "FOLDER/." In your recipe
above, you are mixing the syntaxes.
So how do I do it? Any help appreciated.
Well, you can do it the procmail way, or the MH way. Procmail can file
a message into multiple folders at the same time, using hard-links to
keep storage usage down.
Here's the procmail way to do MH filing:
:0:$M/ixin.lock
* ^Sender:.*owner-ixion
$M/ixin/. $M/dtp/.
With MH, you must file a message into a folder, and then refile it to
the other folders. Here's an example:
PATH=$PATH:/usr/local/lib/mh
:0:$M/ixin.lock
* ^Sender:.*owner-ixion
| rcvstore +ixin ; refile last -link -src +ixin +dtp
This method is not bullet-proof however. There is a small window of
time during which the state of the +ixin folder could change causing the
meaning of "last" to not be the most recently arrived message. It is a
small window of time, but computers are amazingly fast and quick to make
the most of even a small opportunity :^).
Even if you wanted to use "rcvstore" to update your Unseen-Sequence, the
documentation of "rcvstore" says that you shouldn't.
BUGS
If you use the Unseen-Sequence profile entry, rcvstore could
try to update the context while another MH process is also
trying to do so. This can cause the context to become
corrupted. To avoid this, do not use rcvstore if you use
the Unseen-Sequence profile entry.
___________________________________________________________
Alan Stebbens <aks(_at_)sgi(_dot_)com> http://reality.sgi.com/aks