Forward Message With Attachments in Mutt


Problem: Forward attachment in mutt is hard

This is a pain for every mutt user. I got a solution which can satisfy my need.

Solution

  • Add these two lines to your .muttrc. This will forward an email with the text self.
unset mime_forward
set mime_forward_rest=yes
  • Add the following line to your .vimrc too. This will tag all attachments but the first one may not include, which depend on the number of attachments. While the first one usually not neccessary to include. This macro looks weird but works well for most cases. The idea is:
    • Goto the last attachment by hit jjjjjjjjjjjjjjjjjj;
    • Tag the last one by hit t;
    • Goto the previous one by hit k;
    • Tag it by hit t;
    • Goto the previous one by hit kk;
macro index,pager "F" "<view-attachments>jjjjjjjjjjjjjjjjjjjjtktkktkktkktkktkktkktkktkktkktkktkktkk;f"

How to use:

  • In index or pager page, hit F to forwar message with attachments.

Enjoy!

苏命
苏命
副研究员

我的研究方向:水源地水质安全保障,主要针对水源地由于藻类爆发引起的水体嗅味问题开展研究。