Email::Filter hello world

From: Adam Monsen (haircut_at_gmail.com)
Date: 08/15/04

  • Next message: Bill Kurland: "win32 samba shares"
    Date: 15 Aug 2004 14:36:46 -0700
    
    

    Is this a good place to ask for help for Email::Filter? If not, where?
    I tried http://perlmonks.org/?node_id=383056 but noone really knows as
    of yet. Here's my query:

    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.

    In return for help with Email::Filter, I offer the following (all
    mentioned software will be Free, as in speech):
    * documentation, including:
      + custom-made Email::Filter "Hello World" tutorial hosted at
    http://adammonsen.com/tut/
      + POD to add to Email::Filter
    * email vacation autoresponder software


  • Next message: Bill Kurland: "win32 samba shares"