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: Sending mail: line wrapping and quoted-printable encoding Date: Sat, 25 Apr 2020 20:19:15 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="113701"; 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:06 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-000TTD-Sg for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 26 Apr 2020 02:26:05 +0200 Original-Received: from localhost ([::1]:49454 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSV7U-0004UR-SD 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]:59970) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSV0z-0002vM-EY for help-gnu-emacs@gnu.org; Sat, 25 Apr 2020 20:19:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jSV0y-0006O2-5H for help-gnu-emacs@gnu.org; Sat, 25 Apr 2020 20:19:21 -0400 Original-Received: from mail-qk1-x731.google.com ([2607:f8b0:4864:20::731]:40060) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jSV0x-0006Kp-ML for help-gnu-emacs@gnu.org; Sat, 25 Apr 2020 20:19:19 -0400 Original-Received: by mail-qk1-x731.google.com with SMTP id l78so14389929qke.7 for ; Sat, 25 Apr 2020 17:19:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=JSLa6K3LI5t1H1xBabFt9hUfRCxk/rTQzTujLMYuQfQ=; b=gFfzAr0eEicrUh2bKITCWbjXe+71P4LAOBN1gexYoBM9Tr/JuzWjGGF0n67MVBcuKW Ad5x4ZBZhGgLJKoieaivjrXe+3z1FlOc5ywp06Tfkw4W0VpDkN2kIQyaIGmpxORdo7R4 qP8vfVRJuV+j9nvdJik/eWe+KeLF2gOPIh+fLk9JzOvfVdt31uTwNYEKN5ISYF2XokS/ NAHKJuTD+9zaKBYhSsgsUYunt6jFFCkv/ym7O6966WhPQk6O4qbmioYjzo6bV0TMuLvd 9P8si4CFaMBUMCTdpOvnnKNELKx4gEksH0L7dA3DG1Ghvgu7HQjwkbfwQtJvNJpd8iV/ ot5Q== 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:date:message-id:mime-version; bh=JSLa6K3LI5t1H1xBabFt9hUfRCxk/rTQzTujLMYuQfQ=; b=imlYPLNigBTN7FahG4tdw4tCHQf2N06UUXsLYI2B4qpL3hNH6nzNL+vkHCRjm+tGgw iQYNr6LFdJ53hj6Bkrg2giz3NrWS8vkdKJl2xcB2mdCmCcDv6yVeazG75vQoq0MMeeK+ NRjWfhIbiqI5PXA/6/0HgwLCHhhzHnRnDZOQGHTxm1FOCAooIjIOZwSwCc7Am49ty9t1 0ag8OCbnT/0POjftynbtZBRRpwM8Z1CnT8mMXF729Wv2uc8n2ds+GAzp657ZEco34bSL VI6YTmVrWxm3ey/RN5hcF0Ayc6UdU3WiXvXc5JQJOotK9xvNCJJbqOdcXAOyPHppHrHY ezjQ== X-Gm-Message-State: AGi0PubDbmiPqU5yaLB8OFx69BX+ciArg05GTj01C9xs9rfOKwDncawi A41JryWaNNXxdKSsL5YI3w4lgRP+ X-Google-Smtp-Source: APiQypKJDWqe3wtUfzA4m26203lnwsCNZNuwFbDL2JXhOts1nvuBtquWLhW/+LeIvygkdi9Y7whgCA== X-Received: by 2002:a37:6dc4:: with SMTP id i187mr11376911qkc.358.1587860357500; Sat, 25 Apr 2020 17:19:17 -0700 (PDT) Original-Received: from localhost ([2620:0:1003:321:28f5:a8b5:88d8:505b]) by smtp.gmail.com with ESMTPSA id x8sm6946453qti.51.2020.04.25.17.19.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Apr 2020 17:19:16 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::731; envelope-from=rbutoi@gmail.com; helo=mail-qk1-x731.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::731 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:122938 Archived-At: --=-=-= Content-Type: text/plain 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) --=-=-= Content-Type: text/plain test test test <...longer than 78 columns...> --=-=-= Content-Type: text/plain 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 --=-=-=--