info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: newbie question: trouble with mail splitting


From: Adam Sjøgren
Subject: Re: newbie question: trouble with mail splitting
Date: Thu, 30 May 2019 22:56:56 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

(Please reply to the mailing list, and not just me. Email-addresses in
the To: line should be comma-, not space-separated. Thanks.)

physiculus writes:

[...]

> ;; split
> ;; client-side imap splitting ermöglichen
> (gnus-group-split-setup t)
> (setq nnimap-split-download-body t)
> (setq nnmail-crosspost nil)
> (setq nnmail-split-methods 'nnmail-split-fancy)
> (setq nnmail-split-fancy
>       '(|
>         ;;(: spam-split 'spam-use-regex-headers)
>         (To "emacs-orgmode@gnu.org" "nnmaildir+Lokal:OrgDigest")
>         (From ".*n3.nabble.com" "nnmaildir+Lokal:notmuch")
>         (From ".*pinterest.com" "nnmaildir+Lokal:Pinterest")
>         (Subject "^FRITZ!.*" "nnmaildir+Lokal:fritz")
>         (From "forum@papyrus.de" "nnmaildir+Lokal:Papyrus")
>         ;;(: spam-split)
>         ("mail.misc")
>         ))
>
> ;; (setq nnmail-split-fancy
> ;;       '(|
> ;;         (: spam-split)
> ;;         "inbox"))
>
> ;; initialisiere split
> (setq gnus-group-split-setup t)
> (setq nnmail-pre-get-new-mail-hook '(gnus-group-split-update))

[...]

>
> (setq gnus-secondary-select-methods '(
> (nnimap "GMail"
>                                               (nnimap-address 
> "imap.gmail.com")
>                                               (nnimap-server-port "imaps")
>                                               (nnimap-user 
> "xxx@googlemail.com")
>                                               (nnimap-stream ssl)
>                                               (nnimap-split-methods 
> 'nnmail-split-fancy)
>                                               (get-new-mail t)
>                                               (nnir-search-engine imap)
>                                               )

[...]

As far as I can tell, the above quoted parts of your .gnus are the ones
related to splitting.

So you are doing nnimap-splitting. Step 1 is to read:

 · http://gnus.org/manual/gnus_83.html#Client_002dSide-IMAP-Splitting

I think you need to set nnimap-split-fancy to your fancy splits:

,----[ C-h v nnimap-split-fancy RET ]
| nnimap-split-fancy is a variable defined in ‘nnimap.el’.
| Its value is nil
| 
| Documentation:
| Uses the same syntax as ‘nnmail-split-fancy’.
| 
| This is a Gnus server variable.  See Info node ‘(gnus)Select Methods’.
`----

You've only set nnmail-split-fancy, which is for non-IMAP splitting.

You also have to set nnimap-inbox:

,----[ C-h v nnimap-inbox RET ]
| nnimap-inbox is a variable defined in ‘nnimap.el’.
| Its value is nil
| 
| Documentation:
| The mail box where incoming mail arrives and should be split out of.
| This can be a string or a list of strings
| For example, "INBOX" or ("INBOX" "SENT").
| 
| This is a Gnus server variable.  See Info node ‘(gnus)Select Methods’.
`----

I'm not sure that IMAP-splitting can split to other backends, so you
might have to revise your splits, but I don't know for sure.


  Best regards,

    Adam

-- 
 "Everything needs to change.                                 Adam Sjøgren
  And it has to start today."                            asjo@koldfront.dk



reply via email to

[Prev in Thread] Current Thread [Next in Thread]