Click here to get back home

Mail::Audit help plz

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Mail::Audit help plz Rob 10-26-2005
Posted by Rob on October 26, 2005, 8:18 pm
Please log in for more thread options


Hi,

I've installed the Mail::Audit (ver 2.1) perl module
to my home directory as non-root user & I get a problem.

here's my .forward:
|/home/rob/bin/forward_email

here's the forward_email:
#!/usr/bin/perl -w

BEGIN{
unshift @INC, '/home/rob/lib/lib/perl5/site_perl/5.8.3'
}

$\ = "\n";
select(STDERR); $| = 1;
select(STDOUT); $| = 1;
use Mail::Audit;

my $mail = Mail::Audit->new(emergency=>"/home/rob/emergency_mbox");
my $from = $mail->from();
my $to = $mail->to();
my $subject = $mail->subject();
chomp($from, $to, $subject);

open(LOG, ">> /home/rob/mynewmail.log");
print LOG "from is $from";
print LOG "to is $to";
print LOG "subj is $subject";
close(LOG);

$mail->accept('/home/rob/dead.lettters');



However, nothing is written to mynewmail.log. Plus the first line
of the dead.lettters is:
From root@localhost Wed Oct 26 16:06:27 2005
<<and then we have the body of the mail here>>


In addition, this email is sent back to the user:

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

pipe to |/home/rob/bin/forward_email
generated by rob@domainname.com

The following text was generated during the delivery attempt:

------ pipe to |/home/rob/bin/forward_email
generated by rob@domainname.com ------

Use of uninitialized value in pattern match (m//) at
/home/rob/lib/lib/perl5/site_perl/5.8.3/Mail/Audit.pm line 431.

------ This is a copy of the message, including all the headers. ------
        <<the headers + body of email is here>>


Has anyone seen this problem? What do you think I should do?

--Rob


Similar ThreadsPosted
Mail::Audit Question August 30, 2004, 12:55 am
SpamAssassin 3.0.0 and Mail::Audit not playing nicely? September 23, 2004, 7:47 am
Mail:Sender - HTML Mail with alternatives problem July 21, 2004, 6:44 pm
Mail::Vacation abondoned? August 11, 2004, 3:13 pm
Mail::Message::TransferEnc February 2, 2005, 4:19 pm
Mail::IMAPClient via SSL falls down... June 1, 2005, 1:45 pm
E-Mail Problems - MAIL_MESSAGE March 29, 2006, 5:16 pm
Small fix for Mail-MboxParser-0.55 June 21, 2006, 12:35 pm
Send::Mail nothing happens and no errors January 25, 2007, 10:09 am
Mail::Sender problem August 17, 2007, 10:20 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap