"Delete As Spam" button for Exchange

Spicer, Kevin Kevin.Spicer at BMRB.CO.UK
Fri Apr 4 12:23:13 IST 2003

Looks like we had the same idea!  I'm curious whether your script would add any headers to the message (through the Mail::Client interface), the one drawback to me using fetchmail is that both fetchmail and the local MTA add headers (although this is far preferable to forwarding with Outlook).  Would you mind letting me have a copy off list? (kevins at bmrb.co.uk).

I'm just about to start work on upgrading MS (I was waiting for the stable release of 4.14) so I'll be trying this out over the next few days.
> Hi Dale.
> Unfortunately we use Outlook / Exchange here too.  :-)  I 
> have written a
> script that will connect to an IMAP mailbox and pull all of 
> the messages out
> and feed them to sa-learn.  In Exchange, we created two 
> folders (Spam and
> Not Spam) in the Public Folders area.  The script I wrote is 
> in perl and
> uses Mail::Cclient to access the IMAP folders.  When 
> everything is complete,
> we will just have the users drag and drop their spam (and ham 
> if needed)
> into these folders, and our script run from cron will feed 
> them to sa-learn.
> I chose this method because Outlook can only forward email 
> (not bounce).
> And forwarding email would change the it a little bit, which 
> may impact the
> bayes filters.
> Currently I have had to turn off bayes checking as it puts 
> too much of a
> load on my server, so I haven't fully tested it out.  But I should be
> getting new hardware next week.  When I am done with the 
> script, I will post
> it to the list.  You can email me off list if you'd like a preliminary
> version.
> Jason
> > -----Original Message-----
> > From: Dale Lovelace [mailto:dlovelace at HOTELS.COM]
> > Sent: Thursday, April 03, 2003 2:01 PM
> > Subject: [MAILSCANNER] "Delete As Spam" button for Exchange
> >
> >
> >   Hi,
> >
> >   I am trying to implement a "Delete As Spam" button in
> > VBScript for Outlook/Exchange that would allow a user to
> > delete a mail they considered spam from their Inbox, then
> > forward it to a special email address that I will use to then
> > feed to SpamAssassin's new bayesian learning. Before I got
> > started I thought I would ask if anyone had done anything
> > like that before, or if anyone knows of a script archive
> > somewhere that might have something along these lines. I
> > haven't done any VBScripting ever, so any tips at all would
> > be great! I'll be sure to release whatever I do come up with
> > to the world!
> >
> >   Thanks,
> >   Dale
> >
> > --
> >   Dale Lovelace
> >   System Administrator
> >   hotels.com
> >   (214) 361-7311 Ext. 1074
> >

BMRB International 
+44 (0)20 8566 5000
This message (and any attachment) is intended only for the 
recipient and may contain confidential and/or privileged 
material.  If you have received this in error, please contact the 
sender and delete this message immediately.  Disclosure, copying 
or other action taken in respect of this email or in 
reliance on it is prohibited.  BMRB International Limited 
accepts no liability in relation to any personal emails, or 
content of any email which does not directly relate to our 

More information about the MailScanner mailing list