LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-01-2017, 01:03 PM   #1
mackowiakp
Member
 
Registered: Jun 2014
Location: Poland/Gdynia
Distribution: Mageia 9, SH4, Debian
Posts: 370

Rep: Reputation: 8
National characters in Open Tometo router shell


I added my Country locale (pl_PL) to shell in Open Tomato based router Asus. Originally only en_US and en_EN locale where available.
Now it is possible to use it for example in vim-full editor, installed from Entware-ng.
I send emails from router using msmtp command like this:

Code:
/bin/echo -e "Subject: Mail z routera ASUS\r\n\r\n<text with Polish characters>" |/opt/bin/msmtp --debug --from=default -t my_user@gmail.com,my_user@other.domain
Such emails are sending via gmail account, used as mail relay.

Below content of /opt/etc/msmtprc file:

Code:
defaults
tls on
tls_starttls on
tls_trust_file /opt/etc/certs/ca-bundle.crt
 
account default
host smtp.gmail.com
port 587
auth on
user my_account@gmail.com
password xxxxxxxx
from my_account@gmail.com
#logfile /opt/msmtp.log
The codepage for my language is Latin-8859-2.

The result is as follows.
- in iPad mail client, Polish characters are display properly both for Gmail account and for other.domain account
- in Linux Thunderbird Gmail account, Polish characters are display properly
- the same Thunderbird but other.domain account, strange symbols instead Polish characters
- mail read via Web page for other.domain, strange symbols instead Polish characters

All other sources emails are display properly on all platforms.

Probably I have to add something to config file or to msmtp command, to tell client s about codepage.
I call to other.domain admin but they dont know why Polish character are display not properly in they own system. Shame...
I dont know what to do. Any help?
 
Old 08-01-2017, 07:54 PM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
The other_domian server may mark certain characters as "unsafe". The mail reader is then responsible to either comply with the safe/unsafe encoding,and to display "safe" characters instead. Or to ignore the encoding and display what was in the original message.

Last edited by AwesomeMachine; 08-01-2017 at 08:01 PM.
 
Old 08-02-2017, 01:59 AM   #3
mackowiakp
Member
 
Registered: Jun 2014
Location: Poland/Gdynia
Distribution: Mageia 9, SH4, Debian
Posts: 370

Original Poster
Rep: Reputation: 8
Yep. Probably You are right. But can I do something to make Polish characters encoding as "safe" in msmtp command call?
 
Old 08-02-2017, 02:54 AM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Your send command may not be what is responsible. It might be the remote server doing it. You can try uuencoding the message as binary and see if that works. But it won't get you any closer to finding out where the error is coming from.

And, I'm not sure I'm correct. I'm guessing as well as I can. But after over 30 years on PCs and 15 on Linux, sometimes I guess pretty well.

Last edited by AwesomeMachine; 08-02-2017 at 02:56 AM.
 
Old 08-02-2017, 03:35 AM   #5
mackowiakp
Member
 
Registered: Jun 2014
Location: Poland/Gdynia
Distribution: Mageia 9, SH4, Debian
Posts: 370

Original Poster
Rep: Reputation: 8
OK. So how I can uuencode mail in msmtp command? There is no uuencode command in Entware-ng repo for ARMv7 based platforms.
BTW. I first sat behind the Unix console in 1983. There was martial law in Poland (maybe you know something about it). And during our studies we used computers that were a Polish copy of PDP-11 from DEC. So I can say "Once upon the time...."
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mediatomb doesn't display national characters correctly pingu Linux - Software 2 10-23-2013 02:16 PM
[SOLVED] Danish national characters disappeared in amsn and pidgin lars_oeh Linux - Desktop 1 10-23-2010 05:42 PM
LXer: National Lampoon Goes Open Source LXer Syndicated Linux News 0 06-24-2006 01:21 AM
national characters missing in java applications zgolus Slackware 0 12-01-2003 04:30 AM
National (åäö) characters in console Sonderblade Linux - Software 4 11-27-2003 07:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration