Gnus development mailing list
 help / color / mirror / Atom feed
From: Jarmo Hurri <jarmo.hurri@iki.fi>
To: ding@gnus.org
Subject: Mail splitting stopped working with Emacs 25
Date: Tue, 09 Aug 2016 18:14:32 +0300	[thread overview]
Message-ID: <87popiq8iv.fsf@iki.fi> (raw)


Greetings.

The subject describes the problem. I am getting a bit desperate here. I
have two questions. The first one is short and would solve the entire
problem. The second one describes the problem.

1. If anyone has a working imap mail splitting definition for Emacs 25
   which uses gnus-group-browse-foreign-server to subscribe to the imap
   groups I would like to see it. I can probably figure out my own
   version from it.

2. Now the _long_ version.

   In Emacs 24 I had the following way to subscribe to imap and split
   my mail.

   i. I subscribed to the imap boxes by evaluating

      (gnus-group-browse-foreign-server
        '(nnimap "mail"
           (nnimap-address "mail.server.com")
           (nnimap-stream ssl)
           (nnimap-server-port 993)))

   ii. Then in my .gnus I defined the equivalent of the following:

      (setq nnimap-inbox "INBOX")
      (setq nnimap-split-methods
       '(
        ("lists" "^\\(To\\|Cc\\):.*list")
        ("Spam" "^From:.*spamster")
        ("personal" "")))
        

   This stopped working in Emacs 25. The following thread examined some
   of the problems involved:

   https://lists.gnu.org/archive/html/bug-gnu-emacs/2015-07/msg00549.html

   Ok, so I set out to solve the problem. My FIRST EFFORT was to try to
   pass my splitting rules to gnus-group-browse-foreign-server,
   something along the lines of evaluating

      (gnus-group-browse-foreign-server
        '(nnimap "mail"
           (nnimap-address "mail.server.com")
           (nnimap-stream ssl)
           (nnimap-server-port 993)
           (nnimap-inbox "INBOX")
           (nnimap-split-methods
             '(
               ("lists" "^\\(To\\|Cc\\):.*list")
               ("Spam" "^From:.*spamster")
               ("personal" "")))))


   That resulted in really weird behaviour, with mail being split
   correctly when I first subscribed, but then all the mail going to
   "mail.misc" on subsequent restarts of gnus.

   SECOND TRY: use gnus-secondary-select-methods with a variable,
   something equivalent to

   (setq my-nnimap-split-methods
     '(
       ("lists" "^\\(To\\|Cc\\):.*list")
       ("Spam" "^From:.*spamster")
       ("personal" "")))
   
   (add-to-list 'gnus-secondary-select-methods
        '(nnimap "mail"
           (nnimap-address "mail.server.com")
           (nnimap-stream ssl)
           (nnimap-server-port 993)
           (nnimap-inbox "INBOX")
           (nnimap-split-methods my-nnimap-split-methods)))

    This gave me _no mail_: no imap boxes, no mail whatsoever, nothing
    even related to imap in buffer *Messages*. I have no idea why.

    THIRD TRY. My original splitting was not fancy, but the guy I
    referred to above had used it succesfully. So I converted my
    splitting rules to fancy form, and tried to browse the foreign
    server again:

    (setq nnimap-split-fancy
      '(|
	(to "list" "lists")
        (from "spamster" "Spam")
	"personal"
	))

     (gnus-group-browse-foreign-server
        '(nnimap "mail"
           (nnimap-address "mail.server.com")
           (nnimap-stream ssl)
           (nnimap-server-port 993)
           (nnimap-inbox "INBOX")
           (nnimap-split-methods 'nnimap-split-fancy)))

     Still no working splitting: all the mail gets split into box
     "mail.misc".

I would _really_ appreciate help here.

Jarmo




             reply	other threads:[~2016-08-09 15:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-09 15:14 Jarmo Hurri [this message]
2016-08-09 15:38 ` Adam Sjøgren
2016-08-09 15:49   ` Jarmo Hurri
2016-08-09 16:20   ` Jarmo Hurri
2016-08-09 20:13     ` Adam Sjøgren

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=87popiq8iv.fsf@iki.fi \
    --to=jarmo.hurri@iki.fi \
    --cc=ding@gnus.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).