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:
@@ -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"); });
|
||||
|
||||
Reference in New Issue
Block a user