Re: Spamassassin not parsing email messages

2012-12-29 Thread Martin Gregorie
On Fri, 2012-12-28 at 21:48 -0800, Sean Tout wrote: I have practically given up on the original perl code since I'm unable to find out the issue. With spamc, I can get a decent performance. IMO, unless you need the extra facilities of amavis-new or one of the other smart wrappers for SA and

Re: Spamassassin not parsing email messages

2012-12-29 Thread RW
On Fri, 28 Dec 2012 21:48:25 -0800 (PST) Sean Tout wrote: Hi Martin, You certainly did not miss anythingbut I did! Being new to spamassassin, I was only familiar with spamassassin command. which was awfully slow for a large number of emails. But now that I used spamc, I'm getting 5+

Re: Spamassassin not parsing email messages

2012-12-28 Thread Henrik K
On Fri, Dec 28, 2012 at 12:45:03AM -0800, Sean Tout wrote: Hello, I wrote a short Perl program that reads email from an existing mbox formatted file, passes each individual email to Spamassassin for parse and score, then prints a report for each email. The strange thing is that I keep

Re: Spamassassin not parsing email messages

2012-12-28 Thread Sean Tout
to print any portions of the email messages using $status = $spamtest-check($mail), however I can print any portions using $folder_reader-read_next_email(). Regards, Sean. -- View this message in context: http://spamassassin.1065346.n5.nabble.com/Spamassassin-not-parsing-email-messages

Re: Spamassassin not parsing email messages

2012-12-28 Thread Sean Tout
singleemail.spam contains a single spam email. Regards, -Sean. -- View this message in context: http://spamassassin.1065346.n5.nabble.com/Spamassassin-not-parsing-email-messages-tp102770p102782.html Sent from the SpamAssassin - Users mailing list archive at Nabble.com.

Re: Spamassassin not parsing email messages

2012-12-28 Thread Dave Funk
where singleemail.spam contains a single spam email. Regards, -Sean. -- View this message in context: http://spamassassin.1065346.n5.nabble.com/Spamassassin-not-parsing-email-messages-tp102770p102782.html Sent from the SpamAssassin - Users mailing list archive at Nabble.com. -- Dave Funk

Re: Spamassassin not parsing email messages

2012-12-28 Thread Sean Tout
. -- View this message in context: http://spamassassin.1065346.n5.nabble.com/Spamassassin-not-parsing-email-messages-tp102770p102784.html Sent from the SpamAssassin - Users mailing list archive at Nabble.com.

Re: Spamassassin not parsing email messages

2012-12-28 Thread John Hardin
On Fri, 28 Dec 2012, Sean Tout wrote: That's most likely the case. But I'm not sure what's going in there and how to get rid of it. I tried with and without chomp() but got the same results. below is a snippet with chomp, which I applied before parsing the email with spamassassin. my $spamtest

Re: Spamassassin not parsing email messages

2012-12-28 Thread Sean Tout
Hi John, I wrote every email read to an output file. The output file is identical to the input file I'm reading the emails from according to diff! Regards, -Sean. -- View this message in context: http://spamassassin.1065346.n5.nabble.com/Spamassassin-not-parsing-email-messages

Re: Spamassassin not parsing email messages

2012-12-28 Thread John Hardin
On Fri, 28 Dec 2012, Sean Tout wrote: Hi John, I wrote every email read to an output file. The output file is identical to the input file I'm reading the emails from according to diff! The concern is the format of the single mail object being sent to SpamAssassin for scanning. Having the

Re: Spamassassin not parsing email messages

2012-12-28 Thread Sean Tout
: http://spamassassin.1065346.n5.nabble.com/Spamassassin-not-parsing-email-messages-tp102770p102789.html Sent from the SpamAssassin - Users mailing list archive at Nabble.com.

Re: Spamassassin not parsing email messages

2012-12-28 Thread John Hardin
On Fri, 28 Dec 2012, Sean Tout wrote: Hi John, Per your response below, here is what I did to confirm it's not a content problem. open (RFILE, $reportfile_name); while(!$folder_reader-end_of_file()) { $email = $folder_reader-read_next_email(); chomp($email); $mail =

Re: Spamassassin not parsing email messages

2012-12-28 Thread Sean Tout
: http://spamassassin.1065346.n5.nabble.com/Spamassassin-not-parsing-email-messages-tp102770p102791.html Sent from the SpamAssassin - Users mailing list archive at Nabble.com.

Re: Spamassassin not parsing email messages

2012-12-28 Thread Martin Gregorie
On Fri, 2012-12-28 at 16:51 -0800, Sean Tout wrote: Hi John, Thank you much for the help. I have been trying to avoid executing spamassassin shell commands from perl since it takes a significant amount of time~=12 seconds for each email. I have tried the below script, which works but of

Re: Spamassassin not parsing email messages

2012-12-28 Thread Sean Tout
practically given up on the original perl code since I'm unable to find out the issue. With spamc, I can get a decent performance. Regards, -Sean. -- View this message in context: http://spamassassin.1065346.n5.nabble.com/Spamassassin-not-parsing-email-messages-tp102770p102801.html Sent from

Parsing Email

2006-10-11 Thread Tyler Nally
Hello, I've a project that I'm needing to solve. Fax machines (for a client) have been replaced with the phone company's fax server that e-mails the incomming fax (.tif) images to a specific e-address at the clients place of business. Just so happens, the e-mail passes through a mail server

Re: Parsing Email

2006-10-11 Thread Theo Van Dinter
On Wed, Oct 11, 2006 at 05:24:46PM -0400, Tyler Nally wrote: Now.. what I need help in understanding... is ... assuming that I can handle each e-mail separately as it comes through, how do I parse the e-mail (like the way Spamassassin does) to have the ability to pull the component parts from

Re: Parsing Email

2006-10-11 Thread Vincent Li
On Wed, 11 Oct 2006, Theo Van Dinter wrote: On Wed, Oct 11, 2006 at 05:24:46PM -0400, Tyler Nally wrote: Now.. what I need help in understanding... is ... assuming that I can handle each e-mail separately as it comes through, how do I parse the e-mail (like the way Spamassassin does) to have

Re: Parsing Email

2006-10-11 Thread Theo Van Dinter
On Wed, Oct 11, 2006 at 02:48:28PM -0700, Vincent Li wrote: my $fh; open $fh, , shift; my @message = $fh; use Mail::SpamAssassin::Message; my $msg = Mail::SpamAssassin::Message-new( { 'message' = [EMAIL PROTECTED], } FYI, new() accepts a file handle, an array, a scalar, or

Re: Parsing Email

2006-10-11 Thread Kelson
Tyler Nally wrote: 1- copy the fax images (detach the images from e-mail messages) and store these images on that server (whether as a file or put into a database as a blob) If you're running Sendmail, you can use MIMEdefang www.mimedefang.org for this. It has a built-in