From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/1244 Path: news.gmane.org!not-for-mail From: Fredrik Staxeng Newsgroups: gmane.emacs.gnus.user Subject: Re: Why can't I use procmail Date: 30 Sep 2002 20:38:01 +0200 Message-ID: <1m3crrs4qe.fsf@Tempo.Update.UU.SE> References: <1mfzvrs9ul.fsf@Tempo.Update.UU.SE> <1m7kh3s5p1.fsf@Tempo.Update.UU.SE> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138668014 10368 80.91.229.2 (31 Jan 2006 00:40:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 00:40:14 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:28:51 2006 Original-Sender: fstx@Tempo.Update.UU.SE Original-Newsgroups: gnu.emacs.gnus User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.2 Original-NNTP-Posting-Host: news.update.uu.se Original-X-Trace: puffinus.its.uu.se 1033410445 news.update.uu.se (30 Sep 2002 20:27:25 +0100) Original-Path: quimby.gnus.org!news.ccs.neu.edu!news.dfci.harvard.edu!news.cis.ohio-state.edu!malgudi.oar.net!news-out.cwix.com!newsfeed.cwix.com!newsfeed.sovam.com!newsfeed.gamma.ru!Gamma.RU!news-stob.telia.net!news-stoa.telia.net!telia.net!newsfeed.sunet.se!news01.sunet.se!puffinus.its.uu.se Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:1384 Original-Lines: 26 X-Gnus-Article-Number: 1384 Tue Jan 17 17:28:51 2006 Xref: news.gmane.org gmane.emacs.gnus.user:1244 Archived-At: David S Goldberg writes: > >>>>> On 30 Sep 2002 20:17:14 +0200, Fredrik Staxeng > >>>>> said: > > > But I really want to use nnml. > > Then you need a procmail script that updates the overview file as it > stores the message and convincing gnus to re-read the overview as > necessary. I have no idea how hard that might be. Updating the overview file is not hard (just look at it), updating the active file isn't hard either, and gnus would presumably reread both when I do g in the groups buffer. I was thinking of doing a small hack in C that gets invoked by procmail and does the storing. As far as I can see the problem is that GNUS and my program would decide to use the same filename, but that would be solved on the C side by using (O_CREAT|O_EXCL). GNUS/Emacs would need to do the same. Also a lock file might be needed for the active file. I could probably live with never moving messages to autodelivered folders, or using a forward to myself+foldername@localhost as a workaround. -- Fredrik Stax\"ang | rot13: sfgk@hcqngr.hh.fr