I have a problem setting up procmail to do what I need it to, I
know it can be done, just not how. :) My other shell developed this
interesting problem (which we thought a user with sudo access was causing,
but they took that away from him and it still does it) where my mail would
disappear from /var/spool/mail/saw (the file would become 0 bytes) but
they would still be on the POP3 server, which runs on the same system.
I setup procmail to filter mail for lists, so I added a deal below
all of the other filters, that would take remaining mail and stick it in a
folder under my home directory (in /home/saw/mail/INBOUND.MAIL) where it
was safe from whatever was deleting that. I updated my shell variables
and pine accordingly. This has worked fine for a few months now.
Now comes the problem. I want to add an X-Loop header to mail
that comes in, forward it here, but also save it in the INBOUND.MAIL
folder. I've succeeded at making procmail do these two things:
1) Send the mail to here with the X-Loop header, and stick the mail
in /var/spool/mail/saw so it can disappear.
2) Put the mail in /home/saw/mail/INBOUND.MAIL and not forward it over
to this account.
I want to be able to do both, have it add an X-Loop header to the
message, send it here, and then stick it in /home/saw/mail/INBOUND.MAIL on
the other system. I've played with the rcfile stuff for hours on end and
read man pages (which aren't very clear) and had no luck. I'm hoping
someone here can help. The setup for it on *this* system will be easier,
because my /var/mail/saw actually works, so I don't have to filter it over
to a safe place. It's just on the other system I need to have it sent
here *and* saved to a folder. If someone can write up an example, I'd
appreciate it. It goes after all of the other deals in the rc files.