Computer Hope

Software => BSD, Linux, and Unix => Topic started by: doanphan111 on November 06, 2019, 05:13:39 AM

Title: Is there any way to set the priority of an email in mailx?
Post by: doanphan111 on November 06, 2019, 05:13:39 AM
Is there any way to set the priority of an email in mailx?
Thanks
Doan
Title: Re: Is there any way to set the priority of an email in mailx?
Post by: nil on November 06, 2019, 06:49:34 AM
You need to append an
Code: [Select]
X-Priority: header to your e-mail. Some versions of mailx support the -a option, which allows you to append a custom header string.

Some versions of mailx use -a for another purpose. For example, Computer Hope's command reference for mailx lists -a as the file append option. So check your man page with
Code: [Select]
man mailx to find out if your version of mailx supports appending headers with -a.

If it does, you can use the option
Code: [Select]
-a "X-Priority:1"
If not, you can try using sendmail instead of mailx. More info in this thread https://stackoverflow.com/a/24011131
Title: Re: Is there any way to set the priority of an email in mailx?
Post by: Geek-9pm on November 06, 2019, 11:19:46 AM
Also:
https://itsfoss.com/best-email-clients-linux/ (https://itsfoss.com/best-email-clients-linux/)
 :)