diff --git a/content/mail.js b/content/mail.js index c4fdba18..b86a3c1b 100644 --- a/content/mail.js +++ b/content/mail.js @@ -157,6 +157,28 @@ liberator.Mail = function () "Forward message", function () { goDoCommand("cmd_forward"); }); + liberator.mappings.add(modes, ["y"], + "Archive message", + function () + { + var folder = liberator.mail.getFolders("Archive")[0]; + if (!folder) + { + liberator.echoerr("No Archive folder found"); + return; + } + + var count = gDBView.selection.count; + if (!count) + { + liberator.beep(); + return; + } + + MsgMoveMessage(folder.URI); + liberator.echo(count + " messages moved to: Archive"); + }); + liberator.mappings.add(modes, ["F"], "Forward message inline", function () { goDoCommand("cmd_forwardInline"); });