Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Rupert Swarbrick <rswarbrick@gmail.com>
To: info-gnus-english@gnu.org
Subject: Two nnimap splitting questions
Date: Thu, 04 Dec 2014 09:12:19 +0000	[thread overview]
Message-ID: <j4l5lb-07a.ln1@halibut.with-a-lisp.net> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1860 bytes --]

I'm using Gnus at work (yay!) with nnimap. After quite a bit of
fiddling, I eventually got fancy splitting working based on
nnimap-split-methods. However, there are two things confusing me:

 1. In the Client-Side IMAP splitting page of the Gnus manual, there's
    this example:

         (nnimap "imap.example.com"
                 (nnimap-inbox "INBOX")
                 (nnimap-split-methods
                  (| ("MailScanner-SpamCheck" "spam" "spam.detected")
                     (to "foo@bar.com" "foo")
                     "undecided")))

    But copying it failed miserably for me: it seems that by the time we
    get to the splitting functions in nnmail, they look at
    eg. nnmail-split-fancy which just has its default value (and isn't
    populated with the contents of my nnimap-split-methods).

    Does anyone have an example like this working for them? If so, I was
    probably not updating things properly and being bitten by my second
    question...


 2. I finally got things working with something like this in my .gnus.el:

       (setq gnus-select-method
         '(nnimap "imap.example.com"
                  (nnimap-inbox "INBOX")
                  (nnimap-split-methods nnmail-split-fancy)
                  (nnmail-split-fancy
                   (| (something or other)
                      ...
                      "undecided"))))

    and that's great, but I had reasonably complicated splitting rules I
    was trying to "port" from Thunderbird, so I had to edit them several
    times (less painful when I'd found B q and B t). Unfortunately, just
    re-evaluating the gnus-select-method setq form didn't update the
    splitting rules, nor did hitting "r" in the Group buffer.

    Is there any way to update my splitting rules without quitting gnus
    and restarting? (That got irritating pretty quickly...)


Rupert

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 298 bytes --]



                 reply	other threads:[~2014-12-04  9:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=j4l5lb-07a.ln1@halibut.with-a-lisp.net \
    --to=rswarbrick@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).