You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Pollywog <li...@shadypond.com> on 2005/12/05 00:42:37 UTC
Re: using LearnAsSpam IMAP folder [SOLVED]
On 12/04/2005 11:18 pm, Tyler Nally wrote:
> On Sunday 04 December 2005 05:59 pm, Pollywog wrote:
> > I do that as well and have no problem, but when I use the fetchmail as
> > shown at the URL I posted (the command goes into a crontab), fetchmail
> > can't find the IMAP folder.
>
> I wonder if it's just the way you refer to the sub-folders with
> fetchmail in order to fetch the right directories.... "Fetchmail"
> being essentially a "dumb" utility .. you might have to provide it
> with more information before it can find what YOU are looking for.
>
> A quick scan of Google looking for "fetchmail IMAP" had someone
> calling fetchmail like this using the IMAP protocol and fetchmail
> reading certain folders:
>
> fetchmail -k -a -p IMAP \
> -S localhost \
> --smtpname some.mailbox@gmail.com \
> -u username \
> --auth password \
> -r "Inbox.folder1","Inbox.folder2","Inbox.etc" \
> -v mailserver.domain.com
>
> ... with the "Inbox" representing the home "Maildir" path
> and the "Inbox.folder1" representing the first named sub-folder
> within the main maildir... and "Inbox.folder2" the 2nd, etc.
Thanks for the info, this worked :)
This is what I did, following what you posted:
$ fetchmail -a -v -n -r "Inbox.LearnAsSpam" -m 'sa-learn -D --spam'
Thanks for your help, now to see if this will work from a crontab, which
should not be a problem.
8)