Comment on attachment 200039 Revised from last patch
>? patch.txt >Index: resources/content/messageWindow.xul >=================================================================== >RCS file: /cvsroot/mozilla/mailnews/base/resources/content/messageWindow.xul,v >retrieving revision 1.81.2.1 >diff -u -w -r1.81.2.1 messageWindow.xul >--- resources/content/messageWindow.xul 22 Sep 2005 13:38:25 -0000 1.81.2.1 >+++ resources/content/messageWindow.xul 19 Oct 2005 03:46:40 -0000 >@@ -126,6 +126,9 @@ > <menuitem label="&CreateFilter.label;" > accesskey="&CreateFilter.accesskey;" > command="cmd_createFilterFromPopup"/> >+ <menuitem label="&CopyMailHeader.label;" >+ accesskey="&CopyMailHeader.accesskey;" >+ oncommand = "CopyMailHeader()"/> > </popup> > > <popup id="allHeadersPopup" onpopupshowing="return fillAllHeadersPopup(document.popupNode);" popupanchor="bottomleft"> >Index: resources/content/messenger.xul >=================================================================== >RCS file: /cvsroot/mozilla/mailnews/base/resources/content/messenger.xul,v >retrieving revision 1.258.2.1 >diff -u -w -r1.258.2.1 messenger.xul >--- resources/content/messenger.xul 22 Sep 2005 13:38:25 -0000 1.258.2.1 >+++ resources/content/messenger.xul 19 Oct 2005 03:47:09 -0000 >@@ -143,6 +143,10 @@ > <menuitem label="&CreateFilter.label;" > accesskey="&CreateFilter.accesskey;" > command="cmd_createFilterFromPopup"/> >+ <menuitem label="&CopyMailHeader.label;" >+ accesskey="&CopyMailHeader.accesskey;" >+ oncommand = "CopyMailHeader()"/> >+ > </popup> > > <popup id="allHeadersPopup" onpopupshowing="return fillAllHeadersPopup(document.popupNode);" popupanchor="bottomleft"> >Index: resources/content/msgHdrViewOverlay.js >=================================================================== >RCS file: /cvsroot/mozilla/mailnews/base/resources/content/msgHdrViewOverlay.js,v >retrieving revision 1.141.2.1 >diff -u -w -r1.141.2.1 msgHdrViewOverlay.js >--- resources/content/msgHdrViewOverlay.js 19 Sep 2005 23:26:28 -0000 1.141.2.1 >+++ resources/content/msgHdrViewOverlay.js 19 Oct 2005 03:47:29 -0000 >@@ -916,6 +916,26 @@ > } > } > >+// CopyMailHeader copy the major part of mailheader, it enable user to paste the header to other files as they needed >+ >+function CopyMailHeader() >+{ >+ var header=""; >+ for(headername in currentHeaderData) >+ { >+ if(headername in gExpandedHeaderView ) >+ { >+ var headerfield=currentHeaderData[headername]; >+ header = header+headername+": "+headerfield.headerValue+'\n'; >+ } >+ } >+ >+ var contractid = "@mozilla.org/widget/clipboardhelper;1"; >+ var iid = Components.interfaces.nsIClipboardHelper; >+ var clipboard = Components.classes[contractid].getService(iid); >+ clipboard.copyString(header); >+} >+ > // createnewAttachmentInfo --> constructor method for creating new attachment object which goes into the > // data attachment array. > function createNewAttachmentInfo(contentType, url, displayName, uri, isExternalAttachment) >Index: resources/content/msgHdrViewOverlay.xul >=================================================================== >RCS file: /cvsroot/mozilla/mailnews/base/resources/content/msgHdrViewOverlay.xul,v >retrieving revision 1.64 >diff -u -w -r1.64 msgHdrViewOverlay.xul >Index: resources/locale/en-US/messenger.dtd >=================================================================== >RCS file: /cvsroot/mozilla/mailnews/base/resources/locale/en-US/messenger.dtd,v >retrieving revision 1.202.2.1 >diff -u -w -r1.202.2.1 messenger.dtd >--- resources/locale/en-US/messenger.dtd 3 Sep 2005 00:23:38 -0000 1.202.2.1 >+++ resources/locale/en-US/messenger.dtd 19 Oct 2005 03:47:37 -0000 >@@ -564,6 +564,8 @@ > <!ENTITY CreateFilter.accesskey "F"> > <!ENTITY BlockAddress.label "Block Address"> > <!ENTITY BlockAddress.accesskey "A"> >+<!ENTITY CopyMailHeader.label "Copy Mail Header"> >+<!ENTITY CopyMailHeader.accesskey "H"> > > <!---SearchBar--> > <!-- also used by addressbook -->
Comment on attachment 200039
Revised from last patch
>? patch.txt content/ messageWindow. xul ======= ======= ======= ======= ======= ======= ======= ======= ===== mozilla/ mailnews/ base/resources/ content/ messageWindow. xul,v content/ messageWindow. xul 22 Sep 2005 13:38:25 -0000 1.81.2.1 content/ messageWindow. xul 19 Oct 2005 03:46:40 -0000 &CreateFilter. label;" "&CreateFilter. accesskey; " "cmd_createFilt erFromPopup" /> &CopyMailHeader .label; " "&CopyMailHeade r.accesskey; " ()"/> opup" onpopupshowing= "return fillAllHeadersP opup(document. popupNode) ;" popupanchor= "bottomleft" > content/ messenger. xul ======= ======= ======= ======= ======= ======= ======= ======= ===== mozilla/ mailnews/ base/resources/ content/ messenger. xul,v content/ messenger. xul 22 Sep 2005 13:38:25 -0000 1.258.2.1 content/ messenger. xul 19 Oct 2005 03:47:09 -0000 &CreateFilter. label;" "&CreateFilter. accesskey; " "cmd_createFilt erFromPopup" /> &CopyMailHeader .label; " "&CopyMailHeade r.accesskey; " ()"/> opup" onpopupshowing= "return fillAllHeadersP opup(document. popupNode) ;" popupanchor= "bottomleft" > content/ msgHdrViewOverl ay.js ======= ======= ======= ======= ======= ======= ======= ======= ===== mozilla/ mailnews/ base/resources/ content/ msgHdrViewOverl ay.js,v ay.js content/ msgHdrViewOverl ay.js 19 Sep 2005 23:26:28 -0000 1.141.2.1 content/ msgHdrViewOverl ay.js 19 Oct 2005 03:47:29 -0000 currentHeaderDa ta[headername] ; headername+ ": "+headerfield. headerValue+ '\n'; org/widget/ clipboardhelper ;1"; interfaces. nsIClipboardHel per; classes[ contractid] .getService( iid); copyString( header) ; mentInfo --> constructor method for creating new attachment object which goes into the mentInfo( contentType, url, displayName, uri, isExternalAttac hment) content/ msgHdrViewOverl ay.xul ======= ======= ======= ======= ======= ======= ======= ======= ===== mozilla/ mailnews/ base/resources/ content/ msgHdrViewOverl ay.xul, v ay.xul locale/ en-US/messenger .dtd ======= ======= ======= ======= ======= ======= ======= ======= ===== mozilla/ mailnews/ base/resources/ locale/ en-US/messenger .dtd,v locale/ en-US/messenger .dtd 3 Sep 2005 00:23:38 -0000 1.202.2.1 locale/ en-US/messenger .dtd 19 Oct 2005 03:47:37 -0000 accesskey "F"> accesskey "A"> label "Copy Mail Header"> accesskey "H">
>Index: resources/
>======
>RCS file: /cvsroot/
>retrieving revision 1.81.2.1
>diff -u -w -r1.81.2.1 messageWindow.xul
>--- resources/
>+++ resources/
>@@ -126,6 +126,9 @@
> <menuitem label="
> accesskey=
> command=
>+ <menuitem label="
>+ accesskey=
>+ oncommand = "CopyMailHeader
> </popup>
>
> <popup id="allHeadersP
>Index: resources/
>======
>RCS file: /cvsroot/
>retrieving revision 1.258.2.1
>diff -u -w -r1.258.2.1 messenger.xul
>--- resources/
>+++ resources/
>@@ -143,6 +143,10 @@
> <menuitem label="
> accesskey=
> command=
>+ <menuitem label="
>+ accesskey=
>+ oncommand = "CopyMailHeader
>+
> </popup>
>
> <popup id="allHeadersP
>Index: resources/
>======
>RCS file: /cvsroot/
>retrieving revision 1.141.2.1
>diff -u -w -r1.141.2.1 msgHdrViewOverl
>--- resources/
>+++ resources/
>@@ -916,6 +916,26 @@
> }
> }
>
>+// CopyMailHeader copy the major part of mailheader, it enable user to paste the header to other files as they needed
>+
>+function CopyMailHeader()
>+{
>+ var header="";
>+ for(headername in currentHeaderData)
>+ {
>+ if(headername in gExpandedHeaderView )
>+ {
>+ var headerfield=
>+ header = header+
>+ }
>+ }
>+
>+ var contractid = "@mozilla.
>+ var iid = Components.
>+ var clipboard = Components.
>+ clipboard.
>+}
>+
> // createnewAttach
> // data attachment array.
> function createNewAttach
>Index: resources/
>======
>RCS file: /cvsroot/
>retrieving revision 1.64
>diff -u -w -r1.64 msgHdrViewOverl
>Index: resources/
>======
>RCS file: /cvsroot/
>retrieving revision 1.202.2.1
>diff -u -w -r1.202.2.1 messenger.dtd
>--- resources/
>+++ resources/
>@@ -564,6 +564,8 @@
> <!ENTITY CreateFilter.
> <!ENTITY BlockAddress.label "Block Address">
> <!ENTITY BlockAddress.
>+<!ENTITY CopyMailHeader.
>+<!ENTITY CopyMailHeader.
>
> <!---SearchBar-->
> <!-- also used by addressbook -->