Remove references to getDownloadAllList()
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 3 Dec 2008 12:05:07 +0000 (05:05 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 3 Dec 2008 18:27:09 +0000 (11:27 -0700)
imp/lib/Compose.php
imp/lib/Message.php
imp/lib/UI/Compose.php

index f5088f4..745f7fa 100644 (file)
@@ -1919,9 +1919,6 @@ class IMP_Compose
      * @param IMP_Contents &$contents  An IMP_Contents object.
      * @param array $options           Additional options:
      * <pre>
-     * 'downloadall' - (array) Use the algorithm in
-     *                 IMP_Contents::getDownloadAllList() to determine the
-     *                 list of attachments?
      * 'notify' - (boolean) Add notification message on errors?
      * 'skip' - (array) Skip these MIME IDs.
      * </pre>
@@ -1932,9 +1929,7 @@ class IMP_Compose
     public function attachFilesFromMessage(&$contents, $options = array())
     {
         $mime_message = $contents->getMIMEMessage();
-        $dl_list = empty($options['downloadall'])
-            ? array_slice(array_keys($mime_message->contentTypeMap()), 1)
-            : $contents->getDownloadAllList();
+        $dl_list = array_slice(array_keys($mime_message->contentTypeMap()), 1);
         if (!empty($options['skip'])) {
             $dl_list = array_diff($dl_list, $options['skip']);
         }
index 1875ed8..1b89a10 100644 (file)
@@ -473,7 +473,8 @@ class IMP_Message
 
         /* Loop through all to-be-stripped mime parts. */
         if (is_null($partid)) {
-            $partids = $contents->getDownloadAllList();
+            // TODO
+            $partids = array_slice(array_keys($message->contentTypeMap()), 1);
         } else {
             /* Sanity checking: make sure part does not live under a
              * message/rfc822 part. */
index 4b40498..0eb8748 100644 (file)
@@ -106,7 +106,7 @@ class IMP_UI_Compose
                 $fwd_msg['headers']['subject'] = $subject_header;
             }
         } elseif ($type == 'forward_attachments') {
-            $imp_compose->attachFilesFromMessage($imp_contents, array('downloadall' => true, 'notify' => true));
+            $imp_compose->attachFilesFromMessage($imp_contents, array('notify' => true));
         }
 
         return $fwd_msg;