Discussion Locked

How message body of the Email is filtere

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

How it is possible to filter out message body of the Email in sendmail? Although there are some rulesets for filtering Subject, Content-Type etc in sendmail but I could not find one to filter out some text from the message body of Email.

Please help me to do this job.

Tahir

2 replies

by e5z8652

Is this incoming or outgoing mail?

AFAIK mail transport agents like Sendmail are not normally concerned with the message body - they treat it as a sealed envelope, and only look at the outside of the envelope for delivery directions. (In otherwords, much as the postal service can't filter your mail by the contents of a letter.) IMHO you're better off using another tool such as procmail for message body filtering.

However here are some add on tools for Sendmail that you can look at as well, such as Perl filters, C filters, etc. A quick google search for 'sendmail body filter' turned up quite a few hits.

This discussion is closed to new replies.