From: Eli Zaretskii <eliz@gnu.org>
To: "Vida Gábor" <vidagabor@gmail.com>
Cc: 7589@debbugs.gnu.org
Subject: bug#7589: smtpmail: bad line endings in queued mails on Windows
Date: Sat, 11 Dec 2010 12:07:39 +0200 [thread overview]
Message-ID: <83d3p8vd04.fsf@gnu.org> (raw)
In-Reply-To: <kod039q4od9o.fsf@gmail.com>
> Date: Sat, 11 Dec 2010 10:43:47 +0100
> From: Vida Gábor <vidagabor@gmail.com>
> Cc: 7589@debbugs.gnu.org
>
> smtpmail-code-conv-from is nil and the return value of
> (coding-system-change-eol-conversion ...) is also nil right after the
> function call of (set-buffer-file-coding-system ...) that you modified
> in your patch.
Sorry, missed that use-case. How about the patch below? (It is
relative to the original version of smtpmail.el.)
=== modified file 'lisp/mail/smtpmail.el'
--- lisp/mail/smtpmail.el 2010-12-09 01:46:03 +0000
+++ lisp/mail/smtpmail.el 2010-12-11 10:03:04 +0000
@@ -392,7 +392,14 @@ The list is in preference order.")
(make-directory smtpmail-queue-dir t))
(with-current-buffer buffer-data
(erase-buffer)
- (set-buffer-file-coding-system smtpmail-code-conv-from nil t)
+ (set-buffer-file-coding-system
+ ;; We will be reading the file with no-conversion in
+ ;; smtpmail-send-queued-mail below, so write it out
+ ;; with Unix EOLs.
+ (coding-system-change-eol-conversion
+ (or smtpmail-code-conv-from 'undecided)
+ 'unix)
+ nil t)
(insert-buffer-substring tembuf)
(write-file file-data)
(set-buffer buffer-elisp)
next prev parent reply other threads:[~2010-12-11 10:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-07 23:26 bug#7589: smtpmail: bad line endings in queued mails on Windows Vida Gábor
2010-12-10 14:36 ` Eli Zaretskii
2010-12-11 9:43 ` Vida Gábor
2010-12-11 10:07 ` Eli Zaretskii [this message]
2010-12-12 19:40 ` Vida Gábor
2010-12-12 20:12 ` Eli Zaretskii
2010-12-13 8:59 ` Vida Gábor
2010-12-13 15:13 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83d3p8vd04.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=7589@debbugs.gnu.org \
--cc=vidagabor@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).