Maurits,
Thursday, March 6, 2003 you wrote:
MM> ....IMail passes me the location of a tmp file that holds the
MM> email that was send to the program alias.
Yes, that's correct.
MM> In short, i can bypass the entire internal IMail rule system, and
MM> process in something i write myself :)
Yes, but with a caveat. Imail processes a single message in 2
parts. The envelope portion is a Q*.smd file in the spool and
carries the envelope information - the real sender and recipients.
The message portion is the D*.smd file in the spool.
The program alias receives only the message portion just as does
any other mail box. For most things this is quite satisfactory
but the envelope information is not available to the program
alias.
So if you have to have the envelope information then the program
alias is insufficient. Fortunately I rarely need the envelope
information.
However, if you use DECLUDE (and it is certainly an excellent
product) then it is possible to write a program that declude
invokes and the envelope information can be acquired. There is a
hook that IMAIL has provided for an application such as DECLUDE
that can interrupt the processing. The hook could certainly be
used by any application but it is not trivial so an application
such as DECLUDE that already handles this is a good option.
MM> Anyone tried to make an custom rulesystem before this way ? (probably)..
I don't think I've seen anything specific about rulesets but lots
of people are using program aliases for many purposes. And many
people have written custom apps to work with Declude.
Basically you have to read and parse an e-mail message. You can
parse the message yourself or you might be able to find helper
apps. For instance there is a Perl package, Mail::Internet, that
I've used. For VB, VBScript, VC++, etc I've seen a site that has
an api for bounced messages but uncertain exactly what all it does
- http://boogietools.com/
hth and good luck
Terry Fritts
To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html
List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/