Gnus development mailing list
 help / color / mirror / Atom feed
* Splitting rules
@ 2010-10-20 21:29 Olivier Sirven
  2010-10-21 14:41 ` Olivier Sirven
  0 siblings, 1 reply; 3+ messages in thread
From: Olivier Sirven @ 2010-10-20 21:29 UTC (permalink / raw)
  To: ding

Hi,

Since the upgrade to No Gnus v0.11 I'm stuck with my splitting rules and
can't make them to work. Oddly all incoming emails are moved to
mail.misc group.

The configuration I use (anonymized):

--8<---------------cut here---------------start------------->8---
(add-to-list 'gnus-secondary-select-methods
             '(nnimap "df"
                      (nnimap-inbox "INBOX")
                      (nnimap-split-methods
                       (
                         ("INBOX.toto"
                          (lambda(group)
                            (message group)
                            (and
                             (string-match 
                               "^From: toto@example.com" 
                               (buffer-string))
                             (string-match 
                               "^Subject:.*toto email" 
                               (buffer-string)))))
                         ("INBOX.tutu"
                          "^From: .*tutu@example.com")
                         ;; general rule
                         ("INBOX.misc" "")
                         ))
                      (nnir-search-engine imap)
                      (nnimap-address "mail.example.com")
                      (nnimap-server-port 993)
                      (nnimap-stream ssl)
                      (nnimap-authinfo-file "~/.authinfo.gpg")
                      ))
--8<---------------cut here---------------end--------------->8---

What am I doing wrong here?

Thanks

--
Olivier




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

* Re: Splitting rules
  2010-10-20 21:29 Splitting rules Olivier Sirven
@ 2010-10-21 14:41 ` Olivier Sirven
  2010-10-21 15:56   ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Olivier Sirven @ 2010-10-21 14:41 UTC (permalink / raw)
  To: ding

On 2010-10-20 23:29:03, Olivier Sirven <the.slaa@gmail.com> wrote:
> Hi,
>
> Since the upgrade to No Gnus v0.11 I'm stuck with my splitting rules and
> can't make them to work. Oddly all incoming emails are moved to
> mail.misc group.
>
> The configuration I use (anonymized):
>
>
> (add-to-list 'gnus-secondary-select-methods
>              '(nnimap "df"
>                       (nnimap-inbox "INBOX")
>                       (nnimap-split-methods
>                        (
>                          ("INBOX.toto"
>                           (lambda(group)
>                             (message group)
>                             (and
>                              (string-match 
>                                "^From: toto@example.com" 
>                                (buffer-string))
>                              (string-match 
>                                "^Subject:.*toto email" 
>                                (buffer-string)))))
>                          ("INBOX.tutu"
>                           "^From: .*tutu@example.com")
>                          ;; general rule
>                          ("INBOX.misc" "")
>                          ))
>                       (nnir-search-engine imap)
>                       (nnimap-address "mail.example.com")
>                       (nnimap-server-port 993)
>                       (nnimap-stream ssl)
>                       (nnimap-authinfo-file "~/.authinfo.gpg")
>                       ))
>
>
> What am I doing wrong here?

After some tests, I found that nnimap-split-methods was not
used. `gnus-summary-respool-trace' allowed me to trace what variable was
used to decide the splitting. And it seems it's
nnmail-split-fancy: destination group change when I update this
variable. 

What's weird is that nnmail-split-fancy should be used if and only if
nnmail-split-method is defined to nnmail-split-fancy. Which is not the
case: to make sure I defined it to the same value as
nnimap-split-methods.

Maybe there is a bug somewhere. What file should I look into if I want
to investigate?

--
Olivier




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

* Re: Splitting rules
  2010-10-21 14:41 ` Olivier Sirven
@ 2010-10-21 15:56   ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 3+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-10-21 15:56 UTC (permalink / raw)
  To: ding

Olivier Sirven <the.slaa@gmail.com> writes:

> After some tests, I found that nnimap-split-methods was not
> used. `gnus-summary-respool-trace' allowed me to trace what variable was
> used to decide the splitting. And it seems it's
> nnmail-split-fancy: destination group change when I update this
> variable. 

I don't think `gnus-summary-respool-trace' uses the nnimap-specific
splitting variables...

> What's weird is that nnmail-split-fancy should be used if and only if
> nnmail-split-method is defined to nnmail-split-fancy. Which is not the
> case: to make sure I defined it to the same value as
> nnimap-split-methods.
>
> Maybe there is a bug somewhere. What file should I look into if I want
> to investigate?

Your nnimap split methods looks OK to me, but since they're not being
triggered, I'd try edebugging though `nnimap-split-incoming-mail' to see
what's going on.

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




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

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

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-20 21:29 Splitting rules Olivier Sirven
2010-10-21 14:41 ` Olivier Sirven
2010-10-21 15:56   ` Lars Magne Ingebrigtsen

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