Re: Content-Transfer-Encoding in Gnus

Byunghee HWANG (황병희) <[email protected]>
Newsgroups gmane.emacs.help
Organization 金陵 (연원의 마음)
Message-ID <[email protected]>
"Byunghee HWANG (황병희)" <[email protected]> writes:

> Hellow Emacs Hackers,
>
> For some reason, i have to go 8bit about Content-Transfer-Encoding in
> Gnus like as:
>
> <quote>
> Content-Type: text/plain; charset=utf-8
> Content-Transfer-Encoding: 8bit
> </quote>
>
> I've tried countless times but I've failed. How can i set *8bit*?
>
> Env ---
> OS:
> Ubuntu 18.04.6 LTS
>
> Emacs:
> GNU Emacs 25.2.2 (x86_64-pc-linux-gnu, GTK+ Version 3.22.21)
>  of 2017-09-23, modified by Debian

I solved the original problem completely by chance while experimenting
with SMTPUTF8. I did re-write smtpmail.el as below:

<quote: patch smtpmail.el in emacs-25 branch>
diff --git a/lisp/mail/smtpmail.el b/lisp/mail/smtpmail.el
index 9dc4ace050c..3efbcc27d46 100644
--- a/lisp/mail/smtpmail.el
+++ b/lisp/mail/smtpmail.el
@@ -798,8 +798,8 @@ Returns an error if the server cannot be contacted."
                         "")
                     "")))
              (smtpmail-send-command
-              process (format "MAIL FROM:<%s>%s%s"
-                              envelope-from size-part body-part))
+              process (format "MAIL FROM:<%s>%s%s %s"
+                              envelope-from size-part body-part "SMTPUTF8"))
              (cond
               ((smtpmail-ok-p (setq result (smtpmail-read-response process)))
                ;; Success.
</quote>

And i attached tested 8bit email (with SMTPUTF8):
<https://gitlab.com/soyeomul/Gnus/-/raw/aeff49af6bb3a29727ef80522f531720d0a15e5a/stuff/8bit-gmail>


Sincerely, Byunghee

-- 
^고맙습니다 _布德天下_ 감사합니다_^))//
signature.asc (application/pgp-signature, 227 B)
-----BEGIN PGP SIGNATURE-----

iHUEARYIAB0WIQRqpiVRMuVtH3ALfA6mdGCB9LBsVwUCabvl3QAKCRCmdGCB9LBs
V3liAP4yFgi/xn0xmNxjtElpXJVIUhJzpxX+xrPoh9W6pZAUwQEAtve9kLleCr6c
UiY++8mjo0ev9ajXvSL7QUW1y49FWw4=
=24Wt
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.