[Exim] Exim,Perl, strange Configuration Wish :-)

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Tilo Buschmann
Ημερομηνία:  
Προς: exim-users
Καινούρια Θέματα: [Exim] STRANGE DEVELOPMENT WITH MAIL ABUSE SERVICES, [Exim] Exim, other strange Configuration Wish :-)
Αντικείμενο: [Exim] Exim,Perl, strange Configuration Wish :-)
Hello

I am currently trying to extend our mailserver (exim 3.35). The
problem is the following:

Everytime one email comes in, a special program has to start, that makes
several things in the system. (Work with the header lines, write something
into an mysql db and finally decode the mail for later purposes). This
can't be done in user filters, because every email has to be inspected
und a system filter would inspect the email at the wrong places/times.

Therefore I decided to add a perl "lookup" in my appendfile-transport, that
would examine the special email and gives back the place where to
store this email (generall /var/spool/virtual/mail/<user_id). All Emails
are handled as user "mail" and group "mail".

I need to use the message_body in this perl-script in its original format.
$message_body does not help, because it is limited (of course I set
$message_body_visible to a very high value) and all newlines are missing.

My Question is now: How can I get the whole message or message_body in
this case. And if there is now variable for this purpose, is it possible
to add this variable to newer versions of exim?

Tilo