CustomFunktions and ContentType Field
UxBoD
uxbod at splatnix.net
Tue Nov 20 15:52:55 GMT 2007
Hmmm,
my $type = $entity->head->mime_attr('content-type');
is used within a lot of the modules, so I am surprised that this does not work for you.
Regards,
--[ UxBoD ]--
// PGP Key: "curl -s https://www.splatnix.net/uxbod.asc | gpg --import"
// Fingerprint: C759 8F52 1D17 B3C5 5854 36BD 1FB1 B02F 5DB5 687B
// Keyserver: www.keyserver.net Key-ID: 0x5DB5687B
// Phone: +44 845 869 2749 SIP Phone: uxbod at sip.splatnix.net
----- Original Message -----
From: "Hans Klose" <hansklose at gmx.de>
To: mailscanner at lists.mailscanner.info
Sent: Tuesday, November 20, 2007 3:31:39 PM (GMT) Europe/London
Subject: CustomFunktions and ContentType Field
Hi
can i read the contenttype field from a mailheader in a customfunktion.
I already do this:
>>my ($message) = @_;
>>my $from = $message->{from};
and can use the "From" header field.
How can i access the contentype?
Specialy i need the charset of the mail.
I tried:
>>my $ContentType = $message->head->mime_attr('content-type');
but that does not work.
Tanks Hans
--
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail
--
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner
Before posting, read http://wiki.mailscanner.info/posting
Support MailScanner development - buy the book off the website!
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the MailScanner
mailing list