From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/11800 Path: main.gmane.org!not-for-mail From: SL Baur Newsgroups: gmane.emacs.gnus.general Subject: Re: losing mail Date: 27 Jul 1997 21:16:00 -0700 Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 (generated by tm-edit 7.108) Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1035151453 32616 80.91.224.250 (20 Oct 2002 22:04:13 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 22:04:13 +0000 (UTC) Return-Path: Original-Received: from xemacs.org (xemacs.cs.uiuc.edu [128.174.252.16]) by altair.xemacs.org (8.8.6/8.8.6) with ESMTP id VAA05743 for ; Sun, 27 Jul 1997 21:52:38 -0700 Original-Received: from ifi.uio.no (0@ifi.uio.no [129.240.64.2]) by xemacs.org (8.8.5/8.8.5) with SMTP id XAA08348 for ; Sun, 27 Jul 1997 23:48:42 -0500 (CDT) Original-Received: from claymore.vcinet.com (claymore.vcinet.com [208.205.12.23]) by ifi.uio.no with SMTP (8.6.11/ifi2.4) id for ; Mon, 28 Jul 1997 06:12:18 +0200 Original-Received: (qmail 24002 invoked by uid 504); 28 Jul 1997 04:12:17 -0000 Original-Received: (qmail 23999 invoked from network); 28 Jul 1997 04:12:16 -0000 Original-Received: from xemacs.miranova.com (HELO altair.xemacs.org) (steve@206.190.83.19) by claymore.vcinet.com with SMTP; 28 Jul 1997 04:12:16 -0000 Original-Received: (from steve@localhost) by altair.xemacs.org (8.8.6/8.8.6) id VAA05597; Sun, 27 Jul 1997 21:16:01 -0700 Mail-Copies-To: never Original-To: ding@gnus.org X-Face: `'%\i;ySOu]g?NlziJSk_$&@]KP`}~PEQPjZ5;nxSaDW_o$4+4%Ab]%Ifw3ZR;7TIT3,O,' @2{L;]ox6kc;$_5kU'n**9vFg-]eV~GbxSVCx|(s%uR[],*:^WKmC`B}(;|k9/m]gwt?&`t;^rfCJg khHH>pP1W\)xM0U@!FNDD72{3fDP$PkBhx^7Z?-WxH6DbFN:QOnT`llzW}VGdYv;n9lzljQvKTIBhQ YuV X-Attribution: sb In-Reply-To: Michael R Cook's message of "27 Jul 1997 15:42:59 -0400" Original-Lines: 55 X-Mailer: Gnus v5.4.64/XEmacs 20.3(beta16) - "Budapest" Xref: main.gmane.org gmane.emacs.gnus.general:11800 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:11800 Michael R Cook writes: > I just observed what I had always suspected: If gnus is fetching > mail from my `nnmail-spool-file' while mailing is arriving, mail can > be lost. Without coordinated locking between procmail and movemail, yes, mail can be lost. Here's a simple definitive test to see if locking is working between procmail and movemail. Add something like this recipe to your .procmailrc: :0 w: * ^X-yzzy: Gnus Locking Test | /home/steve/bin/locktest.sh >> foo.spool locktest.sh should look something like: #!/bin/sh while read line; do echo $line done sleep 120 echo You Lose ## locktest.sh ends here Now send a message to yourself with a header `X-yzzy: Gnus Locking Test' and verify with ps that you have a `hung' procmail process. Now in another Xterm execute something like: $ /usr/src/xemacs-20.0/lib-src/movemail ~/spool/foo.spool /tmp/foo-bar With a `sleep 120' in the test script you have two minutes to execute the movemail command. You can shorten the wait if you like. The movemail command should also hang, because foo.spool is locked by procmail. If you _do_ have locking you will have your test message complete with an appended `You Lose' line at the bottom in /tmp/foo-bar and ~/spool/foo.spool is zero length. If you _don't_ have locking, you will have two non-zero length files when you're done. /tmp/foo-bar with a copy of the test message, and ~/spool/foo.spool with the single line `You Lose'. Adjust paths to fit the local environment, tested against procmail-3.11pre7 on Linux-2.0.30, your mileage may (but shouldn't) vary, batteries not included, offer void where prohibited etc. etc. See http://www.miranova.com/gnus-list/Nov-1995/0379.html for more information from the mailing list archives.