From: Travis O. <tr...@ws...> - 2012-05-24 20:04:31
|
Hello, I am trying to use fectchmail to fetch the contents of a folder (.spam.missed/) from my courier-imap server so that I can send the messages to spamassassin's learning program. Using this as a guide: http://wiki.apache.org/spamassassin/SingleUserUnixInstall#Enable_IMAP_LearnAsSpam_folder When I invoke $ /usr/bin/fetchmail -a -v -n --folder /home/USER/.maildir/.spam.missed/ -m '/usr/bin/sa-learn -D --spam' --fetchmailrc /home/USER/.spamtrainingpoprc I get this: [snip] fetchmail: IMAP> A0004 LOGIN "USER" * fetchmail: IMAP< A0004 OK LOGIN Ok. fetchmail: IMAP> A0005 SELECT "/home/USER/.maildir/.spam.missed/" fetchmail: IMAP< A0005 NO Mailbox does not exist, or must be subscribed to. fetchmail: mailbox selection failed fetchmail: IMAP> A0006 LOGOUT fetchmail: IMAP< * BYE Courier-IMAP server shutting down fetchmail: IMAP< A0006 OK LOGOUT completed fetchmail: client/server synchronization error while fetching from US...@do...d fetchmail: 6.3.21 querying domain.tld (protocol IMAP) at Thu May 24 13:21:13 2012: poll completed fetchmail: Query status=7 (ERROR) fetchmail: normal termination, status 7 This is the fetchmailrc file I set up (to not conflict with my main fetchmail file which works fine) == ~/.spamtrainingpoprc == # used by spamassassin to train Bayes poll domain.tld protocol IMAP: user USER with password PASSWORD ================= == system info == OS: gentoo gcc version 4.4.5 (Gentoo 4.4.5 p1.3, pie-0.4.5) fetchmail 6.3.21+RPA+NTLM+SDPS+SSL+NLS courier-imap-4.5.0 ================= Any thoughts? Thank you in advance. -- Travis |