logging message body to a database

grant beattie mailscanner at GRUNTA.COM
Thu May 20 06:31:51 IST 2004


hi,

I'm writing an interface for users to access mail which we have
blocked on their behalf. however, the message body is not available in
the message object passed to the custom functions, the file pointed to by
$message->{store}->{dpath} doesn't exist at the time when the logging
functions are called, and $message->{store}->{indhandle} is either empty
or closed.

the store classes have a WriteEntireMessage method which looks like it
does what I need, the question is where should it be called from?

or am I missing a simpler way to achieve this?

I'm testing with mailscanner 4.25-14 but will be moving toward 4.30.3
shortly.

grant.

-------------------------- MailScanner list ----------------------
To leave, send    leave mailscanner    to jiscmail at jiscmail.ac.uk
Before posting, please see the Most Asked Questions at
http://www.mailscanner.biz/maq/     and the archives at
http://www.jiscmail.ac.uk/lists/mailscanner.html



More information about the MailScanner mailing list