From: Emanuel Berg <embe8573@student.uu.se>
To: info-gnus-english@gnu.org
Subject: mail back to UTF-8 before save to HD
Date: Thu, 04 Feb 2016 04:37:34 +0100 [thread overview]
Message-ID: <87a8nh16yp.fsf@debian.uxu> (raw)
(case 1) If I write a mail with the Swedish chars "å",
"ä", or "ö", as in
äåö
ÅÅÖ
the mail gets the headers:
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
(case 2) But if I don't use any of them chars, there
is only:
Content-Type: text/plain
However when the mail from (case 1) is archived in my
nnml group mail.sent, the UTF-8 isn't restored but the
"quoted-printable" style remains:
=C3=A4=C3=A5=C3=B6
=C3=84=C3=85=C3=96
I wrote this zsh to restore it:
back-to-swedish () {
local files=($@)
sed -e 's/=C3=A5/å/g; s/=C3=A4/ä/g; s/=C3=B6/ö/g' \
-e 's/=C3=85/Å/g; s/=C3=84/Å/g; s/=C3=96/Ö/g' \
-e 's/=20/ /g' $files
}
(I don't know why the whitespace at the end of the
signature delimiter must be restored as well. It gets
sent and archived as =20.)
My question is, how can I automatize this so the UTF-8
is restored automatically if it was used in the
original message?
--
underground experts united
http://user.it.uu.se/~embe8573
_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english
next reply other threads:[~2016-02-04 3:37 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-04 3:37 Emanuel Berg [this message]
2016-02-04 7:45 ` Peter Münster
2016-02-04 21:32 ` Emanuel Berg
2016-02-05 18:42 ` Emanuel Berg
2016-02-05 18:59 ` Teemu Likonen
2016-02-06 0:20 ` Emanuel Berg
2016-02-06 2:11 ` Adam Sjøgren
2016-02-06 2:15 ` Emanuel Berg
2016-02-06 14:23 ` Adam Sjøgren
2016-02-06 21:47 ` Emanuel Berg
2016-02-06 21:56 ` Adam Sjøgren
2016-02-06 22:17 ` Emanuel Berg
2016-02-06 22:34 ` Adam Sjøgren
2016-02-07 3:21 ` Emanuel Berg
2016-02-07 3:31 ` Emanuel Berg
2016-02-06 6:57 ` Teemu Likonen
2016-02-06 21:36 ` Emanuel Berg
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=87a8nh16yp.fsf@debian.uxu \
--to=embe8573@student.uu.se \
--cc=info-gnus-english@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).