From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/85212 Path: news.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.gnus.general Subject: Re: Any way to captuer smtp output when sending mail? Date: Sat, 01 Nov 2014 14:24:53 -0400 Organization: Still searching... Message-ID: <87bnoqaidm.fsf@reader.local.lan> References: <87wq7yllo0.fsf@reader.local.lan> <84siilo4cv.fsf@davestoy.home> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1414866379 19307 80.91.229.3 (1 Nov 2014 18:26:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 1 Nov 2014 18:26:19 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M33456@lists.math.uh.edu Sat Nov 01 19:26:12 2014 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XkdNM-0000CK-2B for ding-account@gmane.org; Sat, 01 Nov 2014 19:26:12 +0100 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 1XkdMP-0004N3-1c; Sat, 01 Nov 2014 13:25:13 -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 1XkdMN-0004Mr-6e for ding@lists.math.uh.edu; Sat, 01 Nov 2014 13:25:11 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1XkdML-00042L-G8 for ding@lists.math.uh.edu; Sat, 01 Nov 2014 13:25:11 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1XkdMJ-0001nr-EC for ding@gnus.org; Sat, 01 Nov 2014 19:25:07 +0100 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XkdMI-00087q-Ry for ding@gnus.org; Sat, 01 Nov 2014 19:25:06 +0100 Original-Received: from c-76-97-127-193.hsd1.ga.comcast.net ([76.97.127.193]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 01 Nov 2014 19:25:06 +0100 Original-Received: from reader by c-76-97-127-193.hsd1.ga.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 01 Nov 2014 19:25:06 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 60 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-76-97-127-193.hsd1.ga.comcast.net User-Agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:wOG3i3ddXA5FxrRgN1F1DlGMDK4= X-Spam-Score: -3.5 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:85212 Archived-At: david.goldberg6@verizon.net (Dave Goldberg) writes: >> How would I go about sending mail in such a way as to capture the smtp >> output like one can do with `mailx -v' > >> I'd like to collect that smtp output in a buffer as I send mail. > > What is your outgoing email setup? As another poster noted, if you > use smtpmail (as I do) you can set smtpmail-debug-info and > smtpmail-debug-verb to t to get a trace buffer each time you send a > message (it gets overwritten for each one, though, so be prepared to > save it off if you need the record). Thanks for the input, it is informed and very helpful: You hit it on the head... I don't use smtpmail ... only once a few yrs ago when I set up gnus on windows. I've done my mail activity on linux using gnus for many yrs, with sendmail as the sending software. > However, there are other ways to configure emacs to send mail and the > fact that you are not finding that variable suggests you may be using > one of them. Most likely is sendmail since I think that's the > default, in which case you may find you have a buffer named " sendmail > errors" that has the trace in it. You might also want to take a look > at the mail-interactive variable. If it's nil I don't think you get > the trace. Do you know if that trace buffer would appear only if there were errors? I use this in gnus (setq mail-user-agent 'gnus-user-agent) for many years. That would have meant sendmail for many yrs but last few I've started using exim4 on debian. Since exim4's executable is named `sendmail'.... After seeing your post, I thought it might still work.... but apparently not since the variable you mentioned: `mail-interactive' is set to `t'. But still I don't have that buffer. Do you think there might be still more factors that need resetting or the like to be able to follow that smtp output regularly? Of course, I can and do follow the smtp output using a homeboy mail sending script that uses `mailx -v' for testing situations. It records the smtp output, but it would be nice to have that output available all the time. And I didn't really see a handy way to capture it when sending from gnus which is my normal way. And, of course again, there are exim logs, mail.log and so forth. Still it would be handy to have a continuing buffer in gnus to refer to when a problem arises. Perhaps there is some way to hook into that smtp activity in verbose mode by scripting something? .... but that is a bit over my pea brain comprehension.