We use Microsoft Outlook heavy at school but our backed is CentOS. I use echo "Foo" | mail -s "subject" addr@unc.edu a lot. Is it possible to change the priority to High so Outlook will understand it? The priority meaning the email will be sent to the normal email queue but on Outlook it would have the exclamation point.
TIA
On Thu, Sep 18, 2008 at 11:59 AM, Mag Gam magawake@gmail.com wrote:
We use Microsoft Outlook heavy at school but our backed is CentOS. I use echo "Foo" | mail -s "subject" addr@unc.edu a lot. Is it possible to change the priority to High so Outlook will understand it? The priority meaning the email will be sent to the normal email queue but on Outlook it would have the exclamation point.
TIA _______________________________________________
man mail will show you how to change the priority, sender, and much more :)
On 2008-09-18 12:05, Rudi Ahlers wrote:
On Thu, Sep 18, 2008 at 11:59 AM, Mag Gam <magawake@gmail.com wrote:
We use Microsoft Outlook heavy at school but our backed is CentOS. I use echo "Foo" | mail -s "subject" addr@unc.edu a lot. Is it possible to change the priority to High so Outlook will understand it? The priority meaning the email will be sent to the normal email queue but on Outlook it would have the exclamation point.
man mail will show you how to change the priority, sender, and much more :)
$ man mail | grep -i priority | wc -l 0 $ rpm -q centos-release centos-release-5-2.el5.centos.x86_64
Actually, I think MS LookOut expects some header line indicating the priority. But added an arbitary header line is not possible using mail (or mailx). To add the required header, you would need to format the whole mail message, including all the standard required headers, plus the header line indicating a priority for displaying an exclamation mark in MS LookOut, and then sending that message of using "sendmail" itself. Or you could use some perl/python/php/ruby script that does all this for you.
Mail/mailx/mail cannot add the header. But I'm open to learn something new...
On Thu, 18 Sep 2008 12:32:20 +0200 Paul Bijnens Paul.Bijnens@xplanation.com wrote:
Mail/mailx/mail cannot add the header.
This can:
http://www.cleancode.org/projects/email
Mag Gam wrote:
We use Microsoft Outlook heavy at school but our backed is CentOS. I use echo "Foo" | mail -s "subject" addr@unc.edu a lot. Is it possible to change the priority to High so Outlook will understand it? The priority meaning the email will be sent to the normal email queue but on Outlook it would have the exclamation point.
Maybe just a stupid idea . . .
If it is just a header thing, as it's been suggested, I would try procmail.
Your command would be something like
echo "Foo" | mail -s "subject:real_recipient" highpriority@unc.edu
The procmail script for the highpriority account would add in the necessary header, pull real_recipient out of subject & forward it to real_recipient@unc.edu.