Skip to content

Commit 56c945f

Browse files
committed
[Refactor] Rework inline options to preferences window
since inline options are not supported anymore in Thunderbird 58+ https://wiki.mozilla.org/Thunderbird/Add-ons_Guide_57
1 parent 19b933e commit 56c945f

File tree

3 files changed

+39
-14
lines changed

3 files changed

+39
-14
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?xml version="1.0" ?>
2+
3+
<?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
4+
<?xml-stylesheet type="text/css" href="chrome://messenger/skin/preferences/preferences.css"?>
5+
6+
<prefwindow title="Received options" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
7+
<prefpane>
8+
<preferences>
9+
<preference id="pref_regexp" name="extensions.received.regexp" title="Regular expression with capturing parentheses" type="string" />
10+
</preferences>
11+
<hbox>
12+
<groupbox>
13+
<label control="regexp" value="Regular expression with capturing parentheses:" />
14+
<textbox id="regexp" size="140" preference="pref_regexp" />
15+
16+
<vbox style="height: 280px; overflow: auto">
17+
<groupbox>
18+
<caption label="Examples" />
19+
<description style="white-space: pre">
20+
(.*)
21+
22+
Displays all "Received" headers.
23+
24+
25+
^from (.+?) by mx\.example\.com
26+
27+
Displays the host where the email has come from.
28+
The regular expression should match the first "Received" header added by the recipient's smtp server.
29+
</description>
30+
</groupbox>
31+
</vbox>
32+
</groupbox>
33+
<vbox flex="1" />
34+
</hbox>
35+
</prefpane>
36+
</prefwindow>

install.rdf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@
99
<em:version>0.2.3</em:version>
1010
<em:type>2</em:type>
1111
<em:unpack>false</em:unpack>
12+
<em:optionsURL>chrome://received/content/options.xul</em:optionsURL>
13+
<em:optionsType>3</em:optionsType>
1214

1315
<em:targetApplication>
1416
<Description>
1517
<em:id>{3550f703-e582-4d05-9a08-453d09bdfdc6}</em:id>
1618
<em:minVersion>7.0</em:minVersion>
17-
<em:maxVersion>56.0</em:maxVersion>
19+
<em:maxVersion>61.0</em:maxVersion>
1820
</Description>
1921
</em:targetApplication>
2022

options.xul

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)