Gnus development mailing list
 help / color / mirror / Atom feed
* splitting for dunces
@ 2010-10-04 18:50 Austin F. Frank
  2010-10-04 20:17 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 9+ messages in thread
From: Austin F. Frank @ 2010-10-04 18:50 UTC (permalink / raw)
  To: ding

[-- Attachment #1: Type: text/plain, Size: 1938 bytes --]

Hi all--

At one point recently Ted sent a working example of using fancy
splitting with the new nnimap, "for future generations" [1].  This ended
up leading to some changes that gave us at least two new ways to use
fancy splitting.  We now have the possibility of defining
nnimap-split-methods-fancy [2] (not mentioned in the info documentation,
but `nnimap-split-fancy' is? [3]) or giving a fancy split specification
directly to nnimap-split-methods [4].

I've tried to get splitting working using several variations of these
variables, but have had no luck.  Rather than me reporting each of my
boneheaded attempts, would someone be willing to post a working fancy
split example of the sort

--8<---------------cut here---------------start------------->8---
(add-to-list 'gnus-secondary-select-methods
             '(nnimap "dc"
                      (nnimap-address "localhost")
                      (nnimap-stream ssl)
                      (nnimap-inbox "INBOX")
                      ;; please tell me what to do next!))
--8<---------------cut here---------------end--------------->8---

While it's true that there are some examples of fancy splitting in the
documentation [5], most of the nnimap ones say to see the documentation
for nnmail, and none of the examples show how to specify fancy splitting
in a way that will apply to only one server -- there are lots of
examples of splitting rules, but none of them tell me how to set one and
only one select method to use those rules.

Sorry if there are obvious parts of the documentation that I have
missed!

Thanks for any help!
/au

[1] <87k4m3i19x.fsf@lifelogs.com>
[2] <m3pqvvkogq.fsf@quimbies.gnus.org>
[3] (info "(gnus) Client-Side IMAP Splitting")
[4] <m3bp7doe3m.fsf@quimbies.gnus.org>
[5] (info "(gnus) Fancy Mail Splitting")

-- 
Austin Frank
http://aufrank.net
GPG Public Key (D7398C2F): http://aufrank.net/personal.asc

[-- Attachment #2: Type: application/pgp-signature, Size: 194 bytes --]

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

* Re: splitting for dunces
  2010-10-04 18:50 splitting for dunces Austin F. Frank
@ 2010-10-04 20:17 ` Lars Magne Ingebrigtsen
  2010-10-04 20:21   ` Austin F. Frank
  0 siblings, 1 reply; 9+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-10-04 20:17 UTC (permalink / raw)
  To: ding

"Austin F. Frank" <austin.frank@gmail.com> writes:

> We now have the possibility of defining nnimap-split-methods-fancy [2]
> (not mentioned in the info documentation,

That doesn't exit...

> but `nnimap-split-fancy' is? [3]) or giving a fancy split specification
> directly to nnimap-split-methods [4].

Or just setting nnmail-split-methods.

> (add-to-list 'gnus-secondary-select-methods
>              '(nnimap "dc"
>                       (nnimap-address "localhost")
>                       (nnimap-stream ssl)
>                       (nnimap-inbox "INBOX")
                        (nnimap-split-methods (("your" "split")))))

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




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

* Re: splitting for dunces
  2010-10-04 20:17 ` Lars Magne Ingebrigtsen
@ 2010-10-04 20:21   ` Austin F. Frank
  2010-10-04 20:31     ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 9+ messages in thread
From: Austin F. Frank @ 2010-10-04 20:21 UTC (permalink / raw)
  To: ding

[-- Attachment #1: Type: text/plain, Size: 521 bytes --]

On Mon, Oct 04 2010, Lars Magne Ingebrigtsen wrote:

>> (add-to-list 'gnus-secondary-select-methods
>>              '(nnimap "dc"
>>                       (nnimap-address "localhost")
>>                       (nnimap-stream ssl)
>>                       (nnimap-inbox "INBOX")
>                         (nnimap-split-methods (("your" "split")))))

How would it look if it used fancy splitting?

Thanks,
/au

-- 
Austin Frank
http://aufrank.net
GPG Public Key (D7398C2F): http://aufrank.net/personal.asc

[-- Attachment #2: Type: application/pgp-signature, Size: 194 bytes --]

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

* Re: splitting for dunces
  2010-10-04 20:21   ` Austin F. Frank
@ 2010-10-04 20:31     ` Lars Magne Ingebrigtsen
  2010-10-04 21:09       ` Austin F. Frank
  2010-10-05  6:10       ` Richard Riley
  0 siblings, 2 replies; 9+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-10-04 20:31 UTC (permalink / raw)
  To: ding

"Austin F. Frank" <austin.frank@gmail.com> writes:

>>                         (nnimap-split-methods (("your" "split")))))
>
> How would it look if it used fancy splitting?

 (nnimap-split-methods '(| (fancy-split blah blah)))

The manual has several fancy split examples, I think.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




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

* Re: splitting for dunces
  2010-10-04 20:31     ` Lars Magne Ingebrigtsen
@ 2010-10-04 21:09       ` Austin F. Frank
  2010-10-05  7:09         ` Tassilo Horn
  2010-10-05  6:10       ` Richard Riley
  1 sibling, 1 reply; 9+ messages in thread
From: Austin F. Frank @ 2010-10-04 21:09 UTC (permalink / raw)
  To: ding

[-- Attachment #1: Type: text/plain, Size: 4097 bytes --]

On Mon, Oct 04 2010, Lars Magne Ingebrigtsen wrote:

> "Austin F. Frank" <austin.frank@gmail.com> writes:
>
>>>                         (nnimap-split-methods (("your" "split")))))
>>
>> How would it look if it used fancy splitting?
>
>  (nnimap-split-methods '(| (fancy-split blah blah)))
>
> The manual has several fancy split examples, I think.

OK, then I might not be quite the dunce I thought I was.  Hopefully this
is a legitimate bug report.

With the following configuration:

#v+
(add-to-list 'gnus-secondary-select-methods
             '(nnimap "dc"
                      (nnimap-address "localhost")
                      (nnimap-stream shell)
                      (nnimap-shell-program "/opt/local/sbin/dovecot --exec-mail imap")
                      (nnimap-nov-is-evil nil)
                      (nnimap-inbox "INBOX")
                      (nnimap-split-methods
                       '(| (any "user2@example.*" "mail.personal")
                           (any "user1@bcs\\.example\\.com" "mail.academic")
                           (any "user1@cs\\.example\\.com" "mail.academic")
                           (any ".*@\\cs.example\\.com" "mail.academic")
                           (any ".*@.*\\.edu" "mail.academic")
                           (any ".*orgmode.*" "group.orgmode")
                           (any "user3@example\\.com" "mail.general")
                           "mail.misc"))))
#v-

Gives this backtrace when I start gnus with `debug-on-error' set to t.
The byte code is elided.

#v+
Debugger entered--Lisp error: (wrong-type-argument sequencep quote)
  nnmail-article-group(nnimap-dummy-active-number nil nnimap-save-mail-spec)
  nnmail-check-duplication("<8416-48739-11KTXM-7A950L-JEQM1X-W0H5B2-0VIKNE-T-M2-20100916-b9b71b5d26c19d8@e-dialog.com>" nnimap-save-mail-spec nnimap-dummy-active-number nnimap-save-mail-spec)
  nnmail-process-mmdf-mail-format(nnimap-save-mail-spec nnimap-dummy-active-number nnimap-save-mail-spec)
  nnmail-split-incoming(#<buffer *nnimap localhost nil  *nntpd**> nnimap-save-mail-spec nil nil nnimap-dummy-active-number nnimap-save-mail-spec)
  nnimap-split-incoming-mail()
  nnimap-request-scan(nil "dc")
  gnus-request-scan(nil (nnimap "dc" (nnimap-address "localhost") (nnimap-stream shell) (nnimap-shell-program "/opt/local/sbin/dovecot --exec-mail imap") (nnimap-nov-is-evil nil) (nnimap-inbox "INBOX") (nnimap-split-methods nnimap-split-fancy) (nnimap-split-methods (quote (| (any "user2@example.*" "mail.personal") (any "user1@bcs\\.example\\.com" "mail.academic") (any "user1@cs\\.example\\.com" "mail.academic") (any ".*@.*example\\.com" "mail.academic") (any ".*@.*\\.com" "mail.academic") (any ".*orgmode.*" "group.orgmode") (any "user3@example\\.com" "mail.general") "mail.misc")))))
  gnus-read-active-file-1((nnimap "dc" (nnimap-address "localhost") (nnimap-stream shell) (nnimap-shell-program "/opt/local/sbin/dovecot --exec-mail imap") (nnimap-nov-is-evil nil) (nnimap-inbox "INBOX") (nnimap-split-methods nnimap-split-fancy) (nnimap-split-methods (quote (| (any "user2@example.*" "mail.personal") (any "user1@bcs\\.example\\.com" "mail.academic") (any "user1@cs\\.example\\.com" "mail.academic") (any ".*@.*example\\.com" "mail.academic") (any ".*@.*\\.com" "mail.academic") (any ".*orgmode.*" "group.orgmode") (any "user3@example\\.com" "mail.general") "mail.misc")))) nil)
  gnus-read-active-file(nil nil)
  gnus-setup-news(nil nil nil)
  byte-code("...")
  gnus-1(nil nil nil)
  gnus(nil)
  call-interactively(gnus nil nil)
#v-

The config and backtrace have been sort of anonymized, so they might not
match up correctly.  To me it looks like the problem isn't with my
specific rules, and so the anonymization shouldn't hurt debugging
efforts.  If anyone needs to see the exact splitting rules, I'd be happy
to send them offlist.

This is with a git version of gnus checked out at revision
cf281aa36ffcb574b3a838074398baabea0fbdaf.

Thanks,
/au

-- 
Austin Frank
http://aufrank.net
GPG Public Key (D7398C2F): http://aufrank.net/personal.asc

[-- Attachment #2: Type: application/pgp-signature, Size: 194 bytes --]

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

* Re: splitting for dunces
  2010-10-04 20:31     ` Lars Magne Ingebrigtsen
  2010-10-04 21:09       ` Austin F. Frank
@ 2010-10-05  6:10       ` Richard Riley
  2010-10-05  7:32         ` Gijs Hillenius
  1 sibling, 1 reply; 9+ messages in thread
From: Richard Riley @ 2010-10-05  6:10 UTC (permalink / raw)
  To: ding

Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> "Austin F. Frank" <austin.frank@gmail.com> writes:
>
>>>                         (nnimap-split-methods (("your" "split")))))
>>
>> How would it look if it used fancy splitting?
>
>  (nnimap-split-methods '(| (fancy-split blah blah)))
>
> The manual has several fancy split examples, I think.


But split handling has dramatically changed? I ask because my splitting
doesnt work anymore and, to be honest, (as the posts about splitting
indicate) splitting is really tricky to get your head around.




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

* Re: splitting for dunces
  2010-10-04 21:09       ` Austin F. Frank
@ 2010-10-05  7:09         ` Tassilo Horn
  0 siblings, 0 replies; 9+ messages in thread
From: Tassilo Horn @ 2010-10-05  7:09 UTC (permalink / raw)
  To: Austin F. Frank; +Cc: ding

"Austin F. Frank" <austin.frank@gmail.com> writes:

Hi Austin,

> OK, then I might not be quite the dunce I thought I was.  Hopefully
> this is a legitimate bug report.

No, I'm sorry. ;-)

> #v+
> (add-to-list 'gnus-secondary-select-methods
>              '(nnimap "dc"
>                       (nnimap-address "localhost")
>                       (nnimap-stream shell)
>                       (nnimap-shell-program "/opt/local/sbin/dovecot --exec-mail imap")
>                       (nnimap-nov-is-evil nil)
>                       (nnimap-inbox "INBOX")
>                       (nnimap-split-methods
>                        '(| (any "user2@example.*" "mail.personal")
                         ^

That quote is wrong.  The whole '(nnimap ...) method is already quoted.

Bye,
Tassilo



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

* Re: splitting for dunces
  2010-10-05  6:10       ` Richard Riley
@ 2010-10-05  7:32         ` Gijs Hillenius
  2010-10-06 21:50           ` Richard Riley
  0 siblings, 1 reply; 9+ messages in thread
From: Gijs Hillenius @ 2010-10-05  7:32 UTC (permalink / raw)
  To: ding

On  5 Oct 2010, Richard Riley wrote:


[...]

> But split handling has dramatically changed? I ask because my splitting
> doesnt work anymore and, to be honest, (as the posts about splitting
> indicate) splitting is really tricky to get your head around.

I find that it got a little easier.

for Gnus 5.13 and earliers I had this, with 'thuis' being the name for
the Imap server.

,----
| (setq nnimap-split-inbox
|         '("INBOX" ))
| (setq nnimap-split-predicate "UNDELETED")
| (setq nnimap-split-crosspost nil)
| (setq nnimap-split-rule '(("thuis" ("INBOX" nnimap-split-fancy)))
|       nnimap-split-fancy 
|       '(| (: gnus-folder-per-bbdb)
| 	  ("From" "googlealerts.*" "INBOX.google-alerts")
|           ;; omitted bunch of similar lines         
| 	  (any "opentaal-discussie@lists.uitwisselplatform.nl" "INBOX.opentaal")
| 	  (any "dspam-user@lists.sourceforge.net" "INBOX.dspam")
| 	  ("INBOX" "")))
| 
`----

for No Gnus v0.11 I have 'just' this:

,----
| (setq nnimap-split-fancy
|       '(| (: gnus-folder-per-bbdb)
| 	  ("From" "googlealerts.*" "INBOX.google-alerts")
|         et cetera
`----

and added this line to the imap server defenition in the *server* buffer"

,----
| 	(nnimap-split-methods nnmail-split-fancy)
`----




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

* Re: splitting for dunces
  2010-10-05  7:32         ` Gijs Hillenius
@ 2010-10-06 21:50           ` Richard Riley
  0 siblings, 0 replies; 9+ messages in thread
From: Richard Riley @ 2010-10-06 21:50 UTC (permalink / raw)
  To: Gijs Hillenius; +Cc: ding

Gijs Hillenius <gijs@hillenius.net> writes:

> On  5 Oct 2010, Richard Riley wrote:
>
> [...]
>
>> But split handling has dramatically changed? I ask because my splitting
>> doesnt work anymore and, to be honest, (as the posts about splitting
>> indicate) splitting is really tricky to get your head around.
>
> I find that it got a little easier.
>
> for Gnus 5.13 and earliers I had this, with 'thuis' being the name for
> the Imap server.
>
> ,----
> | (setq nnimap-split-inbox
> |         '("INBOX" ))
> | (setq nnimap-split-predicate "UNDELETED")
> | (setq nnimap-split-crosspost nil)
> | (setq nnimap-split-rule '(("thuis" ("INBOX" nnimap-split-fancy)))
> |       nnimap-split-fancy 
> |       '(| (: gnus-folder-per-bbdb)
> | 	  ("From" "googlealerts.*" "INBOX.google-alerts")
> |           ;; omitted bunch of similar lines         
> | (any "opentaal-discussie@lists.uitwisselplatform.nl" "INBOX.opentaal")
> | 	  (any "dspam-user@lists.sourceforge.net" "INBOX.dspam")
> | 	  ("INBOX" "")))
> | 
> `----
>
> for No Gnus v0.11 I have 'just' this:
>
> ,----
> | (setq nnimap-split-fancy
> |       '(| (: gnus-folder-per-bbdb)
> | 	  ("From" "googlealerts.*" "INBOX.google-alerts")
> |         et cetera
> `----

The etc is causing me hassle.

If I set it to "INBOX" (which is the imap default)  ALL
my INBOX seems to be processed each time I refresh or start gnus.

e.g

 (setq nnmail-split-fancy '((: spam-split)"INBOX"))
 
Is it more normal to move all mail from INBOX to another? Since I'm
syncing with gmail using offlineimap I really want to leave my read
email in the INBOX to cut down on transfers.

If anyone has an imap split working with nognus and using spam-split I
would love to see the setup. When I dont include the INBOX then on one
run all my email was moved into a "bogus" folder.

I've had to turn all splitting off for now until I can see a working
example using spam-split. (I use spam-split since I use the bogofilter
processing).







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

end of thread, other threads:[~2010-10-06 21:50 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-04 18:50 splitting for dunces Austin F. Frank
2010-10-04 20:17 ` Lars Magne Ingebrigtsen
2010-10-04 20:21   ` Austin F. Frank
2010-10-04 20:31     ` Lars Magne Ingebrigtsen
2010-10-04 21:09       ` Austin F. Frank
2010-10-05  7:09         ` Tassilo Horn
2010-10-05  6:10       ` Richard Riley
2010-10-05  7:32         ` Gijs Hillenius
2010-10-06 21:50           ` Richard Riley

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