Fetchmail example
by Emre Tugriceri on Dec.24, 2007, under Mail
Example .fetchmailrc file ;
[root@mail Maildir]# cat /root/.fetchmailrc
defaults
fetchall
keep
set no bouncemail
poll 127.0.0.1 protocol IMAP
user efsaneuser@superdomain.com there with password xxxxx is efsane.user@superdomain.com here
smtphost 192.168.0.10
———————————————–
if you want to fetch old mails with subfolders, you can try this settings.
[root@mail Maildir]# cat /root/fet.sh
for gonder in “INBOX.Ocak” “INBOX.Subat” “INBOX.Mart” “INBOX.Nisan” “INBOX.Mayis” “INBOX.Haziran” “INBOX.Temmuz” “INBOX.Agustos” “INBOX.Eylul” “INBOX.Kasim” “INBOX.Aralik”
do
fetchmail -r $gonder
done
Powered by ScribeFire.