summaryrefslogtreecommitdiffstats
path: root/comm/mail/base/content/msgHdrPopup.inc.xhtml
blob: 3c0b9826bb578c038b2d002d7d29209d67641875 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
# 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/.

  <menupopup id="messageIdContext">
    <menuitem id="messageIdContext-messageIdTarget" disabled="true"/>
    <menuseparator id="messageIdContext-separator"/>
    <menuitem id="messageIdContext-openMessageForMsgId"
              label="&OpenMessageForMsgId.label;"
              accesskey="&OpenMessageForMsgId.accesskey;"
              oncommand="gMessageHeader.openMessage(event);"/>
    <menuitem id="messageIdContext-openBrowserWithMsgId"
              label="&OpenBrowserWithMsgId.label;"
              accesskey="&OpenBrowserWithMsgId.accesskey;"
              oncommand="gMessageHeader.openBrowser(event);"/>
    <menuitem id="messageIdContext-copyMessageId"
              label="&CopyMessageId.label;"
              accesskey="&CopyMessageId.accesskey;"
              oncommand="gMessageHeader.copyMessageId(event);"/>
  </menupopup>

  <menupopup id="attachmentItemContext"
             onpopupshowing="return onShowAttachmentItemContextMenu();"
             onpopuphiding="return onHideAttachmentItemContextMenu();">
    <menuitem id="context-openAttachment"
              label="&openAttachmentCmd.label;"
              accesskey="&openAttachmentCmd.accesskey;"
              oncommand="HandleMultipleAttachments(this.parentNode.attachments, 'open');"/>
    <menuitem id="context-saveAttachment"
              label="&saveAsAttachmentCmd.label;"
              accesskey="&saveAsAttachmentCmd.accesskey;"
              oncommand="HandleMultipleAttachments(this.parentNode.attachments, 'saveAs');"/>
    <menuseparator id="context-menu-separator"/>
    <menuitem id="context-detachAttachment"
              label="&detachAttachmentCmd.label;"
              accesskey="&detachAttachmentCmd.accesskey;"
              oncommand="HandleMultipleAttachments(this.parentNode.attachments, 'detach');"/>
    <menuitem id="context-deleteAttachment"
              label="&deleteAttachmentCmd.label;"
              accesskey="&deleteAttachmentCmd.accesskey;"
              oncommand="HandleMultipleAttachments(this.parentNode.attachments, 'delete');"/>
    <menuseparator id="context-menu-copyurl-separator"/>
    <menuitem id="context-copyAttachmentUrl"
              label="&copyLinkCmd.label;"
              accesskey="&copyLinkCmd.accesskey;"
              oncommand="HandleMultipleAttachments(this.parentNode.attachments, 'copyUrl');"/>
    <menuitem id="context-openFolder"
#ifdef XP_MACOSX
              label="&detachedAttachmentFolder.showMac.label;"
              accesskey="&detachedAttachmentFolder.showMac.accesskey;"
#else
              label="&detachedAttachmentFolder.show.label;"
              accesskey="&detachedAttachmentFolder.show.accesskey;"
#endif
              oncommand="HandleMultipleAttachments(this.parentNode.attachments, 'openFolder');"/>
#include ../../extensions/openpgp/content/ui/attachmentItemContext.inc.xhtml
  </menupopup>

  <menupopup id="attachmentListContext"
             onpopupshowing="goUpdateAttachmentCommands();">
    <menuitem id="context-openAllAttachments"
              label="&openAllAttachmentsCmd.label;"
              accesskey="&openAllAttachmentsCmd.accesskey;"
              command="cmd_openAllAttachments"/>
    <menuitem id="context-saveAllAttachments"
              label="&saveAllAttachmentsCmd.label;"
              accesskey="&saveAllAttachmentsCmd.accesskey;"
              command="cmd_saveAllAttachments"/>
    <menuseparator id="context-menu-separator-all"/>
    <menuitem id="context-detachAllAttachments"
              label="&detachAllAttachmentsCmd.label;"
              accesskey="&detachAllAttachmentsCmd.accesskey;"
              command="cmd_detachAllAttachments"/>
    <menuitem id="context-deleteAllAttachments"
              label="&deleteAllAttachmentsCmd.label;"
              accesskey="&deleteAllAttachmentsCmd.accesskey;"
              command="cmd_deleteAllAttachments"/>
  </menupopup>

  <menupopup id="attachment-toolbar-context-menu"
             onpopupshowing="return onShowAttachmentToolbarContextMenu(event);">
    <menuitem id="context-expandAttachmentBar"
              type="checkbox"
              label="&startExpandedCmd.label;"
              accesskey="&startExpandedCmd.accesskey;"
              oncommand="Services.prefs.setBoolPref('mailnews.attachments.display.start_expanded', this.getAttribute('checked'));"/>
  </menupopup>

  <menupopup id="emailAddressPopup"
             position="after_start"
             class="no-icon-menupopup">
    <menuitem id="emailAddressPlaceHolder"
              class="menuitem-iconic"
              disabled="true"/>
    <menuseparator/>
    <menuitem id="addToAddressBookItem"
              label="&AddDirectlyToAddressBook.label;"
              accesskey="&AddDirectlyToAddressBook.accesskey;"
              class="menuitem-iconic"
              oncommand="gMessageHeader.addContact(event);"/>
    <menuitem id="editContactItem" label="&EditContact1.label;" hidden="true"
              accesskey="&EditContact1.accesskey;"
              class="menuitem-iconic"
              oncommand="gMessageHeader.showContactEdit(event);"/>
    <menuitem id="viewContactItem" label="&ViewContact.label;" hidden="true"
              accesskey="&ViewContact.accesskey;"
              class="menuitem-iconic"
              oncommand="gMessageHeader.showContactEdit(event);"/>
    <menuitem id="sendMailToItem" label="&SendMessageTo.label;"
              accesskey="&SendMessageTo.accesskey;"
              class="menuitem-iconic"
              oncommand="gMessageHeader.composeMessage(event);"/>
    <menuitem id="copyEmailAddressItem" label="&CopyEmailAddress.label;"
              accesskey="&CopyEmailAddress.accesskey;"
              class="menuitem-iconic"
              oncommand="gMessageHeader.copyAddress(event)"/>
    <menuitem id="copyNameAndEmailAddressItem" label="&CopyNameAndEmailAddress.label;"
              accesskey="&CopyNameAndEmailAddress.accesskey;"
              class="menuitem-iconic"
              oncommand="gMessageHeader.copyAddress(event, true);"/>
    <menuseparator/>
    <menuitem id="searchKeysOpenPGP" data-l10n-id="openpgp-search-keys-openpgp"
              class="menuitem-iconic"
              oncommand="Enigmail.msg.searchKeysOnInternet(event)"/>
    <menuseparator/>
    <menuitem id="createFilterFrom" label="&CreateFilterFrom.label;"
              accesskey="&CreateFilterFrom.accesskey;"
              class="menuitem-iconic"
              oncommand="gMessageHeader.createFilter(event);"/>
  </menupopup>

  <menupopup id="copyPopup" class="no-icon-menupopup">
    <menuitem id="copyMenuitem"
              data-l10n-id="text-action-copy"
              class="menuitem-iconic"
              oncommand="gMessageHeader.copyString(event);"/>
    <menuitem id="copyCreateFilterFrom"
              label="&CreateFilterFrom.label;"
              accesskey="&CreateFilterFrom.accesskey;"
              class="menuitem-iconic"
              oncommand="gMessageHeader.createFilter(event);"/>
  </menupopup>

  <menupopup id="copyUrlPopup"
             popupanchor="bottomleft">
    <menuitem label="&copyLinkCmd.label;"
              accesskey="&copyLinkCmd.accesskey;"
              oncommand="gMessageHeader.copyWebsiteUrl(event);"/>
  </menupopup>

  <menupopup id="simpleCopyPopup" class="no-icon-menupopup">
    <menuitem id="copyMenuitem"
              data-l10n-id="text-action-copy"
              class="menuitem-iconic"
              oncommand="gMessageHeader.copyString(event);"/>
  </menupopup>

  <menupopup id="newsgroupPopup"
             position="after_start"
             class="newsgroupPopup no-icon-menupopup">
      <menuitem id="newsgroupPlaceHolder"
                class="menuitem-iconic"
                disabled="true"/>
      <menuseparator/>
      <menuitem id="sendMessageToNewsgroupItem"
                label="&SendMessageTo.label;"
                accesskey="&SendMessageTo.accesskey;"
                class="menuitem-iconic"
                oncommand="gMessageHeader.composeMessage(event);"/>
      <menuitem id="copyNewsgroupNameItem"
                label="&CopyNewsgroupName.label;"
                accesskey="&CopyNewsgroupName.accesskey;"
                class="menuitem-iconic"
                oncommand="gMessageHeader.copyAddress(event);"/>
      <menuitem id="copyNewsgroupURLItem"
                label="&CopyNewsgroupURL.label;"
                accesskey="&CopyNewsgroupURL.accesskey;"
                class="menuitem-iconic"
                oncommand="gMessageHeader.copyNewsgroupURL(event);"/>
      <menuseparator id="subscribeToNewsgroupSeparator"/>
      <menuitem id="subscribeToNewsgroupItem"
                label="&SubscribeToNewsgroup.label;"
                accesskey="&SubscribeToNewsgroup.accesskey;"
                class="menuitem-iconic"
                oncommand="gMessageHeader.subscribeToNewsgroup(event)"/>
  </menupopup>

  <menupopup id="remoteContentOptions" value=""
             onpopupshowing="onRemoteContentOptionsShowing(event);">
    <menuitem id="remoteContentOptionAllowForMsg"
              label="&remoteContentOptionsAllowForMsg.label;"
              accesskey="&remoteContentOptionsAllowForMsg.accesskey;"
              oncommand="LoadMsgWithRemoteContent();"/>
    <menuseparator id="remoteContentSettingsMenuSeparator"/>
    <menuitem id="editRemoteContentSettings"
#ifdef XP_WIN
              label="&editRemoteContentSettings.label;"
              accesskey="&editRemoteContentSettings.accesskey;"
#else
              label="&editRemoteContentSettingsUnix.label;"
              accesskey="&editRemoteContentSettingsUnix.accesskey;"
#endif
              oncommand="editRemoteContentSettings();"/>
    <menuseparator id="remoteContentOriginsMenuSeparator"/>
    <menuseparator id="remoteContentAllMenuSeparator"/>
    <menuitem id="remoteContentOptionAllowAll"
              oncommand="allowRemoteContentForAll(this.parentNode);"/>
  </menupopup>

  <menupopup id="phishingOptions">
    <menuitem id="phishingOptionIgnore"
              label="&phishingOptionIgnore.label;"
              accesskey="&phishingOptionIgnore.accesskey;"
              oncommand="IgnorePhishingWarning();"/>
    <menuitem id="phishingOptionSettings"
#ifdef XP_WIN
              label="&phishingOptionSettings.label;"
              accesskey="&phishingOptionSettings.accesskey;"
#else
              label="&phishingOptionSettingsUnix.label;"
              accesskey="&phishingOptionSettingsUnix.accesskey;"
#endif
              oncommand="OpenPhishingSettings();"/>
  </menupopup>