On Thu, April 12, 2007 6:39 pm, Richard Davey wrote: > The protocol, while fine for most things, is not efficient. There is > no > way to batch-up messages for quicker transfer. Even today with our > 'super fast' connections if you go on holiday for two weeks (and DON'T > check email while away!), then come back and watch your mail client > chug > through download 4,000 odd messages as it has to LIST, RETR and DELE > each bloody one, you'll realise how shoddy POP3 really is. In the > 'past' > they could have been bundled into a single file, compressed and > streamed, a process that would produce far quicker results even today.
Once upon a time, I had my Mac PPC 8100 desktop connected to my cable-modem, and Eudora checked email every hour, on the hour, and ran through a bunch of custom spam filters I had put into Eudora to help weed out the worst junk. This worked well, at first, but... When it got to the point that it was often spending almost half an hour downloading SPAM, just to delete it, I had to go and write a PHP script on the server that did the filtering, on the server. This was some time ago, and Eudora told me I was getting 10,000 emails per day, before I switched to my server-side filtering. (and my webhost added SpamAssassin soon after that) I have no idea how many emails are streaming in every day, and getting nuked by SpamAssassin, but I still use that PHP script to nuke some more of them before I ever get around to the browser-based filtering, which only kicks in when I login... One time, after a server upgrade (move) the cron jobs didn't get re-instated, and I couldn't even login to read email -- The webmail (squirrelmail) would just choke on its attempts to filter the box, until I reset up the cron job, and PHP nuked a bunch of spam for me. Here's the source of my PHP IMAP spam filtering code: http://l-i-e.com/imap/index.phps I ripped out most of my actual spam rules to keep the code example somewhat readable. I'm not saying it's the best-written code ever -- It was a quick hack to deal with an impossible situation where I couldn't read me email, but I've been using it for years. I also have it set up to filter email into the boxes for me, long before I log in, so I don't have to wait for squirrelmail to move all the PHP-General emails where they belong, in their own folder. :-) -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php