Click here to get back home

Mail::Audit Question

 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 Question Douglas J. Renze 08-30-2004
Posted by Douglas J. Renze on August 30, 2004, 12:55 am
Please log in for more thread options
I have a *very* newbie question re Mail::Audit. If somebody would even be
kind enough to point me in the right direction, I would be obliged.

I'm setting up a filter in my .forward file, which has the single line
reading:

        | /home/me/bin/filter

The file /home/me/bin/filter reads:

        #!/usr/bin/perl

        use strict;
        use warnings;

        use Mail::Audit;
        open LOG, "> /home/me/Mail/mail.log";

        my $incoming = Mail::Audit->new;
        my $from = $incoming->from();

        print LOG "Message received from $from...n";

        $incoming->accept;

When I have this filter in place, NOTHING comes through. When I remove my
~/.forward file, all my mail comes flooding in.

I've checked the obvious...my ~/bin is not world-readable, nor is my home
directory or the /home/bin/filter file. Beyond that, I'm stumped.

Help?


--
Douglas J. Renze
drenze@nospam.wwdb.org

To reply via direct e-mail, remove "nospam" from e-mail address.



Posted by Douglas J. Renze on August 30, 2004, 12:58 am
Please log in for more thread options
A quick PS...in case the question comes up, the only purpose behind this
script is for me to learn how to use Mail::Audit with a simple script so I
*really* don't hork things when I get down to work.

Thanks again.

On Sun, 29 Aug 2004 23:55:16 -0500, Douglas J. Renze wrote:

> I have a *very* newbie question re Mail::Audit. If somebody would even be
> kind enough to point me in the right direction, I would be obliged.
>
> I'm setting up a filter in my .forward file, which has the single line
> reading:
>
>         | /home/me/bin/filter
>
> The file /home/me/bin/filter reads:
>
>         #!/usr/bin/perl
>
>         use strict;
>         use warnings;
>
>         use Mail::Audit;
>         open LOG, "> /home/me/Mail/mail.log";
>
>         my $incoming = Mail::Audit->new;
>         my $from = $incoming->from();
>
>         print LOG "Message received from $from...n";
>
>         $incoming->accept;
>
> When I have this filter in place, NOTHING comes through. When I remove my
> ~/.forward file, all my mail comes flooding in.
>
> I've checked the obvious...my ~/bin is not world-readable, nor is my home
> directory or the /home/bin/filter file. Beyond that, I'm stumped.
>
> Help?

--
Douglas J. Renze
drenze@nospam.wwdb.org

To reply via direct e-mail, remove "nospam" from e-mail address.



Posted by Gunnar Hjalmarsson on August 30, 2004, 10:20 am
Please log in for more thread options
Douglas J. Renze wrote:
> I'm setting up a filter in my .forward file, which has the single
> line reading:
>
>         | /home/me/bin/filter

<snip>

> When I have this filter in place, NOTHING comes through. When I
> remove my ~/.forward file, all my mail comes flooding in.

It's a sendmail question, not a Perl question.

Assuming your username is douglas, one thing is that you may want to
try this additional line in the .forward file:

douglas

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl


Posted by Douglas J. Renze on August 30, 2004, 7:04 am
Please log in for more thread options
On Mon, 30 Aug 2004 09:20:16 +0200, Gunnar Hjalmarsson wrote:

> It's a sendmail question, not a Perl question.
>

Thank you.

> Assuming your username is douglas, one thing is that you may want to
> try this additional line in the .forward file:
>
> douglas

....and ditto. I'll try that.

--
Douglas J. Renze
drenze@nospam.wwdb.org

To reply via direct e-mail, remove "nospam" from e-mail address.



Similar ThreadsPosted
Mail::Audit help plz October 26, 2005, 8:18 pm
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