Bug #249650 --> Add support for a website header to the message header pane for

the Thunderbird RSS reader.


git-svn-id: svn://10.0.0.236/branches/AVIARY_1_0_20040515_BRANCH@158730 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
scott%scott-macgregor.org
2004-07-04 06:19:15 +00:00
parent 65a6727fe5
commit 3c9322eb13
8 changed files with 37 additions and 1 deletions

View File

@@ -61,6 +61,10 @@ mail-headerfield {
-moz-binding: url("chrome://messenger/content/mailWidgets.xml#mail-headerfield");
}
mail-urlfield {
-moz-binding: url("chrome://messenger/content/mailWidgets.xml#mail-urlfield");
}
searchattribute {
-moz-binding: url("chrome://messenger/content/mailWidgets.xml#searchattribute");
}

View File

@@ -110,7 +110,8 @@ var gExpandedHeaderList = [ {name:"subject"},
{name:"cc", useToggle:true, outputFunction:OutputEmailAddresses},
{name:"bcc", useToggle:true, outputFunction:OutputEmailAddresses},
{name:"newsgroups", outputFunction:OutputNewsgroups},
{name:"followup-to", outputFunction:OutputNewsgroups} ];
{name:"followup-to", outputFunction:OutputNewsgroups},
{name:"content-base"} ];
// Now, for each view the message pane can generate, we need a global table of headerEntries. These
// header entry objects are generated dynamically based on the static date in the header lists (see above)

View File

@@ -120,6 +120,7 @@
<mail-headerfield keywordrelated="true" id="expandednewsgroupsBox" label="&newsgroupsField.label;" collapsed="true"/>
<mail-headerfield keywordrelated="true" id="expandedfollowup-toBox" label="&followupToField.label;" collapsed="true"/>
<mail-headerfield keywordrelated="true" id="expandeduser-agentBox" label="&userAgentField.label;" collapsed="true"/>
<mail-urlfield keywordrelated="true" id="expandedcontent-baseBox" label="&originalWebsite.label;" collapsed="true"/>
</vbox>
<vbox id="expandedKeywordBox">

View File

@@ -151,6 +151,16 @@ description[selectable="true"]:focus > descriptionitem[selected="true"]
padding: 0px;
}
.headerValueUrl {
cursor: pointer;
color: #0000FF;
text-decoration: underline;
}
.headerValueUrl:hover {
color: red;
}
.subjectvalue {
font-weight: bold;
background-color: transparent;

View File

@@ -135,6 +135,12 @@ description[selectable="true"]:focus > descriptionitem[selected="true"]
background-color: transparent;
}
.headerValueUrl {
cursor: pointer;
color: #0000FF;
text-decoration: underline;
}
.subjectvalue {
font-weight: bold;
background-color: transparent;
@@ -150,6 +156,7 @@ description[selectable="true"]:focus > descriptionitem[selected="true"]
background-color: transparent;
}
.headerValueUrl:hover,
.emailDisplayButton:hover {
color: #FF0000;
}

View File

@@ -612,6 +612,17 @@
</implementation>
</binding>
<binding id="mail-urlfield" extends="chrome://messenger/content/mailWidgets.xml#mail-headerfield">
<content>
<xul:hbox class="headerNameBox" align="start">
<xul:label class="headerName" xbl:inherits="value=label" flex="1"/>
</xul:hbox>
<xul:label originalclass="headerValue plain headerValueUrl" onclick="if (!event.button) messenger.launchExternalURL(event.target.value);"
appendoriginalclass="true" keywordrelated="true" class="headerValue plain headerValueUrl"
anonid="headerValue" flex="1" readonly="true"/>
</content>
</binding>
<binding id="mail-emailheaderfield">
<content>
<xul:hbox class="headerNameBox" align="start">

View File

@@ -32,6 +32,7 @@ Rights Reserved.
<!ENTITY dateField.label "Date: ">
<!ENTITY userAgentField.label "User-Agent: ">
<!ENTITY originalWebsite.label "Website: ">
<!ENTITY saveAll.label "Save All..">
<!ENTITY editMessage.label "Edit Draft...">

View File

@@ -189,6 +189,7 @@ nsresult nsMimeHtmlDisplayEmitter::BroadcastHeaders(nsIMsgHeaderSink * aHeaderSi
nsCRT::strcasecmp("bcc", headerInfo->name) && nsCRT::strcasecmp("followup-to", headerInfo->name) &&
nsCRT::strcasecmp("reply-to", headerInfo->name) && nsCRT::strcasecmp("subject", headerInfo->name) &&
nsCRT::strcasecmp("organization", headerInfo->name) && nsCRT::strcasecmp("user-agent", headerInfo->name) &&
nsCRT::strcasecmp("content-base", headerInfo->name) &&
nsCRT::strcasecmp("date", headerInfo->name) && nsCRT::strcasecmp("x-mailer", headerInfo->name))
continue;
}