“来自”mutt中的地址不起作用

时间:2017-10-24 06:30:00

标签: shell mutt

参考这个 Change sender's address in mutt via console

我在使用mutt的shell脚本中遇到同样的问题。尝试更新标头(-e),发送env变量EMAIL,更新〜/ .muttrc(/ etc / Muttrc中没有条目因此没有效果)但没有变化。我仍然得到“From”地址作为什么由主持人设定。

请帮忙。

2 个答案:

答案 0 :(得分:1)

我尝试了更多选项,这是最终有效的。

$ MUTT -e"设置自= DoNotReply" -s" $ MAIL_SUBJECT" -a $ FILE_LIST - $ MAIL_RECEPIENTS

答案 1 :(得分:0)

在.muttrc中设置{'tokens': [{'token': 'być', 'start_offset': 0, 'end_offset': 6, 'type': '<ALPHANUM>', 'position': 0}, {'token': 'biały', 'start_offset': 7, 'end_offset': 12, 'type': '<ALPHANUM>', 'position': 1}, {'token': 'miś', 'start_offset': 13, 'end_offset': 16, 'type': '<ALPHANUM>', 'position': 2}, {'token': 'misić', 'start_offset': 13, 'end_offset': 16, 'type': '<ALPHANUM>', 'position': 2}]} 。这会在调用时添加-f选项 sendmail发送邮件,迫使它使用与发件人:标头字段相同的信封地址。

相关问题