CRM-4367 email2activity does not handle rtf and doc attachments

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.1.2
    • Fix Version/s: 2.2.3
    • Component/s: CiviCase
    • Labels:
      None

      Description

      i was testing email2activity.php and it does not include attachment that are .rtf and .doc type/extension. they are just simply not included in the database. it does recognise .jpg, .png, .gif

      i run email2activity.php from cron as a different user than www-data. i need to run it as virtual-email-user in order to allow it to handle emails properly. i had to include this user in www-data group and make some folders and files group +rw.

        Attachments

        1. CRM-4367.doc
          8 kB
          Deepak Srivastava
        2. Demo Home 2.2.rtf
          6 kB
          Deepak Srivastava

          Activity

          [CRM-4367] email2activity does not handle rtf and doc attachments
          Donald A. Lobo added a comment -


          We will fix for 2.2.x and then backport to 2.1.x for HRD

          Deepak Srivastava added a comment -

          I tested the Email2Activity script for both the formats - .doc and .rtf, for v2.1 and v2.2 and it worked fine.
          Attached are the two files that were used for testing the issues.

          Wojtek, Could you test the attached files on your setup and see how it goes.

          Wojtek Bogusz added a comment -

          hi Deepak, sorry, i did not check it well enough... it looks like there is a limit on number of attachment included into database. it happened that in my tests i was always sending 3 image attachment first and next were text attachments. and now i just discovered that any attachments beyond 3 are neglected. i do not know is this is a limitation that can be easily over-ridden, but it would be good to have a higher limit or no limit be the best.
          thank you, Wojtek

          Deepak Srivastava added a comment -

          Yes there is a limit. Try changing "Maximum Attachments" setting on "Administer CiviCRM » Global Settings » Settings - Miscellaneous" screen and see if that works.

            People

            • Assignee:
              Deepak Srivastava
              Reporter:
              Wojtek Bogusz

              Dates

              • Created:
                Updated:
                Resolved: