Hi All,
Essentially what I'm trying to achieve is to setup my .procmailrc file
so that when an incoming message comes in destined for one of my
subscribed mailing lists, the message:
1) Gets copied to the correct mailing list folder; and
2) Gets copied & marked deleted on the fly into my main INBOX
This allows me to have a quick glimpse over my Inbox in the morning and
if any particularly interesting subject lines catch my eye then I can
read them, otherwise I just hit "purge" and off they go. Make sense?
This is what I've come up with in .procmailrc:
=========== cut ==========
MAILDIR=$HOME/Maildir
LOGFILE=/home/gs/.procmaillog
LOGABSTRACT=all
DEFAULT=$MAILDIR/
LASTFILE=`echo "$LASTFOLDER"|cut -d "/" -f 3`
:0:
* ^X-Spam-Status: Yes
.SPAM/
# Procmail List
:0
* ^TO_(_dot_)*procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
{
:0c
.Mailing\ Lists.Procmail/
:0i
| cp "$LASTFOLDER" "cur/${LASTFILE}:2,ST"
}
=========== cut ==========
The ":2,ST" are the flags needed on the filename to indicate that the
message is deleted.
So, the above worked OK for the first few messages but then it just
stopped working reliably; messages ended up in their mailing list
folder, but not in my Inbox. Very strange.
Procmaillog shows:
=========== cut ==========
From
bugtraq-return-10783-gonzalo=linuxaus(_dot_)com(_at_)securityfocus(_dot_)com
Tue Sep
02 18:16:02 2003
Subject: GLSA: eroaster (200309-04)
Folder: .Mailing
Lists.Security.Bugtraq/new/1062526562.18486_0.venus 2867
From
bugtraq-return-10783-gonzalo=linuxaus(_dot_)com(_at_)securityfocus(_dot_)com
Tue Sep
02 18:16:02 2003
Subject: GLSA: eroaster (200309-04)
Folder: cp .Mailing
Lists.Security.Bugtraq/new/1062526562.18486_0.ve 2957
=========== cut ==========
As you can see it's being copied but I've no idea why its not arriving
in the 'cur' folder.
If anybody knows a better way of achieving what I'm trying to do then
I'm all ears :) If not, any suggestions/ideas/feedback on what may be
causing the intermittent behaviour?
Thanks in advance.
Regards,
Gonzalo
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail