1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-07 06:15:47 +01:00

added 'y' command for quickly archiving messages

This commit is contained in:
Martin Stubenschrott
2008-04-29 21:00:24 +00:00
parent 3e2759a5e0
commit 8d5b251991

View File

@@ -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"); });