about summary refs log tree commit diff stats
path: root/commands/msg/mark.go
diff options
context:
space:
mode:
authorinwit <inwit@sindominio.net>2021-12-13 11:28:01 +0100
committerRobin Jarry <robin@jarry.cc>2021-12-13 14:56:39 +0100
commitbc593ac7cdb20621aba685987f2a92c9bd880358 (patch)
tree26af73a75c3f5d5b44e299b8f9e29acb12ee1c95 /commands/msg/mark.go
parentbc087d9b3099ec8215bfb111c9abeb1571407a28 (diff)
downloadaerc-bc593ac7cdb20621aba685987f2a92c9bd880358.tar.gz
recall: allow recalling messages from any folder
Recall fails when called outside of the "postpone" folder (usually
"Drafts"). This makes sense for postponed messages. However, sometimes
the user would like to re-edit and re-send an old, possibly sent,
message, which would serve as a basis for the new one.

This patch allows recall to work outside the postpone folder, thus
allowing for re-edition of any message.

In the original recall function, if the recalled message is found in the
"postpone" folder, once the message has been recalled, re-edited and
sent, the original draft is deleted. With this patch, when the message
is not in the "postpone" folder, the original message is not deleted.

Signed-off-by: inwit <inwit@sindominio.net>
Diffstat (limited to 'commands/msg/mark.go')
0 files changed, 0 insertions, 0 deletions