From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/30395 Path: main.gmane.org!not-for-mail From: Shenghuo ZHU Newsgroups: gmane.emacs.gnus.general Subject: Re: message-setup-hook called when sending from queue? Date: 26 Apr 2000 04:20:05 -0400 Organization: U of Rochester Sender: owner-ding@hpc.uh.edu Message-ID: <2n4s8pl1e2.fsf@tiger.jia.vnet> References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1035166939 8234 80.91.224.250 (21 Oct 2002 02:22:19 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:22:19 +0000 (UTC) Return-Path: Original-Received: from lisa.math.uh.edu (lisa.math.uh.edu [129.7.128.49]) by mailhost.sclp.com (Postfix) with ESMTP id 1C5DED051E for ; Wed, 26 Apr 2000 04:18:31 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by lisa.math.uh.edu (8.9.1/8.9.1) with ESMTP id DAB28058; Wed, 26 Apr 2000 03:18:30 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 26 Apr 2000 03:17:58 -0500 (CDT) Original-Received: from mailhost.sclp.com (postfix@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id DAA14533 for ; Wed, 26 Apr 2000 03:17:48 -0500 (CDT) Original-Received: from shenghuo.dhs.org (d181829df.rochester.rr.com [24.24.41.223]) by mailhost.sclp.com (Postfix) with ESMTP id CB009D051E for ; Wed, 26 Apr 2000 04:18:07 -0400 (EDT) Original-Received: (from zsh@localhost) by shenghuo.dhs.org (8.10.0/8.10.0) id e3Q8K5w24026; Wed, 26 Apr 2000 04:20:05 -0400 Original-To: ding@gnus.org X-Attribution: ZSH X-Face: 'IF:e51ib'Qbl^(}l^&4-J`'P!@[4~O|&k#:@Gld#b/]oMq&`&FVY._3+b`mzp~Jeve~/#/ ERD!OTe<86UhyN=l`mrPY)M7_}`Ktt\K+58Z!hu7>qU,i.N7TotU[FYE(f1;}`g2xj!u*l`^&=Q!g{ *q|ddto|nkt"$r,K$[)"|6,elPH= GJ6Q In-Reply-To: Pavel.Janik@inet.cz's message of "26 Apr 2000 09:41:25 +0200" Original-Lines: 30 User-Agent: Gnus/5.0805 (Gnus v5.8.5) Emacs/20.6 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:30395 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:30395 >>>>> "Pavel" =3D=3D Pavel Jan=EDk ml writes: Pavel> Hi, Pavel> I have a 'fix' for the bug I reported earlier. When you have a Pavel> message in the queue and you are going to send it, the Pavel> message-setup-hook is called. But it should not be, because you Pavel> have already the message prepared. Pavel> The fix Lars commited was to add=20 Pavel> (message-setup-hook nil) Pavel> to let in gnus-draft-send. But this does not fix this Pavel> behaviour. The place where it fixes my problem is in Pavel> gnus-draft-setup before gnus-setup-message. But this is Pavel> probably not good place, because this function is called also Pavel> for gnus-draft-edit-message and others where the hook should be Pavel> called. This should be fixed... Pavel> BTW - there is misplaced comment in gnus-draft.el: Pavel> ;; Insert the separator. Pavel> ... In the latest CVS version, I believe I have fixed the gnus-draft-setup bug. Please test it. --=20 Shenghuo