DIMP.conf.msg_index = r.index;
DIMP.conf.msg_folder = r.folder;
- // Add subject/priority
+ // Add subject
tmp = pm.select('.subject');
tmp.invoke('update', r.subject === null ? '[' + DIMP.text.badsubject + ']' : r.subject);
- switch (r.priority) {
- case 'high':
- case 'low':
- // Can't use invoke() here - new Element must be created for
- // each object.
- tmp.each(function(t) {
- t.insert({ top: new Element('DIV', { className: 'msgflags flag' + r.priority.capitalize() + 'priority' }) });
- });
- break;
- }
// Add date
$('msgHeadersColl').select('.date').invoke('update', r.minidate);
* 'folder' - The IMAP folder
* 'index' - The IMAP UID
* 'msgtext' - The text of the message
- * 'priority' - The X-Priority of the message ('low', 'high', 'normal')
* 'to' - The To addresses
*
* FOR PREVIEW MODE:
* 'bcc' - The Bcc addresses
* 'headers' - An array of headers (not including basic headers)
* 'list_info' - List information.
+ * 'priority' - The X-Priority of the message ('low', 'high', 'normal')
* 'replyTo' - The Reply-to addresses
* </pre>
*/
: htmlspecialchars(_("[No Subject]"));
/* Get X-Priority. */
- $result['priority'] = $imp_ui->getXpriority($mime_headers->getValue('x-priority'));
+ if (!$preview) {
+ $result['priority'] = $imp_ui->getXpriority($mime_headers->getValue('x-priority'));
+ }
// Create message text and attachment list.
$parts_list = $imp_contents->getContentTypeMap();