Re: Gnus / ifile doesn't learn ;

Stefan Bodewig <[email protected]> 10 Mar 2003 08:24:47 +0100
Newsgroups gmane.mail.ifile.general
Message-ID <[email protected]>
On Fri, 07 Mar 2003, Pascal Desroche <[email protected]> wrote:

> I receive mails that I wish I could read and keep that are sent to
> the spam folder everytime, even if also every time I change them to
> a non-spam folder.

As your subject line mentions Gnus, you are probably using fancy mail
splitting and invoke ifile from there.  If you add a rule to sort your
friends mails into a special folder before ifile gets invoked, you
should be done.  Something like (snipped example of my .gnus.el):

(setq nnmail-split-fancy
      '(|
        ;; first white-list some stuff to reduce the amount of work for ifile
        
        ;; moderated spam-free mailinglists
        ("list-post" "[email protected]" 
                     "mail.jakarta-announce")

        ;; customers likely to send attachments or HTML, unlikely to send to 
        ;; mailinglists
        (from ".*@customer.de" "mail.customer")

        ;; black-list some stuff that I cannot read anyway
        ("content-type" ".*gb2312" "mail.trash")

	(: ifile-spam-filter 
	   '(|
             ("subject" "moderate for" "mail.moderate")

...

The rule for your friend would probably be something like my
@customer.de rule.

Stefan