bug-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mail works differently on debian 9 and debian 10


From: Jan Kersten
Subject: mail works differently on debian 9 and debian 10
Date: Thu, 12 Mar 2020 10:06:53 +0000

Hi there,

 

i have a problem and don’t know if it is really a bug, but i hope at least you could help me find a solution.

 

There is a working bash script on debian 9 which sends an email using this command:

echo "Content" | mail -s "Subject" -A $PATH_TO_ATTACHMENT -aFrom:Servername\<address@hidden\> address@hidden

 

The mail is working as expected and the content is used as the mailbody.

The same command works different on debian 10. There is the content not used as the mailbody but attached as the file ATT00001.txt

If i don’t use the option –A the content is used as the mailbody again.

It doesn’t matter if the command is used in a bash script or in the console.

It doesn’t matter either in wich form i put in the content, the same problem is it with this command:

mail -s "Subject" -A $PATH_TO_ATTACHMENT -aFrom:Servername\<address@hidden\> address@hidden < Content.txt

 

I looked up the manpage and the new options but couldn’t find a solution for my problem.

 

Could you tell me, what i do wrong or how to solve my problem?

 

Best regards

Jan Kersten

 

Hochschule Hannover

Fakultät IV

Abteilung Informatik

Campus Linden – Gebäude H

Raum 1H.2.04A

 

Ricklinger Stadtweg 120

30459 Hannover

 

Tel.: +49 (0)511 9296-1837

e-Mail: address@hidden

 

 

Some additional infos:

 

On debian 9:

# cat /etc/issue

Debian GNU/Linux 9 \n \l

 

# dpkg -l | grep mailutils

ii  libmailutils5:amd64                          1:3.1.1-1                         amd64        GNU Mail abstraction library

ii  mailutils                                    1:3.1.1-1                         amd64        GNU mailutils utilities for handling mail

ii  mailutils-common                             1:3.1.1-1                         all          Common files for GNU mailutils

 

 

On debian 10:

# cat /etc/issue

Debian GNU/Linux 10 \n \l

 

# dpkg -l | grep mailutils

ii  libmailutils5:amd64                          1:3.5-3                     amd64        GNU Mail abstraction library

ii  mailutils                                    1:3.5-3                     amd64        GNU mailutils utilities for handling mail

ii  mailutils-common                             1:3.5-3                     all          Common files for GNU mailutils


reply via email to

[Prev in Thread] Current Thread [Next in Thread]