Article View: gnu.emacs.vm.bug
Article #517From header not being added by smtpmail nor esmtpmail
From: AlexJB
Date: Sat, 02 Dec 2006 00:26
Date: Sat, 02 Dec 2006 00:26
50 lines
3205 bytes
3205 bytes
i'm working on getting VM set up with smtpmail (or esmtpmail) to send
outgoing messages via SMTP.
inside of the function: smtpmail-send-it, there's code to fill in the
>From header (about line 282).
;; Put the "From:" field in unless for some odd reason
;; they put one in themselves.
(goto-char (point-min))
(if (not (re-search-forward "^From:" delimline t))
(let* ((login smtpmail-mail-address)
(fullname (user-full-name)))
(cond ((eq mail-from-style 'angles)
-----------------
inside of the cond are three clauses to put in an appropriate From
header based on the mail-from-style.
on my version of emacs (GNU Emacs 21.4.1 (i386-pc-linux-gnu, X toolkit,
Xaw3d scroll bars) of 2005-03-17 on trouble, modified by Debian), i
think that the let* is causing the cond code to not execute, or perhaps
the insert function is not executing, because no from header is being
written to the message buffer.
i mucked around for quite a while, adding calls to 'message' and
whatnot, and i could not get a From line to get added in to the message
buffer, nor any output to the *Messages* buffer from within that cond
block, or otherwise within the let* block.
finally, i changed the let* to a let, changed all references to the
vars login and fullname to point to smtp-mail-address and
user-full-name, and poof! back in business.
technically, i only changed this in the esmtpmail code, so i don't know
if the same exact issue exists with smtpmail.el. but that block of
code is identical between the two files, so it seems like it would
still be a problem.
i'm not sure why there was a perceived need for a let*. the variables
that are being created are only referenced once or twice. and nothing
terribly sophisticated is being done to them.
anyways, there it is. i'd love to know if someone thinks that i'm
misinterpreting. i can post my patched code somewhere if it's helpful.
i notice that the same code (with the let*) exists in sendmail.el, and
that this works just fine on another system where i'm using
sendmail-send-it with emacs 20.4.1.
Technical Details
Message-ID:
<1165019219.674454.242500@j72g2000cwa.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!j72g2000cwa.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: f6829,9c011f1112f91862,start X-Google-Attributes: gidf6829,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!j72g2000cwa.googlegroups.com!not-for-mail From: "AlexJB" <alexjb@gmail.com> Newsgroups: gnu.emacs.vm.bug Subject: From header not being added by smtpmail nor esmtpmail Date: 1 Dec 2006 16:26:59 -0800 Organization: http://groups.google.com Lines: 51 Message-ID: <1165019219.674454.242500@j72g2000cwa.googlegroups.com> NNTP-Posting-Host: 12.144.160.66 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1165019225 10997 127.0.0.1 (2 Dec 2006 00:27:05 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 2 Dec 2006 00:27:05 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.8) Gecko/20061025 Firefox/1.5.0.8,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: j72g2000cwa.googlegroups.com; posting-host=12.144.160.66; posting-account=xnP3gQ0AAADG6KgC1ZApBySwqj_HGZwG