From: James Britt Date: 2004-10-17T17:08:09+09:00 Subject: Code for remote E-mail cleaning? 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