Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: physiculus <physiculus@gmail.com>
To: info-gnus-english@gnu.org
Subject: Re: newbie question: trouble with mail splitting
Date: Mon, 03 Jun 2019 19:33:08 +0200	[thread overview]
Message-ID: <87r28aa817.fsf@googlemail.com> (raw)
In-Reply-To: <87ftovu0dj.fsf@tullinup.koldfront.dk> (Adam Sj's message of "Thu, 30 May 2019 22:56:56 +0200")

Adam Sj?gren <asjo@koldfront.dk> writes:

> (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?.
Hello,
i try to use all your suggestions and reading material.
Now my related split config looks like this:
(nnimap "GMail"
                                              (nnimap-address "imap.gmail.com")
                                              (nnimap-server-port "imaps")
                                              (nnimap-user "physiculus@googlemail.com")
                                              (nnimap-stream ssl)
                                              (nnimap-inbox "INBOX")
                                              (nnimap-split-methods 'nnimap-split-fancy)
                                              (nnimap-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")
        ))
                                              (get-new-mail t)
                                              (nnir-search-engine imap)
                                              )

A difference is now, that now i got an error message from gnus. That
looks promise! Unfortunately i dont know how i can fix it.

Error in ‘nnmail-split-methods’; using ‘bogus’ mail group:
(wrong-type-argument arrayp (| (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") ("mail.misc")))

Any clues or infos about it?

Regards
Poul

> `----
>
> 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

_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

      reply	other threads:[~2019-06-03 17:33 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-27 19:36 Karl
2019-05-27 20:46 ` Emanuel Berg
2019-05-27 21:35 ` Adam Sjøgren
2019-05-27 22:17   ` Eric Abrahamsen
2019-05-28  1:09     ` William Henderson
2019-05-28  5:27     ` Adam Sjøgren
     [not found]       ` <87tvdc0yjp.fsf@googlemail.com>
2019-05-30 15:27         ` Adam Sjøgren
2019-05-30 17:04           ` physiculus
     [not found]           ` <87k1e727rf.fsf@googlemail.com>
2019-05-30 20:56             ` Adam Sjøgren
2019-06-03 17:33               ` physiculus [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r28aa817.fsf@googlemail.com \
    --to=physiculus@gmail.com \
    --cc=info-gnus-english@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).