LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   need help with mutt or mail (https://www.linuxquestions.org/questions/linux-software-2/need-help-with-mutt-or-mail-411127/)

rhea 02-03-2006 12:12 AM

need help with mutt or mail
 
HEY,

I want to know is there any way(applying any script or whatever) in linux using mutt or mail utility by which i can overlap the from header of outgoing messages? that means if suppose

from:rhea@matrix.termintor.com
then can I cahnge it to
from: rhea@revolutiion.com
or something else user being the same

kostian 02-03-2006 04:56 AM

put

Code:

my_hdr From: <rhea@revolutiion.com>
set edit_headers

in your .muttrc
The edit_headers option allows you to edit headers on composing your message.
You can also use hooks to automatically change your headers.

rhea 02-03-2006 05:11 AM

set from="Root <root@mailfort.dolatcapital.com" unmy_hdr sendhook '~s Frog" 'my_hdr From: Root1 <root@dolatcapital.com'
Ya i want to change it autpmatically but above thing is not working for me.
Actually my problem is i will be running an automated script and that script will be mailed to some other comp now DNS on that comp understands only
root@dolatcapital.com not root@mailfort.dolatcapital.com

Please help me.

rhea 02-03-2006 11:37 PM

even pine will do please let me know


All times are GMT -5. The time now is 02:25 PM.