From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/52548 Path: main.gmane.org!not-for-mail From: Kevin Greiner Newsgroups: gmane.emacs.gnus.general Subject: Re: Gnus Agent and mail Date: Mon, 12 May 2003 08:47:09 -0500 Sender: ding-owner@lists.math.uh.edu Message-ID: References: <6uiswfhrqs.fsf@zork.zork.net> <8465phob8k.fsf@lucy.is.informatik.uni-duisburg.de> <87d6jk1flj.fsf@cam.ac.uk> <87llxhm2ol.fsf@cam.ac.uk> <87fznmhjih.fsf@cam.ac.uk> <87k7cytpco.fsf@cam.ac.uk> <87fznkg19m.fsf@cam.ac.uk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1052747161 2818 80.91.224.249 (12 May 2003 13:46:01 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 12 May 2003 13:46:01 +0000 (UTC) Original-X-From: ding-owner+M1093@lists.math.uh.edu Mon May 12 15:45:55 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19FDco-0000il-00 for ; Mon, 12 May 2003 15:45:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19FDeG-0002Th-00; Mon, 12 May 2003 08:47:24 -0500 Original-Received: from sclp3.sclp.com ([64.157.176.121]) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19FDeC-0002Tc-00 for ding@lists.math.uh.edu; Mon, 12 May 2003 08:47:20 -0500 Original-Received: (qmail 50639 invoked by alias); 12 May 2003 13:47:19 -0000 Original-Received: (qmail 50634 invoked from network); 12 May 2003 13:47:19 -0000 Original-Received: from quimby.gnus.org (80.91.224.244) by sclp3.sclp.com with SMTP; 12 May 2003 13:47:19 -0000 Original-Received: from news by quimby.gnus.org with local (Exim 3.12 #1 (Debian)) id 19FDj3-00076w-00 for ; Mon, 12 May 2003 15:52:21 +0200 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 39 Original-NNTP-Posting-Host: h-66-134-21-51.hstqtx02.covad.net Original-X-Trace: quimby.gnus.org 1052747541 27337 66.134.21.51 (12 May 2003 13:52:21 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 12 May 2003 13:52:21 GMT User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (windows-nt) Cancel-Lock: sha1:2gfGgPi3H7+8Oru6KZi0Wr7oHio= Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:52548 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:52548 Gaute B Strokkenes writes: > On 12 mai 2003, kgreiner@xpediantsolutions.com wrote: >>Gaute B Strokkenes writes: >>> * gnus-draft.el (gnus-group-send-queue): Bind >>> message-send-mail-real-function to the value of >>> gnus-agent-send-mail-function when sending queued mail. >> >>I don't like the idea of messing with >>message-send-mail-real-function. What happens to someone who is not >>using the agent (i.e. gnus-agent-send-mail-function is nil)? > > The sole purpose of that function is to send queued mail (it is the > one that `J S' in the group buffer is bound to.) So if you're not > using the agent, you're not using this function. > >>What issue are you trying to resolve by adding this binding? > > Mail is sent by this function pretty much like any other mail. > Therefore, before my patch it would be rewritten back to the queue > folder if gnus were unplugged. (Some people might like to be > protected from hitting `J S' by mistake while unplugged, by I think > it's a misfeature. But I digress.) With my patch, if > gnus-agent-queue-mail is set to always, mail would always be rewritten > to the queue folder if this hunk were not present. Then there would > be no way to send mail without temporarily setting > gnus-agent-queue-mail to t or nil. That last part was what I was hoping to here. Wouldn't your patch work just as well if you bound gnus-agent-queue-mail to nil as your original bind of message-send-mail-real-function? > Hmm. Actually, is is possible to enter the queue group and send > messages with `D s' and `D S'. I need to take care of those cases as > well. Hmmm... I'm glad you thought of that now. Kevin