Eric S. Raymond (of The Cathedral and the Bazaar fame) originally wrote fetchmail, a program that can retrieve mail from almost anywhere. fetchmail has a very impressive feature list and normally does its thing quietly in the background. I’ve been using fetchmail for a long time, and have also used it on special occasions. getmail by Charles Cazabon is a similar program that offers a number of interesting features not found in fetchmail. These include a simpler configuration syntax (IMHO), support for message filtering and classification, and message delivery to multiple destinations. The documentation is good and contains many interesting samples that should get the user running within a very short time. The configuration for one of my accounts is
[options] verbose = 2 delete = true delivered_to = false received = true message_log = ~/.getmail/log [retriever] type = SimplePOP3SSLRetriever server = pop.example.de username = myusername password = mypassword [filter-spam] type = Filter_external path = /usr/bin/spamc [filter-virus] type = Filter_classifier path = /usr/bin/clamscan arguments = ("--stdout", "--no-summary", "--log=/home/jpm/.getmail/clam.log", "--infected", "--move=/home/jpm/.getmail/clam.infected", "-") exitcodes_drop = (1,) [destination] type = MultiDestination destinations = ( "[backup-jpm]", "[procmail-as-jpm]" ) [backup-jpm] type = Maildir path = ~jpm/mailbackup/ [procmail-as-jpm] type = MDA_external path = /usr/bin/procmail arguments = ('-f', '%(sender)') user = jpm
I moved from fetchmail to getmail because I needed the multiple destinations, and I haven’t as yet regretted the change.