Gnus development mailing list
 help / color / mirror / Atom feed
* Mail Splitting problem
@ 1998-09-02  6:46 Eze Ogwuma
  1998-09-02  9:43 ` Eze Ogwuma
  0 siblings, 1 reply; 5+ messages in thread
From: Eze Ogwuma @ 1998-09-02  6:46 UTC (permalink / raw)


Hi,

I am running 5.6.42 and I have encountered a mail splitting problem. 

Most of my mail is split by functions like:

       (list (format-time-string "redhat.list.%Y.%m") 
	     "^X-Mailing-List:.<redhat-list@redhat.com>")

However I've found that the only new group to arrive this month was the 
archive group. I've checked in the Mail directory and the groups
aren't being created there either.

It seems that mail is just being put into the old folders (I hope so
anyway).


Below are the functions that I use to split my mail and to create my
archive groups.

;; Create archive group
     (setq gnus-message-archive-group
           '((if (message-news-p)
                 "misc-news"
               (concat "misc-mail-" (format-time-string
                                "%Y-%m" (current-time))))))

;; Split mail into groups
(setq nnmail-split-methods
      (list
       (list (format-time-string "redhat.list.%Y.%m") 
	     "^X-Mailing-List:.<redhat-list@redhat.com>")
       (list (format-time-string "manhattan.%Y.%m")
	     "^Resent-From:.manhattan-list@redhat.com")
       (list (format-time-string "rpm.%Y.%m") 
	     "^\\(To\\|Resent-From\\):.*rpm-list")
       (list (format-time-string "Applixware.%Y.%m") 
	     "^\\(To\\|Resent-From\\):.*applixware-list")
       (list (format-time-string "Gnus.%Y.%m") 
	     "^\\(To\\|Cc\\|From\\):.*\\(ding\\|gnus\\|Lars Magne Ingebrigtsen\\)")
       (list (format-time-string "exmh.%Y") 
	     "^\\(To\\|Resent-From\\):.*exmh")
       '("pgsql" "^Sender:.*@hub.org")
       '("pgsql" "^\\(To\\|Cc\\):.*\\(pgsql\\|postgreSQL\\)")
       (list (format-time-string "announce.%Y") 
	     "^Resent-From:.redhat-announce-list@redhat.com")
       (list (format-time-string "watch.%Y")
	      "^X-Mailing-List:.<redhat-watch-list@redhat.com>")
       (list (format-time-string "contrib.%Y") 
	     "^Resent-From:.contrib-list@redhat.com")
       '("CS" "^From:.*@cs.ucl.ac.uk")
       '("executor" "^From:.owner-executor-digest@ardi.com")
       '("Wine" "^To:.wine-patches@tiger.informatik.hu-berlin.de")
       '("qddb" "^\\(To\\|Cc\\|From\\):.*\\(hsdi.com\\|qddb-users\\)")
       '("ghostscript" "^\\(To\\|Cc\\|From\\):.*ghost@typhoon.dircon.co.uk")
       '("mail.system" "^\\(From\\|Subject\\):.*\\(Mail Delivery Subsystem\\|MAILER-DAEMON\\|postmaster\\|Undeliverable Message\\)")
       '("mail.misc" "^\\(To\\|Cc\\|From\\):.*\\(typhoon\\|zcaceog\\|zcapk09\\|students\\|ogwuma\\)")
       '("spam" "")))

-- 
Eze Ogwuma


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

* Re: Mail Splitting problem
  1998-09-02  6:46 Mail Splitting problem Eze Ogwuma
@ 1998-09-02  9:43 ` Eze Ogwuma
  1998-09-02 11:23   ` Kai Grossjohann
  0 siblings, 1 reply; 5+ messages in thread
From: Eze Ogwuma @ 1998-09-02  9:43 UTC (permalink / raw)


Eze Ogwuma <typhoon@dircon.co.uk> writes:

> Hi,
> 
> I am running 5.6.42 and I have encountered a mail splitting problem. 
> 
> Most of my mail is split by functions like:
> 
>        (list (format-time-string "redhat.list.%Y.%m") 
> 	     "^X-Mailing-List:.<redhat-list@redhat.com>")
> 
> However I've found that the only new group to arrive this month was the 
> archive group. I've checked in the Mail directory and the groups
> aren't being created there either.
> 
> It seems that mail is just being put into the old folders (I hope so
> anyway).

It seems that the problem might be that Gnus doesn't check the date
each time it splits mail. It just assumes the date is the same as the
date it was started.

I just shut down my version of XEmacs and restarted it. Now new mail
gets split correctly. Seems like a bug.
-- 
Eze Ogwuma


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

* Re: Mail Splitting problem
  1998-09-02  9:43 ` Eze Ogwuma
@ 1998-09-02 11:23   ` Kai Grossjohann
  1998-09-02 12:24     ` Lars Magne Ingebrigtsen
  1998-09-02 13:15     ` Eze Ogwuma
  0 siblings, 2 replies; 5+ messages in thread
From: Kai Grossjohann @ 1998-09-02 11:23 UTC (permalink / raw)
  Cc: ding

>>>>> On 02 Sep 1998, Eze Ogwuma said:

  Eze> It seems that the problem might be that Gnus doesn't check the
  Eze> date each time it splits mail. It just assumes the date is the
  Eze> same as the date it was started.

That's obvious.  When Gnus starts, the code in ~/.gnus is being run.
The code says `set the split method according to the date right now'.
That is, the nnmail-split-methods variable already contains 1998-09-02
or whatever the date is.

I don't know how to make Gnus eval code that sets nnmail-split-methods
anew.  You could use midnight.el, though, to eval the (setq
nnmail-split-methods ...) every day at midnight.

kai
-- 
OOP: object oriented programming;  OOPS: object oriented mistakes


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

* Re: Mail Splitting problem
  1998-09-02 11:23   ` Kai Grossjohann
@ 1998-09-02 12:24     ` Lars Magne Ingebrigtsen
  1998-09-02 13:15     ` Eze Ogwuma
  1 sibling, 0 replies; 5+ messages in thread
From: Lars Magne Ingebrigtsen @ 1998-09-02 12:24 UTC (permalink / raw)


Kai Grossjohann <grossjohann@amaunet.cs.uni-dortmund.de> writes:

> I don't know how to make Gnus eval code that sets nnmail-split-methods
> anew.  You could use midnight.el, though, to eval the (setq
> nnmail-split-methods ...) every day at midnight.

That's one way.  The other way is to use `:' fancy split tokens that
will allow you to create generated-on-the-fly group names.

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


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

* Re: Mail Splitting problem
  1998-09-02 11:23   ` Kai Grossjohann
  1998-09-02 12:24     ` Lars Magne Ingebrigtsen
@ 1998-09-02 13:15     ` Eze Ogwuma
  1 sibling, 0 replies; 5+ messages in thread
From: Eze Ogwuma @ 1998-09-02 13:15 UTC (permalink / raw)
  Cc: ding

Kai Grossjohann <grossjohann@amaunet.cs.uni-dortmund.de> writes:

> >>>>> On 02 Sep 1998, Eze Ogwuma said:
> 
>   Eze> It seems that the problem might be that Gnus doesn't check the
>   Eze> date each time it splits mail. It just assumes the date is the
>   Eze> same as the date it was started.
> 
> That's obvious.  When Gnus starts, the code in ~/.gnus is being run.
> The code says `set the split method according to the date right now'.
> That is, the nnmail-split-methods variable already contains 1998-09-02
> or whatever the date is.

Right. Thanks.

> I don't know how to make Gnus eval code that sets nnmail-split-methods
> anew.  You could use midnight.el, though, to eval the (setq
> nnmail-split-methods ...) every day at midnight.

Well how about checking the date before each INC operation.

What happens when the "W T <x>" date options are used on Articles?
-- 
Eze Ogwuma


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

end of thread, other threads:[~1998-09-02 13:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-09-02  6:46 Mail Splitting problem Eze Ogwuma
1998-09-02  9:43 ` Eze Ogwuma
1998-09-02 11:23   ` Kai Grossjohann
1998-09-02 12:24     ` Lars Magne Ingebrigtsen
1998-09-02 13:15     ` Eze Ogwuma

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