Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F36623619
enigmailAbOverlay.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
1 KB
Subscribers
None
enigmailAbOverlay.js
View Options
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
"use strict"
;
/* global Components: false, DirPaneHasFocus: false, GetSelectedAddressesFromDirTree: false, GetSelectedAddresses: false */
Components
.
utils
.
import
(
"resource://enigmail/funcs.jsm"
);
/*global EnigmailFuncs: false */
Components
.
utils
.
import
(
"resource://enigmail/windows.jsm"
);
/*global EnigmailWindows: false */
var
Enigmail
=
{
createRuleFromAddress
:
function
(
emailAddressNode
)
{
if
(
emailAddressNode
)
{
var
r
=
new
RegExp
(
"^"
+
emailAddressNode
.
protocol
);
var
emailAddress
=
emailAddressNode
.
href
.
replace
(
r
,
""
);
EnigmailWindows
.
createNewRule
(
window
,
emailAddress
);
}
},
createRuleFromCard
:
function
()
{
var
emailAddress
=
""
;
if
(
DirPaneHasFocus
())
emailAddress
=
GetSelectedAddressesFromDirTree
();
else
emailAddress
=
GetSelectedAddresses
();
if
(
emailAddress
)
EnigmailWindows
.
createNewRule
(
window
,
EnigmailFuncs
.
stripEmail
(
emailAddress
).
replace
(
/,/g
,
" "
));
}
};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Feb 26, 6:55 PM (1 d, 19 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
5c/a3/6fbd3ce990450131d9cf74ba5d7e
Attached To
rENIG Enigmail
Event Timeline
Log In to Comment