当我按下C将某封邮件复制到文件夹时,mutt
默认为一个不存在的 IMAP 文件夹,我猜是通过查看当前邮件来“推断”的。有没有办法以这种方式自定义此行为:
- 来自:USER1,始终默认为 IMAP_FOLDER_A
答案1
我不确定你是否可以改变这种行为,但你可以.muttrc
像这样声明一个宏:
macro index,pager T '<tag-pattern>tagPattern<enter><tag-prefix-cond><save-message>=INBOX.YourFolder<enter><enter><change-folder>=INBOX.YourFolder<enter><enter>'
因此,让我们进行一下分析:
macro # Define a macro
index,pager # Make it work in the index an pager
T # The keycombo to trigger the macro
' # Single quoted
<tag-pattern>tagPattern<enter> # Tag all mails with this pattern
<tag-prefix-cond><save-message>=INBOX.YourFolder<enter> # Save all tagged messages to this folder
<enter> # Yeah, we know what we're doing.
<change-folder>=INBOX.YourFolder<enter> # Go the that folder.
<enter> # Yeah, we really know what we're doing!
' # Single Quote, closing.