[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Code for remote E-mail cleaning?

James Britt

10/17/2004 8:08:00 AM

I've discovered that, for all its good points, the Mozilla Thunderbird
E-mail client is braindead when it comes to malformed mail headers. It
seems that if an inbox contains any mail with a bad header, then
Thunderbird simply stops fetching more mail from that inbox. Period.

One then has to manually delete the offending message.

I can think of any number of ways to get around this, and do not really
want a litany of which mail reader is the best. Rather, I'm curious to
know if anyone has or knows of a simple Ruby app that can connect to a
mailbox, inspect the messages, and delete any mail that meets some
criteria (including dubious headers) while leaving the rest alone.

In the long run I need to get some spam filtering running on the mail
server, but short term it would be nice to essentially automate what I'm
doing now via web mail.

I'm inclined to think that writing such an app would not be too hard;
I've written some basic mail fetchers using some available libs, but
would rather not reinvent the wheel. I also want to be sure that I do
not accidentally mark mail as read while processing messages.

Thanks,


James




3 Answers

Randy W. Sims

10/17/2004 3:20:00 PM

0

On 10/17/2004 4:08 AM, James Britt wrote:
> I've discovered that, for all its good points, the Mozilla Thunderbird
> E-mail client is braindead when it comes to malformed mail headers. It
> seems that if an inbox contains any mail with a bad header, then
> Thunderbird simply stops fetching more mail from that inbox. Period.
>
> One then has to manually delete the offending message.

I ran in to this same problem with the Mozilla suite on some newsgroups.
Giganews was able to fix it on their end, but the Mozilla team hasn't
responded to the problem. Mozilla should idealy be able to work around
the bad headers.

You can see my report at:
<http://bugzilla.mozilla.org/show_bug.cgi?id=...

Randy.



James Britt

10/17/2004 4:46:00 PM

0

Randy W. Sims wrote:
> On 10/17/2004 4:08 AM, James Britt wrote:
>
>> I've discovered that, for all its good points, the Mozilla Thunderbird
>> E-mail client is braindead when it comes to malformed mail headers.
>> It seems that if an inbox contains any mail with a bad header, then
>> Thunderbird simply stops fetching more mail from that inbox. Period.
>>
>> One then has to manually delete the offending message.
>
>
> I ran in to this same problem with the Mozilla suite on some newsgroups.
> Giganews was able to fix it on their end, but the Mozilla team hasn't
> responded to the problem. Mozilla should idealy be able to work around
> the bad headers.
>
> You can see my report at:
> <http://bugzilla.mozilla.org/show_bug.cgi?id=...


Thanks. I've seen assorted bug reports for this, but no indication that
the Mozilla team will be fixing it any time soon. So, in the meantime,
I'm looking for a hack.

James
>
> Randy.
>
>
>



William Park

10/17/2004 11:37:00 PM

0

James Britt <jamesUNDERBARb@neurogami.com> wrote:
> I've discovered that, for all its good points, the Mozilla Thunderbird
> E-mail client is braindead when it comes to malformed mail headers. It
> seems that if an inbox contains any mail with a bad header, then
> Thunderbird simply stops fetching more mail from that inbox. Period.
>
> One then has to manually delete the offending message.
>
> I can think of any number of ways to get around this, and do not really
> want a litany of which mail reader is the best. Rather, I'm curious to
> know if anyone has or knows of a simple Ruby app that can connect to a
> mailbox, inspect the messages, and delete any mail that meets some
> criteria (including dubious headers) while leaving the rest alone.
>
> In the long run I need to get some spam filtering running on the mail
> server, but short term it would be nice to essentially automate what I'm
> doing now via web mail.
>
> I'm inclined to think that writing such an app would not be too hard;
> I've written some basic mail fetchers using some available libs, but
> would rather not reinvent the wheel. I also want to be sure that I do
> not accidentally mark mail as read while processing messages.

Perhaps you can something useful in
http://freshmeat.net/projects/p...
At the moment, it's shell script designed to delete Swen/Netsky worms
on POP3 server. But, you can delete anything you want, really. :-)

--
William Park <opengeometry@yahoo.ca>
Open Geometry Consulting, Toronto, Canada