From 8d5b251991ce678218457eed6b606efa6412a123 Mon Sep 17 00:00:00 2001 From: Martin Stubenschrott Date: Tue, 29 Apr 2008 21:00:24 +0000 Subject: [PATCH] added 'y' command for quickly archiving messages --- content/mail.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) 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"); });