Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* nnimap-split-fancy
@ 2010-12-17  1:10 Tommy Kelly
  0 siblings, 0 replies; 20+ messages in thread
From: Tommy Kelly @ 2010-12-17  1:10 UTC (permalink / raw)
  To: info-gnus-english

I may have to propose info "6.3.6 Fancy Mail Splitting" for the winner
of "Most Difficult To Follow Instructions 2010", but let's see. As a
start, does  the following make sense? The intent is to put emails from
domain1.com and domain2.com into, respectively, groups
emails-from-domain1 and emails-from-domain2, and to leave all others in
INBOX. 

(setq gnus-secondary-select-methods
      '(
	(nnimap "work"
		(nnimap-address "imap.gmail.com")
 	 	(nnimap-stream ssl)
		(nnimap-server-port 993)
		(nnimap-inbox "INBOX")
		(nnimap-split-methods 'nnmail-split-fancy)
		(nnmail-split-fancy 
		 ( |
		   ("from" ".*domain1\\.com" "emails-from-domain1)
		   ("from" ".*domain2\\.com" "emails-from-domain2)
		   "INBOX" "")
		  )
		)
      )

If it does make sense, well it doesn't work.

How about an example from someone who groks this stuff. What would the
fancy splitting look like to put into group "jabba-hates-luke", all
messages from jabba@thehutt.com with "Luke is annoying" in the subject? 

And then, other questions about the info:

* "This variable has the format of a split. A split is ..."

Is a "split" a well-defined lisp thing? If not, isn't that definition
nothing more than the statement: "This variable has the format of a
possibly recursive thingy"?  

* "Here are the possible split syntaxes: group ..."

This is very confusing given that "junk" and "nil" are also listed as
options later. It makes it look like group is another symbol that can be
provided as a split. But then:


* "junk  If the split is the symbol junk ..." 
and
* "nil   If the split is nil it is ignored"

What would it look like for the split to *be* the symbol junk?
And an example of a nil split would be helpful.


* "(! func split)  If the split is a list, and the first element is !,
  then split will be processed, and func will be called as a function
  with the result of split as argument..."

Now I'm not showing italics, and so in the original (with-italics) the difference
between *the* split, and its internal split (i.e. third item in the
list) is clearer. But it would be 
a helluva lot easier to read if "split" wasn't being used in two
different senses.

Also, what is "the result of split"? Is it a split? A group name? What?

Note -- I am not au fait with lisp, so maybe the above are all stupid
newb questions, but I'm kinda guessing not. 

thanks,
Tommy

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

end of thread, other threads:[~2010-12-28 15:48 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.5.1292548275.31723.info-gnus-english@gnu.org>
2010-12-17  9:38 ` nnimap-split-fancy Adam Sjøgren
2010-12-17 10:36   ` nnimap-split-fancy Richard Riley
2010-12-17 15:09   ` nnimap-split-fancy Tommy Kelly
2010-12-17 17:30     ` About toothpicks (was Re: nnimap-split-fancy) Štěpán Němec
2010-12-17 22:39       ` Tommy Kelly
2010-12-18  8:16         ` Error in (info "(gnus)Splitting Mail") Štěpán Němec
     [not found]         ` <mailman.13.1292660334.28168.info-gnus-english@gnu.org>
2010-12-18 18:45           ` Lars Magne Ingebrigtsen
2010-12-18 22:33             ` Tommy Kelly
2010-12-19 14:27               ` Ted Zlatanov
2010-12-19 15:24                 ` Štěpán Němec
2010-12-19 15:53                 ` Tommy Kelly
2010-12-27 15:07                   ` Ted Zlatanov
2010-12-27 16:34                     ` Steinar Bang
     [not found]                   ` <mailman.5.1293462475.24495.info-gnus-english@gnu.org>
2010-12-27 15:38                     ` Richard Riley
2010-12-28 13:21                       ` Tommy Kelly
     [not found]                       ` <mailman.0.1293542535.18545.info-gnus-english@gnu.org>
2010-12-28 15:48                         ` Richard Riley
     [not found]                 ` <mailman.6.1292772417.12385.info-gnus-english@gnu.org>
2010-12-19 15:55                   ` Richard Riley
2010-12-18 19:12     ` nnimap-split-fancy Eric S Fraga
     [not found]   ` <mailman.4.1292598585.3076.info-gnus-english@gnu.org>
2010-12-17 21:18     ` nnimap-split-fancy Adam Sjøgren
2010-12-17  1:10 nnimap-split-fancy Tommy Kelly

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