mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-04-02 17:03:33 +02:00
added 'y' command for quickly archiving messages
This commit is contained in:
@@ -157,6 +157,28 @@ liberator.Mail = function ()
|
|||||||
"Forward message",
|
"Forward message",
|
||||||
function () { goDoCommand("cmd_forward"); });
|
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"],
|
liberator.mappings.add(modes, ["F"],
|
||||||
"Forward message inline",
|
"Forward message inline",
|
||||||
function () { goDoCommand("cmd_forwardInline"); });
|
function () { goDoCommand("cmd_forwardInline"); });
|
||||||
|
|||||||
Reference in New Issue
Block a user