From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/51394 Path: main.gmane.org!not-for-mail From: Kevin Greiner Newsgroups: gmane.emacs.gnus.general Subject: Re: Gnus Agent and mail Date: Sun, 13 Apr 2003 16:10:21 -0500 Sender: owner-ding@hpc.uh.edu Message-ID: References: <6uiswfhrqs.fsf@zork.zork.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1050268254 24408 80.91.224.249 (13 Apr 2003 21:10:54 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 13 Apr 2003 21:10:54 +0000 (UTC) Original-X-From: owner-ding@hpc.uh.edu Sun Apr 13 23:10:48 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 194okS-0006L3-00 for ; Sun, 13 Apr 2003 23:10:48 +0200 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 194okY-0001xZ-00; Sun, 13 Apr 2003 16:10:54 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 13 Apr 2003 16:12:00 -0500 (CDT) Original-Received: from sclp3.sclp.com (sclp3.sclp.com [64.157.176.121]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id QAA20131 for ; Sun, 13 Apr 2003 16:11:48 -0500 (CDT) Original-Received: (qmail 2884 invoked by alias); 13 Apr 2003 21:10:38 -0000 Original-Received: (qmail 2879 invoked from network); 13 Apr 2003 21:10:37 -0000 Original-Received: from quimby.gnus.org (80.91.224.244) by gnus.org with SMTP; 13 Apr 2003 21:10:37 -0000 Original-Received: from news by quimby.gnus.org with local (Exim 3.12 #1 (Debian)) id 194okf-0003Hr-00 for ; Sun, 13 Apr 2003 23:11:01 +0200 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 49 Original-NNTP-Posting-Host: manchester-suites-iaf1047853.cust-rtr.ameritech.net Original-X-Trace: quimby.gnus.org 1050268261 12638 68.23.64.46 (13 Apr 2003 21:11:01 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 13 Apr 2003 21:11:01 GMT User-Agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.2 (windows-nt) Cancel-Lock: sha1:PiyN9NT6ipITPzQGDK7iNE/Yk60= Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:51394 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:51394 Sean Neakums writes: > What is the current method to prevent sent mail from being queued when > the Agent is active? My mail select method is not covered by the > Agent, and both message-send-mail-function and > gnus-agent-send-mail-function are set to > message-send-mail-with-sendmail, but when I send mail, it is queued. Sean, I've been looking at your proposed patch. The code seems reasonable yet I'm having trouble with your description of the problem. I searched on gnus-agent-send-mail-function and found that the gnus-agentize function binds gnus-agent-send-mail-function to message-send-mail-with-sendmail (the original value of message-send-mail-real-function) and message-send-mail-real-function to gnus-agent-send-mail. This appears to support your statement that activating the agent results in your mail being queued. I then took a look at gnus-agent-send-mail and found this (if gnus-plugged (funcall gnus-agent-send-mail-function) ...) Since gnus-agent-send-mail-function is message-send-mail-with-sendmail, it appears that your message is only queued when you are unplugged. In your patch, the new variable gnus-agent-queue-mail-when-unplugged appears to support this statement. Now, here's my problem. The definition of "unplugged" in the manual is as follows: The Gnus Agent is said to be "unplugged" when you have severed the connection to the net (and notified the Agent that this is the case). When the connection to the net is up again (and Gnus knows this), the Agent is "plugged". Now then, if you've severed your connection to the net, how do you intend to send your mail? It would seem that you want to use the agent while plugged. If that's actually the case, you won't need your patch. What you will need to to check is that gnus-agent-cache is set (so that the agent is active while plugged). Kevin