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: MIME issue: can't set encoding on mail or mml-to-mime Date: Tue, 05 May 2020 17:39:31 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="83231"; 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 Tue May 05 23:40:12 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 1jW5IS-000LRv-Dx for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 05 May 2020 23:40:12 +0200 Original-Received: from localhost ([::1]:52852 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jW5IR-0007Xw-E7 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 05 May 2020 17:40:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59612) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jW5Ht-0007Vj-G6 for help-gnu-emacs@gnu.org; Tue, 05 May 2020 17:39:37 -0400 Original-Received: from mail-qt1-x830.google.com ([2607:f8b0:4864:20::830]:40543) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jW5Hs-0004H7-J1 for help-gnu-emacs@gnu.org; Tue, 05 May 2020 17:39:37 -0400 Original-Received: by mail-qt1-x830.google.com with SMTP id q13so2013420qtp.7 for ; Tue, 05 May 2020 14:39:34 -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=kqP+P+4Z/uCOGr/k5VMk0YvmNpPAz4cUOJHnhsSQLMg=; b=MHgUwH/TL6WJF+RiRujb0xy4vnPTR3NvMElNOjAxEx4MOthIJwx+Pg55xxACVsNBmU CAH0PIS+XEQs203Jj9UgxZ4wKm1RXqSgj8trAlclk89bPqO2nb3uem7+nw+qSeflP0t0 ZmAOp9DaHoZYuuct7TmjOwqxG/gDWc0DS/kO1nSLD2kmrf+UxpCaSBohldgnkyv4t2VZ KBkRgmgZSYUxXrXcAE6UNl8ClFzaD/OyvNAPdGP1p1uEHLHE7L35/R5Cq9Fj38YhdSFD Y3DwXK0h0HQAZFzojnUaYA4dscMatO0W6WbfiRj0z8zOLiSUOaoRGYfkHrsZ0XcPmJrj mXZw== 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=kqP+P+4Z/uCOGr/k5VMk0YvmNpPAz4cUOJHnhsSQLMg=; b=XfKMdFPVY9a2GD4+d3FAia4toqE/zsKI2S0fcNikhyP89jrh8Vz5uNLgxE9KQF6c2I Rnse6ENFOXEkjo/nWX704kuwIS3gBxKJWHYoslRbh52frQqZ7wQJ92wcI/tuKTDOBnXT ckTXW9wMMnvRcKxZh2zD3jmp2URL5ImmTrINEgaSU+cb2hM+BLpbPe5j0EMARX0i4wpM Tuvsc9fJdM+LvnROb4owqSmSRUYueP5XT3lrakt1mbw2bLHro/uWyYw6f/RBes0t8WYd aVQJrzcSc/Khw23Tpnzmxdow+I6wNJBi2Q0SFU9J9E9wfz0bOeP9ye25Se/Np5mMVRZQ blqA== X-Gm-Message-State: AGi0PuaeNy7Nx+tYs6bVIgv8U1jiTn3W72Z/XSOHJiA/0dcsgvSuB6/B qfAjINAYelnof3W2D9cdQB/8t3MSQCo= X-Google-Smtp-Source: APiQypL1BCrXHanKcxXjKBIIoktXfCPlX+X1HcawuZNedYp4dm1rheV1khkTTU8wGQj2xbez7Z8Gaw== X-Received: by 2002:ac8:7758:: with SMTP id g24mr4664564qtu.85.1588714772788; Tue, 05 May 2020 14:39:32 -0700 (PDT) Original-Received: from localhost (cpe-74-72-51-189.nyc.res.rr.com. [74.72.51.189]) by smtp.gmail.com with ESMTPSA id p10sm2820429qtu.14.2020.05.05.14.39.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 May 2020 14:39:32 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::830; envelope-from=rbutoi@gmail.com; helo=mail-qt1-x830.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action 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:123028 Archived-At: 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.