I'm unable to get the simplest example to work with Email::Filter. This could be due to any number of non-Perl-related things, so if it's offtopic I apologize (and would love suggestions on where this question should be asked).

First off, the code:

#!/usr/bin/perl -w use strict; use Email::Filter; my $mail = Email::Filter->new; $mail->reject;

The preceding code belongs to a user named 'embo' and is stored in the executable file /home/embo/bin/filt. Here is embo's ~/.procmailrc:

MAILDIR=$HOME/Mail LOGFILE=$MAILDIR/from LOGABSTRACT=all VERBOSE=off ##### backup every incoming email :0 c backup ##### filter with Mail::Audit :0fw | /home/embo/bin/filt

When I try to send a test email from adamm to embo on the same system using date | mail embo, here's what I see in /home/embo/Mail/from...

procmail: Program failure (100) of "/home/embo/bin/filt" procmail: Rescue of unfiltered data succeeded From adamm@localhost.localdomain Sat Aug 14 21:30:22 2004 Folder: /var/mail/embo + 658

I would expect that email to bounce back to adamm, but adamm receives no bounce. embo still receives the email from adamm in his mail spool. Anyone have any idea what I'm doing wrong? The pod for Email::Filter is pretty weak in terms of implementation. I also tried a ~/.forward file containing only |/home/embo/bin/filt; no luck there.

---
"A Jedi uses the Force for knowledge and defense, never for attack."

In reply to Email::Filter hello world by meonkeys

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.