我record
在 my 中定义了变量.muttrc
,copy
var 设置为 yes。record
如果我以交互方式发送消息,则消息将保存到我的“已发送”( ) 文件夹中。然而,如果我这样做而不打开交互式 mutt 会话,如下所示:
echo Message set non-interactively | mutt -s "Test noninteractively" [email protected]
消息已发送,但未保存在记录中
我尝试了-d
选项并比较了两个会话的调试日志,只有明显的差异(例如时间戳)。
可能是什么原因,还需要检查什么?
更新- 我的 .muttrc 以防万一其他事情很重要
set imap_user = "[email protected]"
smtp_pass "***"
set imap_pass = $smtp_pass
set smtp_url = "smtp://[email protected]:25/"
set from = "[email protected]"
set realname = "Tag Wint"
set folder = "imaps://mail.server.com:993"
alternates "(user|tagwint)@server.com"
set spoolfile = "+INBOX"
set postponed = "+Drafts"
# set record = "+/Sent" # <-- tried also naming this way
set record="imaps://mail.server.com:993/Sent"
set copy = yes
set save_name = yes
set force_name = yes
set header_cache = ~/.mutt/com.server.user/cache/headers
set message_cachedir = ~/.mutt/com.server.user/cache/bodies
set certificate_file = ~/.mutt/com.server.user/certificates
# vim: ft=muttrc