11-04-04 10:49 PM
Does anyone have some suggestions for how to set the SCL level on
messages flowing into an Exchange 2003 server? I've been struggling
with this problem for a few days and haven't found a good solution
yet.
What I want to do is have an SMTP gateway (non-Exchange) determine a
message's spaminess and store this info in the header. I then want
something to read that info and set a corresponding SCL before the
message is delivered to the user's mailbox. I am open to almost any
solution that meets these requirements.
WHAT I HAVE TRIED
1. Searching for some simple utility or event sink that does this.
The only software I have found that sets the SCL is the IMF and that
determines its own SCL, which I do not want.
2. Writing a simple vbscript OnArrival event sink that reads the
header then sets the SCL using IMessage.Add(x,x,x,x) or
IMessage.Item("x").Value = y. However, either I cannot determine the
correct values to use for "x" or something about the nature of the
OnArrival event sink discards that setting before it continues on to
the store.
3. Simply using the SampleFilter project included with the Exchange
SDK, which claims to be able to set the SCL. My C++ is very rusty,
but the DLL I compiled from that as a test, which should have simply
set the SCL of all messages to 5, didn't appear to do anything after
compiling and registering.
I know that all of the above have failed because I am able to both
view the SCL as a column in Outlook and use OutlookSpy to verify the
presence/absense of the SCL. I can see the -1 SCLs and I can see SCLs
when I enable IMF, but I have never been able to set the SCL to an
arbitrary level I choose.
Please help if you have any ideas on how this could be done
(third-party utilities, tweeking IMF, etc), or have some proven code
snippets that do it with event sinks. Any help would be greatly
appreciated!
Sincerely,
Seth Taylor
[ Post a follow-up to this message ]
|