Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Trouble for setting up mail splitting
@ 2016-02-25 15:05 Satak Azat'
  2016-02-25 18:07 ` Eric S Fraga
  0 siblings, 1 reply; 4+ messages in thread
From: Satak Azat' @ 2016-02-25 15:05 UTC (permalink / raw)
  To: info-gnus-english


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

Hi,
I've moved to gnus recently and I wanted to make automatic mail spliting, and I managed to set up a functioning config for spliting with From. But I'm having trouble when it comes to split with Subject: no matter what I put in it, it want to put the mail in bogus.
And also, gnus doesn't sort the message, he know where they must go but doesn't move them.
Sorry for my  bad english.
Here's a part of my .gnus.el:


(add-to-list 'gnus-secondary-select-methods '(nnimap "gmail"
					 (nnimap-address "imap.gmail.com")
					 (nnimap-server-port "imaps")
					 (nnimap-stream-ssl)))

(setq nnimap-split-methods
	 '(
	 ("Comptes" "^Subject:.*registration")
  ("Important" "^Subject:.*order")
	 ("Important" "^Subject:.*Order")
	 ("Newsletter" "^From:.*news")
	 ("ListesDeDiffusion/Framalang" "^To:.*framalang@framalistes.org")
))

-- 
v5sw3+8hw3+7pr4+8Sck1+6edu4Aln7/3ma3/4os4UedEcr4bo5ga8Ca20IgeMs6Ap/6+/6h3et5http://shine.eu.org/hackerkey.html

[-- Attachment #1.2: Type: text/html, Size: 1279 bytes --]



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Trouble for setting up mail splitting
  2016-02-25 15:05 Trouble for setting up mail splitting Satak Azat'
@ 2016-02-25 18:07 ` Eric S Fraga
  2016-02-26  2:28   ` Satak Azat'
       [not found]   ` <mailman.5929.1456478729.843.info-gnus-english@gnu.org>
  0 siblings, 2 replies; 4+ messages in thread
From: Eric S Fraga @ 2016-02-25 18:07 UTC (permalink / raw)
  To: info-gnus-english

On Thursday, 25 Feb 2016 at 16:05, Satak Azat' wrote:
> Hi,

> I've moved to gnus recently and I wanted to make automatic mail
> spliting, and I managed to set up a functioning config for spliting
> with From. But I'm having trouble when it comes to split with Subject:
> no matter what I put in it, it want to put the mail in bogus.

> And also, gnus doesn't sort the message, he know where they must go
> but doesn't move them.

(send first reply to ding mailing list -- sorry)

I use fancy splitting:

For the secondary select method, I have defined this server:

--8<---------------cut here---------------start------------->8---
(nnimap "xxx"
 (nnimap-address "xxx")
 (nnimap-inbox "INBOX")
 (nnimap-split-methods nnmail-split-fancy)
 (nnimap-stream ssl))
--8<---------------cut here---------------end--------------->8---

and then I have the following (elided for illustration):

--8<---------------cut here---------------start------------->8---
(setq nnmail-split-fancy 
 '(| (from ".*sciencedirect.com" "contents")
     (to ".*clojure@googlegroups.com" "lists.clojure")
     ;; all the rest
     "general"))
--8<---------------cut here---------------end--------------->8---

Note the specification of what split method to use in the server
definition.  There is a whole info section in the gnus manual on how to
set up fancy splitting.

HTH,
eric


-- 
: Eric S Fraga, GnuPG: 0xFFFCF67D
: in Emacs 25.0.91.1 + Ma Gnus v0.16 + evil-git-ff74cfb
: BBDB version 3.1.2 (2015-10-28 10:47:01+00:00)


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Trouble for setting up mail splitting
  2016-02-25 18:07 ` Eric S Fraga
@ 2016-02-26  2:28   ` Satak Azat'
       [not found]   ` <mailman.5929.1456478729.843.info-gnus-english@gnu.org>
  1 sibling, 0 replies; 4+ messages in thread
From: Satak Azat' @ 2016-02-26  2:28 UTC (permalink / raw)
  To: info-gnus-english


I think I made it, the last thing is I get this when I do B r :

Wrong type argument: string, nil

Any idea ?


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Trouble for setting up mail splitting
       [not found]   ` <mailman.5929.1456478729.843.info-gnus-english@gnu.org>
@ 2016-02-26 11:13     ` Gijs Hillenius
  0 siblings, 0 replies; 4+ messages in thread
From: Gijs Hillenius @ 2016-02-26 11:13 UTC (permalink / raw)
  To: info-gnus-english

On 26 Feb 2016, Satak Azat' wrote:

> I think I made it, the last thing is I get this when I do B r :
>
> Wrong type argument: string, nil

Study the splitting examples in the manual, and in your code comment out
everything and anything that looks different.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-02-26 11:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-25 15:05 Trouble for setting up mail splitting Satak Azat'
2016-02-25 18:07 ` Eric S Fraga
2016-02-26  2:28   ` Satak Azat'
     [not found]   ` <mailman.5929.1456478729.843.info-gnus-english@gnu.org>
2016-02-26 11:13     ` Gijs Hillenius

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).