From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Radu Butoi Newsgroups: gmane.emacs.help Subject: Re: Sending mail: line wrapping and quoted-printable encoding Date: Sat, 25 Apr 2020 20:24:42 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="113788"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 26 02:26:07 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jSV7V-000TTC-SB for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 26 Apr 2020 02:26:05 +0200 Original-Received: from localhost ([::1]:49452 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSV7U-0004UL-Rp for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 25 Apr 2020 20:26:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33720) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSV6Q-0004KX-Lj for help-gnu-emacs@gnu.org; Sat, 25 Apr 2020 20:24:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jSV6D-0006ap-5m for help-gnu-emacs@gnu.org; Sat, 25 Apr 2020 20:24:58 -0400 Original-Received: from mail-qt1-x82b.google.com ([2607:f8b0:4864:20::82b]:35476) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jSV6C-0006ZJ-Mw for help-gnu-emacs@gnu.org; Sat, 25 Apr 2020 20:24:44 -0400 Original-Received: by mail-qt1-x82b.google.com with SMTP id s30so11335884qth.2 for ; Sat, 25 Apr 2020 17:24:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:date:message-id:mime-version; bh=ckg+1oLxNcfA140KtlxNa4aqUVet1osbjU4EgCHmhm4=; b=jyo0iL5ZYPCWYrJXuo2khCqnYuWUhhXwQB8B35vh++UBLpL0P08IMOH0AWb/kk/cnj wUemVrLvaeMnZ0pcGWS9MW1wOrG7YhpYYcH4IJE+fWL9g9EdZ+cqZQYI9qyIzJcvjFfB E7XFQS6Y07yPdcAW0US7SIbqSwdb4jdr+ubchxfUR2WZAAkJX+knZwoI5onH/8ZwOXB7 jPRI6UWXya3189LUczy2e/ThQlOLlMuJ5yRwqkWZpKJNlfs9PlAbb7j+YULxOxxhW6o5 0Y6vWtfk1Tjygx3Shlobuo14s5C2AvCQLhfVN1nEGwbn070AZhfey8WeRAr5Amx/KIOZ ta/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version; bh=ckg+1oLxNcfA140KtlxNa4aqUVet1osbjU4EgCHmhm4=; b=N4zvLTBlAK24qxBWjIFkSsfq9yI+aiM/pi8IWUsHHNOBD7n7MdengAM9dZlynFMlk0 Vn08oZMucsRmJk8/MPdw+d3movX1cx2q59VviNYzoJplUI7MzZeb2xWrwPLOB+bC1oOP NU2LBROx0C8rkXjhBNP2384+BrVWdynQck1Sovieac1e3233TPZbc6cBLY3YX5wRyqui MpApZddYDf1IeqHl12gYjxgEs/fR7jTcoce7a2ajoYMdXPoPLCKMgo2AW1Z2KILwv6vi 40fvtA+m5LKiMEEdGtX1suXCz6qdPwlGUJ035RB8jglR5HL8kA0+7Zz/5ne1wMMFi2LI QY4g== X-Gm-Message-State: AGi0PuYJYYgl15iKEcW6zCrF57utf/Nov5jSXYJ1P2FYNK1shwjo0G1p Cj8xB5xCd5BgezLrLqpy7oKOK1xS X-Google-Smtp-Source: APiQypLM4ungTw99XN7fC0A4AMfKV1sJejpcZjynVGpVMDt5bEBZ12aKLCN6+VWahhYj9j6SyuTRpA== X-Received: by 2002:ac8:6d3b:: with SMTP id r27mr17399338qtu.55.1587860683216; Sat, 25 Apr 2020 17:24:43 -0700 (PDT) Original-Received: from localhost ([2620:0:1003:321:28f5:a8b5:88d8:505b]) by smtp.gmail.com with ESMTPSA id o6sm6607750qkd.113.2020.04.25.17.24.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Apr 2020 17:24:42 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::82b; envelope-from=rbutoi@gmail.com; helo=mail-qt1-x82b.google.com X-detected-operating-system: by eggs.gnu.org: Error: [-] PROGRAM ABORT : Malformed IPv6 address (bad octet value). Location : parse_addr6(), p0f-client.c:67 X-Received-From: 2607:f8b0:4864:20::82b X-Mailman-Approved-At: Sat, 25 Apr 2020 20:25:42 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:122939 Archived-At: Radu Butoi writes: > Hello all, > > I've recently set up my mail in Emacs, and it works well. Gmail, though, > doesn't support [1] format=flowed, resulting in the hard-to-read comb > effect when viewing on mobile, which I'd like to avoid. Doing some more > research, I see that the quoted-printable encoding (which Gmail does > support [2], and I've confirmed) can also be used to avoid hard line > breaks while keeping under the line length limit. > > Now, I'd like to configure Emacs to send mail using this encoding. To > test this I overwrite `sendmail-program` to log what Emacs sends. > Reading the message-mode and Emacs MIME manuals, I tried setting the > following variables: > > (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) > > When sending, no encoding to quoted-printable is done (and there's no > Content-Transfer-Encoding header). To try to debug this further, > inserted the following into a buffer and ran M-: (mml-to-mime) > > test test test <...longer than 78 columns...> Sorry, I forgot to escape this. It should say (I was trying to write an MML definition to explicitly set the encoding): <#part type=3D3Dtext/plain encoding=3D3Dquoted-printable> test test test <...longer than 78 columns...> <#/part> > > And there is still no encoding header or wrapping with =. Does anyone > know what is going on here? > > More generally, since I'm new to terminal-based email, what is the > etiquette around hard-wrapping (or not)? Would it be rude to send > paragraphs as one logical line (wrapped-in-transmission by > quoted-printable) and expect people to soft-wrap? > > Thanks in advance, > Radu > > [1]: https://useplaintext.email/, and many blog posts mentioning the > same. It seems like Gmail used to support this, from the screenshot in > https://github.com/legoscia/messages-are-flowing. > > [2]: https://mathiasbynens.be/notes/gmail-plain-text