On 14:59 23 Feb 2002, Scott Porter <scott(_at_)javascript-games(_dot_)org>
wrote:
| Basically, I'd like fetchmail to be able to scan the text coming through
| from the POP as it's downloading each mail, and if a pattern is matched
| anywhere (eg: "I send you this file*") then the connection to the POP is
| terminated, the index of the message stored, then a reconnect, and upon
| reconnection, a dele of the matched message. This is assuming a download
| cannot be stopped, and the connection to the server maintained (been a LONG
| time since I read any RFCs on this subject!)
|
| Obviously this might affect performance on machines connected over a fast
| link, but scanning data crawling along my phone line, through the router and
| into the server shouldn't be that CPU intensive, right? :-)
I was going to say "just use procmail" but I see you want to avoid
fetching the file because if andwidth issues.
I had a mailbox blow up on my one in like manner. I ended up running
fetchmail with a size limit for the first pass, and with a count limit
for the second pass. Doesn't really accomplish exactly what you want
but it at least gets your important email before it clogs the link.
You could routinely run with a size limit and then query the mailbox
afterwards to see what it leaves behind.
Also, I saw an app go past on freshmeat yesterday for preemptively
pruning a pop mailbox. But I think it would to have been header based
(otherwise you'd have to download the text anyway, so you should just
go to your ISP's shell server and do it there).
--
Cameron Simpson, DoD#743 cs(_at_)zip(_dot_)com(_dot_)au
http://www.zip.com.au/~cs/
Ed Campbell's <ed(_at_)Tekelex(_dot_)Com> pointers for long trips:
2. Figure out the most money you could possibly spend, and take at least
double.