Hi folks

I've been messing around with fetchmail / mutt / procmail. I use
fetchmail / IMAP to download mail from sundry folders on a hosted
server, leaving a copy of everything.

I use identical procmail rcfiles on my home machine and the remote
machine.

I use a script to extract mailfolder names from the .procmailrc and put
them where fetchmail and mutt can use them.

I receive approx. 300 emails a day, I think. I only read about 100 of
them _daily_, and save the rest up in archives.

This is the script I use:
        #!/bin/bash
        grep ^[A-Za-z] ~/.procmailrc | grep -v =  | grep -v ackup | sort | uniq > 
~/tmp/mailboxes

        cat ~/tmp/mailboxes | sed "s/^/mailboxes =/" > ~/.mailboxes
        cat ~/tmp/mailboxes | sed "s/^/echo folder Mail\//" > ~/.fetchmailfolders
        chmod 755 ~/.fetchmailfolders
        
        cat  ~/.fetchmailhead > ~/.fetchmailrc
        ~/.fetchmailfolders | cat >> ~/.fetchmailrc

Ugly, isn't it?

I do this because procmail saves mail to folders called
Mail/listname'date +%Y%m', which mutt understands and fetchmail
doesn't.

What should I be doing instead? Should I learn how to use IMAP
properly?

Thanks...

Ailbhe

-- 
Homepage: http://ailbhe.ossifrage.net/

Reply via email to