Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-67397

E-mail attachments straight to private files space ?

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.7.1, 3.7.2, 3.7.3, 3.8
    • Fix Version/s: None
    • Component/s: Email, Messages
    • Labels:
      None
    • Affected Branches:
      MOODLE_37_STABLE, MOODLE_38_STABLE

      Description

      Hi,

      I could only make it work with the following two changes:

      Path: moodle/lib/horde/imap/client/data
      File: fetch.php  (contain class Horde_Imap_Client_Data_Fetch)

      //Add this function to the end
      public function getStreamTemp () {
          return ($this->_data[6][1][t]);
      }
      

      Path: moodle/admin/tool/messageinbound/classes
      File: manager.php**

      private function process_message_part_attachment(.....){
         ...
         //delete this:
         $attachment->content=$partdata->getContents();
       
         //replace with:
         $attachment->content=$messagedata->getStreamTemp();
         ...
      }
      

      I'm not saying it's right how I did it or it wouldn't have any side effects but I don't have time to be Sherlock Holmes. Is there a problem with my platform settings or does this function really not work?

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            salex S. Alex
            Participants:
            Component watchers:
            Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: