From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/67002 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: Mail messages not queued properly when unplugged. Date: Fri, 30 May 2008 16:33:59 +0900 Organization: Emacsen advocacy group Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Trace: ger.gmane.org 1212132978 7400 80.91.229.12 (30 May 2008 07:36:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 May 2008 07:36:18 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M15473@lists.math.uh.edu Fri May 30 09:36:59 2008 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1K1zAP-0003oM-BV for ding-account@gmane.org; Fri, 30 May 2008 09:36:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1K1z8c-0006Vy-W8; Fri, 30 May 2008 02:34:59 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1K1z8b-0006Vg-2X for ding@lists.math.uh.edu; Fri, 30 May 2008 02:34:57 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1K1z8U-00061i-SN for ding@lists.math.uh.edu; Fri, 30 May 2008 02:34:56 -0500 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1K1z8k-00030b-00 for ; Fri, 30 May 2008 09:35:06 +0200 Original-Received: from [66.225.201.151] (port=56250 helo=mail.jpl.org) by orlando.hostforweb.net with esmtpa (Exim 4.68) (envelope-from ) id 1K1z7r-0003LS-7F for ding@gnus.org; Fri, 30 May 2008 02:34:12 -0500 X-Hashcash: 1:20:080530:ding@gnus.org::BlK9/cq5AjXUBuTD:00002Hgc X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110011 (No Gnus v0.11) XEmacs/21.5-b28 (linux) Cancel-Lock: sha1:NxKvxsCQJEOLcUSIwuhyWBMF29I= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -2.5 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:67002 Archived-At: >>>>> Malcolm Purvis wrote: > Today I upgraded to the latest version of No Gnus in CVS from a version > about amonth old. I'm now getting mail messages being deleted when > being sent unplugged rather than being queued. Does it still happen even now? I tried No Gnus and XEmacs 21.5, both are the latest, and had no problem. > The minibuffer messages are: > Reading active file via nnnil... > Deleting article /Users/malcolmp/News/drafts/queue/1 in nndraft:drafts... > Sending...done > Wrote /Users/malcolmp/News/drafts/queue/1 > Sending via mail... > Sending... Wasn't the file name "drafts/drafts/1", not "drafts/queue/1" ? If so, it looks as if a mail was really sent (probably it failed in fact because the mail server was unreachable, though). If it really happened, I have only one idea of the cause of it. That is that the variable `gnus-agent-send-mail-function' has been set to a non-nil value before Gnus was agentized. If you have something like the following snippet in the ~/.gnus.el file, (setq gnus-agent-send-mail-function message-send-mail-function) ...[1] the `message-send-mail-real-function' variable will not be set to `gnus-agent-send-mail': (defun gnus-agentize () [...] (unless gnus-agent-send-mail-function (setq gnus-agent-send-mail-function (or message-send-mail-real-function (function (lambda () (funcall message-send-mail-function)))) message-send-mail-real-function 'gnus-agent-send-mail)) So what's the value of `message-send-mail-real-function' in your XEmacs? It should be `gnus-agent-send-mail' if Gnus is agentized. If it is left nil that is the default, Message will always use the value of `message-send-mail-function': (defun message-send-mail (&optional arg) [...] (funcall (or message-send-mail-real-function message-send-mail-function))) [1] I actually have it in my ~/.gnus.el file, though I don't recall why I did so. My pc is always connected to the net, so I can send mails regardless of the plugged state of Gnus.