thomasbonham
asked on
Procmail looking at the body of a message
I'm working on a .procmailrc file to look at the body of a message and look for a list of words that I will make that are going to be bad works. But I can't find any in documentation on this.
thanks
thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Those are all helpful links. But does anyone know why when I use the :0fw part of procmail with me piping it to my perl script that I'm working. So how come when I put the :0fw in there the .forward quit working all together.
Thanks
Thanks
> So how come when I put the :0fw in there the .forward quit working all together.
What You mean. And how the .forward applies here? I assume Your .forward contains single line
|procmail
What You mean. And how the .forward applies here? I assume Your .forward contains single line
|procmail
ASKER
No the .forward is how I'm taking that message that comes into the inbox and forwarding it on to a list of email address that need to see that message.
The file looks like this
\system-username your@your.com,your1@your.c om
The file looks like this
\system-username your@your.com,your1@your.c
OK, and where is the procmail as LDA configured then?
ASKER
I do not know what you are talking about here. If you are asking where is the procmailrc file at it is in the home directory with the .forward.
They are both owned by the user and the both are 644 and I have tried 777 and it still doesn't work.
They are both owned by the user and the both are 644 and I have tried 777 and it still doesn't work.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I was asking, where sendmail/postfix/MTA is instructed to deliver local messages via procmail(LDA)?
Usually it's
|procmail
line in .forward file
Usually it's
|procmail
line in .forward file
ASKER
I think I have it working now. But the one thing that is with the "! somewemail@someemail.com" do I need to do a line like that from every email address?
Here is what I have if anyone would like to see it.
Here is what I have if anyone would like to see it.
:0fw
| perl /usr/local/bin/mail.pl
:0
!bonham@bonhamlinux.org
It depends on how you have the emails setup. If it is a list, send to the list. If you have to individually specify the email addresses, you can have a variable that contains the email addresses in a comma separated list.
man procmailsc. using scoring you can assign a weight to a word/words.
http://www.hmug.org/man/5/PROCMAILSC.php