From: Radu Butoi <rbutoi@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: MIME issue: can't set encoding on mail or mml-to-mime
Date: Tue, 05 May 2020 17:39:31 -0400 [thread overview]
Message-ID: <prg88si6xdrg.fsf@butoi-macbookpro2.roam.corp.google.com> (raw)
Hello all,
Following the message and MIME manuals, I want to change the
`Content-Transfer-Encoding` on outgoing mail to quoted-printable [1].
The "Encoding Customization" section mentions that these variables
control this setting:
(setq
mm-content-transfer-encoding-defaults
'((".*" quoted-printable))
mm-body-charset-encoding-alist
'((iso-8859-1 . quoted-printable)
(utf-8 . quoted-printable))
mm-use-ultra-safe-encoding t) [2]
However, this doesn't work and outgoing mail is not encoded. The
function quoted-printable-encode-region does seem to work, though. To
debug further, in the description for `mm-body-charset-encoding-alist`,
it mentions that encoding can me overridden through the encoding MML
tag. In a new buffer, I call M-: (mml-to-mime) on
<#part type=text/plain encoding=quoted-printable>
test test test <...longer than 78 columns...>
<#/part>
And this doesn't encode or set any encoding header. Setting encoding to
base64 doesn't change anything. I see this on Emacs 26.3, including with
-Q. I tried to edebug this but couldn't get very far. Is anyone familiar
with this library or can provide some pointers to help debug this?
Thank you,
Radu
[1]: This is in order to be able to send long, soft-wrapped lines for
Gmail to display plaintext emails properly on mobile -- I had previously
asked about this here:
https://lists.gnu.org/archive/html/help-gnu-emacs/2020-04/msg00216.html.
[2]: The documentation does state that `mm-use-ultra-safe-encoding` is
an internal variable not to be set; setting it or not makes no
difference, having tested both. Setting it to t does affect
quoted-printable-encode-region, as the description states.
next reply other threads:[~2020-05-05 21:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-05 21:39 Radu Butoi [this message]
2020-05-06 7:52 ` MIME issue: can't set encoding on mail or mml-to-mime Gregor Zattler
2020-05-06 15:10 ` Drew Adams
2020-05-06 15:34 ` tomas
2020-05-06 22:37 ` Radu Butoi
2020-05-06 22:41 ` Drew Adams
2020-05-08 18:49 ` Gregor Zattler
2020-05-15 15:34 ` Comfortably display text in a wide frame (was: MIME issue: can't set encoding on mail or mml-to-mime) Dmitry Alexandrov
2020-05-06 18:01 ` MIME issue: can't set encoding on mail or mml-to-mime H. Dieter Wilhelm
2020-05-06 22:34 ` Radu Butoi
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=prg88si6xdrg.fsf@butoi-macbookpro2.roam.corp.google.com \
--to=rbutoi@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.