From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/57040 Path: main.gmane.org!not-for-mail From: Kevin Greiner Newsgroups: gmane.emacs.gnus.general Subject: Re: message-send-mail-function, agent, and a day of work Date: Thu, 15 Apr 2004 18:50:15 -0500 Sender: ding-owner@lists.math.uh.edu Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1082073098 28880 80.91.224.253 (15 Apr 2004 23:51:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 15 Apr 2004 23:51:38 +0000 (UTC) Original-X-From: ding-owner+M5580@lists.math.uh.edu Fri Apr 16 01:51:29 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BEGdk-0002RR-00 for ; Fri, 16 Apr 2004 01:51:29 +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 1BEGcw-0001s2-00; Thu, 15 Apr 2004 18:50:38 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1BEGcs-0001rx-00 for ding@lists.math.uh.edu; Thu, 15 Apr 2004 18:50:34 -0500 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1BEGcr-00082N-HZ for ding@lists.math.uh.edu; Thu, 15 Apr 2004 18:50:33 -0500 Original-Received: from quimby.gnus.org (quimby.gnus.org [80.91.224.244]) by justine.libertine.org (Postfix) with ESMTP id 2CCFF3A0047 for ; Thu, 15 Apr 2004 18:50:33 -0500 (CDT) Original-Received: from news by quimby.gnus.org with local (Exim 3.35 #1 (Debian)) id 1BEGcq-0003kD-00 for ; Fri, 16 Apr 2004 01:50:32 +0200 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 30 Original-NNTP-Posting-Host: dialup-216-12-206-212.ev1.net Original-X-Trace: quimby.gnus.org 1082073032 14160 216.12.206.212 (15 Apr 2004 23:50:32 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: Thu, 15 Apr 2004 23:50:32 +0000 (UTC) User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (windows-nt) Cancel-Lock: sha1:cvbP3FQNAygm0Tvjjf8Z5FZegHk= Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:57040 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:57040 Wes Hardaker writes: >>>>>> On Thu, 15 Apr 2004 15:28:28 -0500, Kevin Greiner said: > > Kevin> If you are truely changing your code to set > Kevin> gnus-agent-send-mail-function then you going down the wrong > Kevin> path. Your code will now break for those users who have turned > Kevin> the agent off as gnus-agent-send-mail-function will never be > Kevin> called. > > Sorry, I miss-led you. Thats only in my .gnus file. I haven't > touched real gnus code yet at this point. > > Kevin> I'm going to assume that the mail in queue should be dispatched to > Kevin> multiple smtp servers so that being offline is transparent to the > Kevin> actual delivery. If that is the case, I believe that you'll need to > Kevin> have the first message-send-hook put the selected smtp server into the > Kevin> message as a header. The second message-send-hook could then decode, > Kevin> and remove, the custom header. > > I actually was using a custom header at one point, but just reverted > to checking the From: header which is really all I care about matching > on. I just checked in a patch to gnus-agent that will, if it works is intended, let you change message-send-mail-function. I'll also take a look at updating the manual. Kevin