使用 Linux 邮件命令时可以设置“In-Reply-To”标题吗?

Lia*_*iam 1 email command-line-interface

我以为我可以使用:

mail -s "Subject_here" -a "In-Reply-To: Message_ID_here" < body
Run Code Online (Sandbox Code Playgroud)

但不幸的-a是无法识别。

Lia*_*iam 5

我发现了这种使用方式sendmail

/usr/lib/sendmail -t < body
Run Code Online (Sandbox Code Playgroud)

该文件body应该将每个标题放在一个单独的行上,然后是一个空行,然后是您的消息正文文本:

To: bob@example.com
From: tim@example.com
Subject: Example of conversation threading
In-reply-to: <put Message-ID of previous mail here>

Body text here
Run Code Online (Sandbox Code Playgroud)