Gnus development mailing list
 help / color / mirror / Atom feed
* debugging nnmail-split-fancy
@ 1997-07-22  5:56 Steinar Bang
  1997-07-22  6:49 ` Steinar Bang
  0 siblings, 1 reply; 8+ messages in thread
From: Steinar Bang @ 1997-07-22  5:56 UTC (permalink / raw)


Platform: Gnus 5.4.56/GNU Emacs 19.34/SPARC Solaris 2.5

I tried switching to nnmail-split-fancy, yesterday, but I find the
debugging facilities, somewhat er... lacking...

Here are the last messages from the *Messages* buffer:
	Getting mail from the post office...
	Getting mail from po:sb...done
	Error in `nnmail-split-methods'; using `bogus' mail group
	Wrote /opt/home/sb/Mail/bogus/62
	Error in `nnmail-split-methods'; using `bogus' mail group
	Wrote /opt/home/sb/Mail/bogus/63
	Error in `nnmail-split-methods'; using `bogus' mail group
	Wrote /opt/home/sb/Mail/bogus/64
	Error in `nnmail-split-methods'; using `bogus' mail group
	Wrote /opt/home/sb/Mail/bogus/65
	nnml: Reading incoming mail...done

I'll keep on investigating, but as always, I appreciate pointers in
the right direction.

Thanx!


- Steinar


Here's the code from my .gnus.el:

(setq nnmail-split-fancy
      '((|
	 ("from" mail (| ("subject" "warn.*" "mail.warning")
			   "sysadm.logmessages"))
	 (&

	  ;; Metis system administration
           (any "sysadm@metis\\.no" "sysadm.todo")
	   ("from" "root@\\(abel\\|mailhub\\).metis.no"
	    (| ("subject" "Output from \"cron\" command")
	       "sysadm.logmessages"))
           (any "\\(webmaster\\|www-admin\\)@metis\\.no" "mail.www-admin")

	   ;; Metis development aliases
           ("from" "CVS-kjeruben" "mail.2x.cvs")
           ("subject" "CVS Update of /metis/cvs/.*" "sysadm.cvsmessages")
           (any "2x@metis\\.no" "mail.2x")
           (any "soft@metis\\.no" "mail.soft")
           (any "metsol@metis\\.no" "mail.metsol")

	   ;; Metis aliases
           (any "alle?@metis\\.no" "mail.alle")
           (any "Norway\\.Dist@Norway\\.NCR\\.COM" "mail.ncr")
           (any "Horten\\.Dist@Norway\\.NCR\\.COM" "mail.ncr")
           (any "All_NCR_Employees@.*NCR\\.COM" "mail.ncr")
           (any "week-summary@metis\\.no" "mail.week-summary")

	   ;; Metis hosted mailing lists
           (any "orbplus-solaris-request@metis\\.no"
		"mail.orbplus-solaris-request")
           (any "orbplus-solaris@metis\\.no" "mail.orbplus-solaris")

	   ;; External mailing listss
           (any "mh-workers@ics\\.UCI\\.EDU" "mail.mh-workers")
           (any "ding@\\(gnus\\.org\\|ifi\\.uio\\.no\\)" "mail.ding")
           (any "\\(ilu@parc\\.\\|\\(ILU\\|ilu\\)\\.\\(PARC\\|parc\\)@\\)xerox\\.com" "mail.ilu")
           (any "fresco@merlin\\.iuk\\.tu-harburg\\.de" "mail.fresco")
           (any "jnative-l@teleport\\.com" "mail.jnative-l")

           ;; Hobby mailing lists...
           (any "vfr\\(-digest\\)?@cs\\.wisc\\.edu" "mail.vfr")
           (any "doders@dod\\.no" "mail.dod")
           (any "trip_report@dod\\.no" "hobby.trip_report")
           (any "autobahn@dod\\.no" "mail.autobahn_dod")
           (any "utdrikk@dod\\.no" "mail.utdrikk")

	   ;; mail addressed directly to me
           (any "sb@metis\\.no" "mail.misc")
           (any "sb@dod\\.no" "mail.private")
           (any "steinar@bang\\.priv\\.no" "mail.private"))
	 "spam")))

(setq nnmail-split-methods
      'nnmail-split-fancy)


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

* Re: debugging nnmail-split-fancy
  1997-07-22  5:56 debugging nnmail-split-fancy Steinar Bang
@ 1997-07-22  6:49 ` Steinar Bang
  1997-07-23 17:58   ` Lars Magne Ingebrigtsen
  1997-07-23 23:51   ` Mark Eichin
  0 siblings, 2 replies; 8+ messages in thread
From: Steinar Bang @ 1997-07-22  6:49 UTC (permalink / raw)


>>>>> Steinar Bang <sb@metis.no>:

> Platform: Gnus 5.4.56/GNU Emacs 19.34/SPARC Solaris 2.5
> I tried switching to nnmail-split-fancy, yesterday, but I find the
> debugging facilities, somewhat er... lacking...

> Here are the last messages from the *Messages* buffer:
> 	Getting mail from the post office...
> 	Getting mail from po:sb...done
> 	Error in `nnmail-split-methods'; using `bogus' mail group
> 	Wrote /opt/home/sb/Mail/bogus/62
[snip!]
> 	nnml: Reading incoming mail...done

> I'll keep on investigating, but as always, I appreciate pointers in
> the right direction.

I've simplified it: removed the (& thing, and some bogus paranteses,
and now it works.

But a little more debugging info, would have been nice here.
Something for the TODO-list, perhaps...?

Just something that would point you to the approximate spot in the
splitting code, wherw Gnus got confused...


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

* Re: debugging nnmail-split-fancy
  1997-07-22  6:49 ` Steinar Bang
@ 1997-07-23 17:58   ` Lars Magne Ingebrigtsen
  1997-07-23 23:51   ` Mark Eichin
  1 sibling, 0 replies; 8+ messages in thread
From: Lars Magne Ingebrigtsen @ 1997-07-23 17:58 UTC (permalink / raw)


Steinar Bang <sb@metis.no> writes:

> Just something that would point you to the approximate spot in the
> splitting code, wherw Gnus got confused...

The fancy split routine doesn't really check the syntax used, so Gnus
doesn't really know what goes wrong.  

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


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

* Re: debugging nnmail-split-fancy
  1997-07-22  6:49 ` Steinar Bang
  1997-07-23 17:58   ` Lars Magne Ingebrigtsen
@ 1997-07-23 23:51   ` Mark Eichin
  1 sibling, 0 replies; 8+ messages in thread
From: Mark Eichin @ 1997-07-23 23:51 UTC (permalink / raw)
  Cc: ding


> But a little more debugging info, would have been nice here.
> Something for the TODO-list, perhaps...?

Well, testing the splits with live mail is unwarrantedly risky -- "B q"
(gnus-summary-respool-query) on a message you've already got is a much
safer test since it doesn't actually *do* anything...

I'm not sure how "Debugging" the splits would actually work,
though... it might be possible to put some optional message calls in
the split handling routines, but they'd have to spew basically
everything ("rule %s didn't match %s" for each rule for each
message...)  In case it wasn't clear, the refile to "bogus" is what
happens if it *falls off the end*.


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

* Re: Debugging nnmail-split-fancy
  2019-02-14 18:16 ` Andreas Schwab
@ 2019-02-19 17:08   ` Norman Walsh
  0 siblings, 0 replies; 8+ messages in thread
From: Norman Walsh @ 2019-02-19 17:08 UTC (permalink / raw)
  To: ding

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

Andreas Schwab <schwab@linux-m68k.org> writes:
> On Feb 14 2019, Norman Walsh <ndw@nwalsh.com> wrote:
>
>> Any clue how to debug this?
>
> Run B t (gnus-summary-respool-trace) on the message.

(: gnus-registry-split-fancy-with-parent)
(to "mac-users@.*acmecorp\\.com" "acmecorp.mac-users")
"acmecorp.mac-users"
(: nwalsh-incoming-group)
"archive.2019-02"

But the message wound up in acmecorp.sales. :-(

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | 'I have done that,' says my memory. 'I
http://nwalsh.com/            | cannot have done that'—says my pride,
                              | and remains adamant. At last—memory
                              | yields.--Nietzsche

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

* Re: Debugging nnmail-split-fancy
  2019-02-14  8:49 Debugging nnmail-split-fancy Norman Walsh
  2019-02-14 15:26 ` Gijs Hillenius
@ 2019-02-14 18:16 ` Andreas Schwab
  2019-02-19 17:08   ` Norman Walsh
  1 sibling, 1 reply; 8+ messages in thread
From: Andreas Schwab @ 2019-02-14 18:16 UTC (permalink / raw)
  To: Norman Walsh; +Cc: ding

On Feb 14 2019, Norman Walsh <ndw@nwalsh.com> wrote:

> Any clue how to debug this?

Run B t (gnus-summary-respool-trace) on the message.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."



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

* Re: Debugging nnmail-split-fancy
  2019-02-14  8:49 Debugging nnmail-split-fancy Norman Walsh
@ 2019-02-14 15:26 ` Gijs Hillenius
  2019-02-14 18:16 ` Andreas Schwab
  1 sibling, 0 replies; 8+ messages in thread
From: Gijs Hillenius @ 2019-02-14 15:26 UTC (permalink / raw)
  To: ding

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

On 14 February 2019 08:49 Norman Walsh, wrote:

> Hello world,
>
> I use nnmail-split-fancy to route incoming mail to any of a few dozen
> (or more) folders. Very occasionally, and with no discernable pattern,
> I find a message in the wrong folder. (I have no idea how often this
> actually happens, but I only notice very occasionally.)
>
> So, for example, I find a message in “acmecorp.sales” that’s clearly
> part of a thread that I’ve been reading in “acmecorp.mac-users” (in
> this case). I type “B q” and Gnus (v5.13 btw) says:
>
>   This message would go to archive.2019-02, acmecorp.mac-users
>
> Yeah. Except, it didn’t. It want to “acmecorp.sales”.
>
> Any clue how to debug this?

Just a hunch, perhaps you want to check nnmail-mail-splitting-decodes

I have

(setq nnmail-mail-splitting-decodes t)




[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

* Debugging nnmail-split-fancy
@ 2019-02-14  8:49 Norman Walsh
  2019-02-14 15:26 ` Gijs Hillenius
  2019-02-14 18:16 ` Andreas Schwab
  0 siblings, 2 replies; 8+ messages in thread
From: Norman Walsh @ 2019-02-14  8:49 UTC (permalink / raw)
  To: ding

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

Hello world,

I use nnmail-split-fancy to route incoming mail to any of a few dozen
(or more) folders. Very occasionally, and with no discernable pattern,
I find a message in the wrong folder. (I have no idea how often this
actually happens, but I only notice very occasionally.)

So, for example, I find a message in “acmecorp.sales” that’s clearly
part of a thread that I’ve been reading in “acmecorp.mac-users” (in
this case). I type “B q” and Gnus (v5.13 btw) says:

  This message would go to archive.2019-02, acmecorp.mac-users

Yeah. Except, it didn’t. It want to “acmecorp.sales”.

Any clue how to debug this?

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | If you want to build a ship, don't drum
http://nwalsh.com/            | up the men to gather wood, divide the
                              | work and give orders. Instead, teach
                              | them to yearn for the vast and endless
                              | sea.--A. de Saint-Exupery

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

end of thread, other threads:[~2019-02-19 17:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-07-22  5:56 debugging nnmail-split-fancy Steinar Bang
1997-07-22  6:49 ` Steinar Bang
1997-07-23 17:58   ` Lars Magne Ingebrigtsen
1997-07-23 23:51   ` Mark Eichin
2019-02-14  8:49 Debugging nnmail-split-fancy Norman Walsh
2019-02-14 15:26 ` Gijs Hillenius
2019-02-14 18:16 ` Andreas Schwab
2019-02-19 17:08   ` Norman Walsh

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