login/register

Snip!t from collection of Alan Dix

see all channels for Alan Dix

Snip
summary

102 function LoadMessageByUri(uri) 103 { 104 //dump("XXX... + uri + " vs " + gCurrentDisplayedMessage + "\n"); 105 i... gCurrentDisplayedMessage) 106 { 107 dump("fix this, get ... and the nsIMsgFolder from the uri...\n"); 108 /* 109 var... RDF.GetReso

mailnews/mailnews/base/resources/content/commandglue.js
http://lxr.mozilla.org/mailnews/source/mailnews/base/resou.../commandglue.js#100

Categories

/Channels/techie/thunderbird

[ go to category ]

For Snip

loading snip actions ...

For Page

loading url actions ...

102 function LoadMessageByUri(uri) 103 { 104 //dump("XXX LoadMessageByUri " + uri + " vs " + gCurrentDisplayedMessage + "\n"); 105 if(uri != gCurrentDisplayedMessage) 106 { 107 dump("fix this, get the nsIMsgDBHdr and the nsIMsgFolder from the uri...\n"); 108 /* 109 var resource = RDF.GetResource(uri); 110 var message = resource.QueryInterface(Components.interfaces.nsIMessage); 111 if (message) 112 setTitleFromFolder(message.msgFolder, message.mimef2DecodedSubject); 113 114 var nsIMsgFolder = Components.interfaces.nsIMsgFolder; 115 if (message.msgFolder.server.downloadOnBiff) 116 message.msgFolder.biffState = nsIMsgFolder.nsMsgBiffState_NoMail; 117 */ 118 119 gCurrentDisplayedMessage = uri; 120 gHaveLoadedMessage = true; 121 OpenURL(uri); 122 } 123 124 }

HTML

<a name="102" href="/mailnews/source/mailnews/base/resources/content/commandglue.js#102">102</a> function LoadMessageByUri(uri) <a name="103" href="/mailnews/source/mailnews/base/resources/content/commandglue.js#103">103</a> { <a name="104" href="/mailnews/source/mailnews/base/resources/content/commandglue.js#104">104</a> //dump("XXX LoadMessageByUri " + uri + " vs " + gCurrentDisplayedMessage + "\n"); <a name="105" href="/mailnews/source/mailnews/base/resources/content/commandglue.js#105">105</a> if(uri != gCurrentDisplayedMessage) <a name="106" href="/mailnews/source/mailnews/base/resources/content/commandglue.js#106">106</a> { <a name="107" href="/mailnews/source/mailnews/base/resources/content/commandglue.js#107">107</a> dump("fix this, get the nsIMsgDBHdr and the nsIMsgFolder from the uri...\n"); <a name="108" href="/mailnews/source/mailnews/base/resources/content/commandglue.js#108">108</a> /* <a name="109" href="/mailnews/source/mailnews/base/resources/content/commandglue.js#109">109</a> var resource = RDF.GetResource(uri); <a name="110" href="/mailnews/source/mailnews/base/resources/content/commandglue.js#110">110</a> var message = resource.QueryInterface(Components.interfaces.nsIMessage); <a name="111" href="/mailnews/source/mailnews/base/resources/content/commandglue.js#111">111</a> if (message) <a name="112" href="/mailnews/source/mailnews/base/resources/content/commandglue.js#112">112</a> setTitleFromFolder(message.msgFolder, message.mimef2DecodedSubject); <a name="113" href="/mailnews/source/mailnews/base/resources/content/commandglue.js#113">113</a> <a name="114" href="/mailnews/source/mailnews/base/resources/content/commandglue.js#114">114</a> var nsIMsgFolder = Components.interfaces.nsIMsgFolder; <a name="115" href="/mailnews/source/mailnews/base/resources/content/commandglue.js#115">115</a> if (message.msgFolder.server.downloadOnBiff) <a name="116" href="/mailnews/source/mailnews/base/resources/content/commandglue.js#116">116</a> message.msgFolder.biffState = nsIMsgFolder.nsMsgBiffState_NoMail; <a name="117" href="/mailnews/source/mailnews/base/resources/content/commandglue.js#117">117</a> */ <a name="118" href="/mailnews/source/mailnews/base/resources/content/commandglue.js#118">118</a> <a name="119" href="/mailnews/source/mailnews/base/resources/content/commandglue.js#119">119</a> gCurrentDisplayedMessage = uri; <a name="120" href="/mailnews/source/mailnews/base/resources/content/commandglue.js#120">120</a> gHaveLoadedMessage = true; <a name="121" href="/mailnews/source/mailnews/base/resources/content/commandglue.js#121">121</a> OpenURL(uri); <a name="122" href="/mailnews/source/mailnews/base/resources/content/commandglue.js#122">122</a> } <a name="123" href="/mailnews/source/mailnews/base/resources/content/commandglue.js#123">123</a> <a name="124" href="/mailnews/source/mailnews/base/resources/content/commandglue.js#124">124</a> }