1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-08 12:04:12 +01:00

tab related mappings for muttator, thanks teramako

This commit is contained in:
Martin Stubenschrott
2008-06-02 14:20:28 +00:00
parent 20a672a961
commit e49aed94df
6 changed files with 314 additions and 238 deletions

View File

@@ -82,7 +82,7 @@ liberator.Addressbook = function () //{{{
{
to = gDBView.hdrForFirstSelectedMessage.mime2DecodedAuthor;
}
catch (e) { liberator.echoerr("Exxx: No message is selected");}
catch (e) { liberator.beep();}
if (!to)
return;
@@ -93,7 +93,8 @@ liberator.Addressbook = function () //{{{
if (/^\S+\s+\S+\s*$/.test(displayName))
{
var names = displayName.split(/\s+/);
displayName = "-firstname=" + names[0] + " -lastname=" + names[1];
displayName = "-firstname=" + names[0].replace(/"/g, "")
+ " -lastname=" + names[1].replace(/"/g, "");
}
else
{
@@ -140,7 +141,7 @@ liberator.Addressbook = function () //{{{
[["-name", "-n"], liberator.commands.OPTION_STRING]]
});
liberator.commands.add(["contacts", "abook"],
liberator.commands.add(["contacts", "addr[essbook]"],
"List or open multiple addresses",
function (args, special) { liberator.addressbook.list(args, special); });