logo       

Re: [SAdev] Best way to build a Mail::SpamAssassin:NoAudit from a Mail::Aud: msg#00018

Subject: Re: [SAdev] Best way to build a Mail::SpamAssassin:NoAudit from a Mail::Audit?
I decided to create the following subroutines

sub noma_from_string_or_arrayref {
my $arrayRef = (ref $_[0] eq 'ARRAY') ? $_[0] : [ split(/^/m, $_[0]) ]; my $no_audit = Mail::SpamAssassin::NoMailAudit->new ('data' => $arrayRef);
  return $no_audit;
}

sub ma_from_string_or_arrayref {
my $arrayRef = (ref $_[0] eq 'ARRAY') ? $_[0] : [ split(/^/m, $_[0]) ];
  my $mail_audit = Mail::Audit->new(
    nomime=> 1,
    emergency=>"$maildir/.emergency/",
    loglevel=>2,
    log=>$log,
    data=>$arrayRef);
  return $mail_audit;

Can anybody tell me if that looks reliable?

On Dec 20, 2003, at 1:01 PM, Robert Nicholson wrote:

What is the most efficient and effective way to build a NoAudit from an Audit using data=

Do I just append the header and body arrays and use that for data=> ?

Is there a method that already return a reference to list with all lines in it?

secondly,

currently the only messages that arrive to me without Message-ID's and consequently
break if I'm using a Mail::Audit are those that are spam.

Is it fair to expect that every MUA will in fact create a Message-ID?

In my case since I'm using a Mail::Audit if I want to learn I need to learn
from a NoAudit but accept from the Audit.



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Spamassassin-devel mailing list
Spamassassin-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/spamassassin-devel


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
audio.irate.dev...    yellowdog.gener...    ietf.ips/2002-0...    xfree86.fonts/2...    busybox/2003-07...    emacs.jdee/2004...    linux.mandrake....    hardware.microc...    user-groups.lin...    science.analysi...    version-control...    db.filemaker.de...    cluster.openmos...    mail.eyebrowse....    text.xml.xerces...    kde.devel.kwrit...    finance.moneyda...    gcc.regression/...    network.routing...    os.freebsd.deve...    recreation.radi...    qnx.openqnx.dev...    python.xml/2002...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe