From f6474bb6eaf1d4b9ef090fb01b4025c3e81e728a Mon Sep 17 00:00:00 2001 From: Martin Stubenschrott Date: Tue, 6 May 2008 15:26:38 +0000 Subject: [PATCH] [muttator] :empty[trash] command --- content/mail.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/content/mail.js b/content/mail.js index 3a38bb3b..af01ac94 100644 --- a/content/mail.js +++ b/content/mail.js @@ -533,6 +533,19 @@ liberator.Mail = function () "Move selected messages", function (args, special) { moveOrCopy(false, args); }); + liberator.commands.add(["empty[trash]"], + "Empty trash of the current account", + function (args, special) + { + if (args) + { + liberator.echoerr("E488: Trailing characters"); + return; + } + + goDoCommand("cmd_emptyTrash"); + }); + liberator.commands.add(["get[messages]"], "Check for new messages", function (args, special)