From: Joshua P. <par...@of...> - 2000-11-01 06:19:45
|
Hello, Well, you guys probably think I can't code PHP after that huge error I made yesterday, but I'd like to present some code for your rejection anyway. I have hacked around with Mail Fetch, and the new version is available at: http://www.offthehill.org/mail_fetch.2.tar.gz It now has an options page that saves the server/user/password, and clicking fetch just grabs the email without prompting the user. It also deletes the mail off the pop server, but only if it was sucessful in adding it to the Squirrelmail IMAP server. I've updated the README file, and added some ideas to the TODO list. I don't know how to have a pop client remember the last message it downloaded, etc, so that it can download new messages without downloading old ones, but when I figure that out, I'll implement it (if someone doesn't beat me too it) so mail_fetch can have a "leave mail on server" option. Oh, and so we can rekindle the old 'plugin vs. fetchmail' thread: I really, really tried to use fetchmail to solve this problem, but I want each user to be able to configure their own .fetchmailrc file, and then have fetchmail run transparently to them all the time (IE, via a daemon). I can't figure out a secure way to have fetchmail use each users own ~/.fetchmailrc, and having one huge monolithic /etc/fetchmailrc is crazy! If anyone can help me with a suggestion for this, I'll start working on a SM plugin to configure fetchmail. -Josh |