Ticket #3076 (new enhancement)

Opened 6 months ago

Last modified 6 months ago

Enhancement of pseudo Attach: header

Reported by: chrisbra Owned by: mutt-dev
Priority: minor Milestone:
Component: mutt Version: 1.5.18
Keywords: attach mutt editor header Cc: cb@…

Description

Hi, this is my first bug report, so please be gentle ;)

As you know, you can attach files when editing messages, using the pseudo Attach: header. Unfortunally this header is not displayed, whenever you re-edit a message (e.g. when you edit a postponed a message). Therefor I have written the following patch, which will insert pseudo Attach: headers for each file, that is attached.

My C Skills are actually very limited since I have not used C for years, so I apologize for my code ;)

regards, Christian

Attachments

mutt_edit_attach.patch (2.2 kB) - added by chrisbra 6 months ago.
patch_mutt_attach_0.3.patch (3.8 kB) - added by chrisbra 6 months ago.

Change History

Changed 6 months ago by chrisbra

in reply to: ↑ description   Changed 6 months ago by chrisbra

  • cc cb@… added

Replying to chrisbra:

As you know, you can attach files when editing messages, using the pseudo Attach: header. Unfortunally this header is not displayed, whenever you re-edit a message (e.g. when you edit a postponed a message). Therefor I have written the following patch, which will insert pseudo Attach: headers for each file, that is attached.

Well, the patch is not complete. It's missing the part about freeing all attachments first. I am thinking on how to do it correctly.

Changed 6 months ago by chrisbra

  Changed 6 months ago by chrisbra

Ok, I think I have now a working version. The second patch was diffed against mutt-1.5.18.

Just to make sure what it does: When you have set edit_headers mutt will print pseudo Attach: header lines for each file that is attached to a message. This allows you to see what files are actually attached to your message when creating or re-editing the message. Additionally by deleting the Attach-headers, mutt will also delete the attachments. So it gives you control of your attachments when editing a message.

I think this is pretty convenient.

Do you think, this can be included into mutt? Any comments?

regards, Christian

Note: See TracTickets for help on using tickets.