2013-08-26 34 views
0

我想在通過控制檯(而不是撰寫)使用mutt時動態設置發件人的地址。我檢查了描述的所有內容,嘗試了一切從this SO question,但沒有任何工作。無論我做什麼,都沒有改變。 我在/ etc/muttrc文件和〜/ .muttrc中都設置通過控制檯在mutt中更改發件人的地址

set from="[email protected]" 
set edit_headers=yes 

,另外,我嘗試過各種-e命令,像

-e "set [email protected]" 
-e 'my_hdr From:[email protected]' 
-e "send-hook . 'my_hdr From: Other Name <otheremail\@example.com>'" 
having export [email protected] in front 

,但我會一直收到郵件的用戶名@ compname.de

一個典型的調用看起來像這樣

export EMAIL="[email protected]" && echo | mutt -s "VERSANDTEST" -c "[email protected]" -e 'my_hdr From:[email protected]' -a /opt/data/YoloDat.txt /opt/data/TroloDat.txt -- "[email protected]" < /tmp/mailbody 

任何更多的想法AP preciated

回答

相關問題