Don't display print links in attachment list
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 4 Feb 2010 04:58:50 +0000 (21:58 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 4 Feb 2010 04:58:50 +0000 (21:58 -0700)
imp/lib/Views/ShowMessage.php
imp/message.php

index 88f09ca..a07c913 100644 (file)
@@ -254,7 +254,8 @@ class IMP_Views_ShowMessage
             IMP_Contents::SUMMARY_DOWNLOAD_ZIP |
             IMP_Contents::SUMMARY_PRINT;
 
-        $part_info = $part_info_display = array('icon', 'description', 'size', 'download', 'download_zip', 'print');
+        $part_info = $part_info_display = array('icon', 'description', 'size', 'download', 'download_zip');
+        $part_info_display[] = 'print';
 
         /* Do MDN processing now. */
         if ($imp_ui->MDNCheck($mailbox, $uid, $mime_headers)) {
index a801bce..3bb26ce 100644 (file)
@@ -574,12 +574,13 @@ foreach ($all_list_headers as $head => $val) {
 
 /* Determine the fields that will appear in the MIME info entries. */
 $part_info = $part_info_display = array('icon', 'description', 'size');
-$part_info_action = array('download', 'download_zip', 'img_save', 'strip', 'print');
+$part_info_action = array('download', 'download_zip', 'img_save', 'strip');
+$part_info_bodyonly = array('print');
 
 $show_parts = Horde_Util::getFormData('show_parts', $prefs->getValue('parts_display'));
 $strip_atc = $prefs->getValue('strip_attachments');
 
-$part_info_display = array_merge($part_info_display, $part_info_action);
+$part_info_display = array_merge($part_info_display, $part_info_action, $part_info_bodyonly);
 $contents_mask = IMP_Contents::SUMMARY_BYTES |
     IMP_Contents::SUMMARY_SIZE |
     IMP_Contents::SUMMARY_ICON |