rohrpost

A commandline mail client to change the world as we see it.
git clone git://r-36.net/rohrpost
Log | Files | Refs | README | LICENSE

commit c45ba60fad4d16f7d17263370d0392efd49fbf8f
parent 0ecd913b33cf12aba6fd01963a555084a051cf5e
Author: Sime Ramov <s@ramov.org>
Date:   Fri, 24 Mar 2023 17:37:54 +0100

rohrpost: LANG is not enough (LC_ALL)

Hi,

Christoph Lohmann <20h@r-36.net> wrote:
> Thanks for your patch. Sadly ramov.org hates tor users and my privacy.
> Can you append the patch to some e-mail or upload it onto some
> privacy-respecting hosting option?

Sorry, migrating off CF is on a todo list, here's inline:

It's basicaly just 's/LANG/LC_ALL/g'

Signed-off-by: Christoph Lohmann <20h@r-36.net>

Diffstat:
Mtmpl/compose.sh | 4++--
Mtmpl/fwd.sh | 4++--
Mtmpl/repl.sh | 6+++---
3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/tmpl/compose.sh b/tmpl/compose.sh @@ -14,8 +14,8 @@ Cc: Bcc: User-Agent: rohrpost MIME-Version: 1.0 -Content-Type: text/plain; charset=\"utf-8\" -Content-Transfer-Encoding: 8bit\n" "$(LANG=C date "+%a, %d %b %Y %T %z")" \ +Content-Type: text/plain; charset=utf-8 +Content-Transfer-Encoding: 8bit\n" "$(LC_ALL=C date "+%a, %d %b %Y %T %z")" \ "$(rpcfg -v defaultfrom)" \ "${to}" [ -e "$HOME/.mailheaders" ] && cat "$HOME/.mailheaders" diff --git a/tmpl/fwd.sh b/tmpl/fwd.sh @@ -42,9 +42,9 @@ Cc: Bcc: User-Agent: rohrpost MIME-Version: 1.0 -Content-Type: text/plain; charset=\"utf-8\" +Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit" \ - "$(LANG=C date "+%a, %d %b %Y %T %z")" \ + "$(LC_ALL=C date "+%a, %d %b %Y %T %z")" \ "$(rpcfg -v defaultfrom)" \ "${nsubject}" [ -e "$HOME/.mailheaders" ] && cat "$HOME/.mailheaders" diff --git a/tmpl/repl.sh b/tmpl/repl.sh @@ -128,7 +128,7 @@ then fi fi -printf "Date: $(LANG=C date "+%a, %d %b %Y %T %z")\n" +printf "Date: $(LC_ALL=C date "+%a, %d %b %Y %T %z")\n" if [ -n "$msgid" ]; then @@ -141,7 +141,7 @@ fi printf "User-Agent: rohrpost\n" printf "MIME-Version: 1.0\n" -printf "Content-Type: text/plain; charset=\"utf-8\"\n" +printf "Content-Type: text/plain; charset=utf-8\n" printf "Content-Transfer-Encoding: 8bit\n" printf "From: $(rpcfg -v defaultfrom)\n" printf "To: ${nto}\n" @@ -151,7 +151,7 @@ printf "Subject: ${nsubject}\n" [ -e "$HOME/.mailheaders" ] && cat "$HOME/.mailheaders" printf "\n" -printf "On $(LANG=C date "+%a, %d %b %Y %T %z") ${from} wrote:\n" +printf "On $(LC_ALL=C date "+%a, %d %b %Y %T %z") ${from} wrote:\n" rpview -nb -- "$ids" | sed 's/^/> /' printf "\n"