Opush
  1. Opush
  2. OP-136

CLONE 3.x - T#11012 T#11601 Cannot parse email containing an attachment with multiple key-value name

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Normal Normal
    • Resolution: Fixed
    • Affects Version/s: 3.0.3
    • Fix Version/s: 3.1.1
    • Labels:
      None
    • Rank:
      6554

      Description

      Pre-conditions

      OBM on Debian (tested with wheezy and Cyrus v2.4.16-Debian-2.4.16-4+deb7u2).
      Cannot be reproduced with OBM on CentOS as I can't import the email, it complains by saying : A005 NO Message contains invalid header

      Have an email containing an attachment with multiple key-value entry for its name like :

      
      --Boundary_(ID_qICUBLUGegfH+OcwQRmMAw)
      Content-id: <3b1a53bf-8776-4156-0178-cb5d38fdcd72@icloud.com>
      Content-type: application/octet-stream; name*1*=utf-8''%42%41%20%2B%20%51%53%20%5F%20%41%73; name*2*=%73%75%72%61%6E%63%65%20%44%C3%A9%63; name*3*=%C3%A8%73%20%70%6F%75%72%20%49%6E%76; name*4*=%65%73%74%69%73%73%65%75%72%2E%70%64%66
      Content-transfer-encoding: BASE64
      Content-disposition: attachment; filename*1*=utf-8''%42%41%20%2B%20%51%53%20%5F%20%41%73; filename*2*=%73%75%72%61%6E%63%65%20%44%C3%A9%63; filename*3*=%C3%A8%73%20%70%6F%75%72%20%49%6E%76; filename*4*=%65%73%74%69%73%73%65%75%72%2E%70%64%66
      
      JVBERi0xLjUNJeLjz9MNCjEwODUgMCBvYmoNPDwvTGluZWFyaXplZCAxL0wg
      MjU4MjY1L08gMTA4Ny9FIDczMTM4L04gNy9UIDIzNjQ0OC9IIFsgMTQ5NiA1
      NDldPj4NZW5kb2JqDSAgICAgICAgICAgIA14cmVmDTEwODUgNjANMDAwMDAw
      MDAxNiAwMDAwMCBuDQowMDAwMDAyMjQ5IDAwMDAwIG4NCjAwMDAwMDI0MTUg
      MDAwMDAgbg0KMDAwMDAwMzAxNSAwMDAwMCBuDQowMDAwMDAzNDk5IDAwMDAw
      

      Reproduction steps

      1. As usera, I have such email in my INBOX
      2. As usera, I try to synchronize my INBOX

      Current behavior

      1. I can't synchronize my INBOX

      Expected behavior

      1. I can synchronize my INBOX and receive the mail
      1. 33502.eml
        1.86 MB
        Lionel MOREIRA

        Issue Links

          Activity

          Lionel MOREIRA made changes -
          Field Original Value New Value
          Attachment 33502.eml [ 14211 ]
          Lionel MOREIRA made changes -
          Summary T#11012 Cannot parse email containing an attachment with multiple key-value name T#11012 T#11601 Cannot parse email containing an attachment with multiple key-value name
          David Dolcimascolo made changes -
          Link This issue is cloned by OP-222 [ OP-222 ]
          Thomas HILAIRE made changes -
          Assignee Matthieu EXT_BAECHLER [ mbaechler@linagora.com ] Thomas HILAIRE [ thilaire@linagora.com ]
          Thomas HILAIRE made changes -
          Description h4. Pre-conditions
          Have an email containing an attachment with multiple key-value entry for its name like :
          {code}

          --Boundary_(ID_qICUBLUGegfH+OcwQRmMAw)
          Content-id: <3b1a53bf-8776-4156-0178-cb5d38fdcd72@icloud.com>
          Content-type: application/octet-stream; name*1*=utf-8''%42%41%20%2B%20%51%53%20%5F%20%41%73; name*2*=%73%75%72%61%6E%63%65%20%44%C3%A9%63; name*3*=%C3%A8%73%20%70%6F%75%72%20%49%6E%76; name*4*=%65%73%74%69%73%73%65%75%72%2E%70%64%66
          Content-transfer-encoding: BASE64
          Content-disposition: attachment; filename*1*=utf-8''%42%41%20%2B%20%51%53%20%5F%20%41%73; filename*2*=%73%75%72%61%6E%63%65%20%44%C3%A9%63; filename*3*=%C3%A8%73%20%70%6F%75%72%20%49%6E%76; filename*4*=%65%73%74%69%73%73%65%75%72%2E%70%64%66

          JVBERi0xLjUNJeLjz9MNCjEwODUgMCBvYmoNPDwvTGluZWFyaXplZCAxL0wg
          MjU4MjY1L08gMTA4Ny9FIDczMTM4L04gNy9UIDIzNjQ0OC9IIFsgMTQ5NiA1
          NDldPj4NZW5kb2JqDSAgICAgICAgICAgIA14cmVmDTEwODUgNjANMDAwMDAw
          MDAxNiAwMDAwMCBuDQowMDAwMDAyMjQ5IDAwMDAwIG4NCjAwMDAwMDI0MTUg
          MDAwMDAgbg0KMDAwMDAwMzAxNSAwMDAwMCBuDQowMDAwMDAzNDk5IDAwMDAw
          {code}

          h4. Reproduction steps
          # As _usera_, I have such email in my INBOX
          # As _usera_, I try to synchronize my INBOX

          h4. Current behavior
          # {color:red}I can't synchronize my INBOX {color}

          h4. Expected behavior
          # {color:green}I can synchronize my INBOX and receive the mail{color}
          h4. Pre-conditions
          OBM on Debian (tested with wheezy and Cyrus v2.4.16-Debian-2.4.16-4+deb7u2).
          Cannot be reproduced with OBM on CentOS as I can't import the email, it complains by saying : A005 NO Message contains invalid header

          Have an email containing an attachment with multiple key-value entry for its name like :
          {code}

          --Boundary_(ID_qICUBLUGegfH+OcwQRmMAw)
          Content-id: <3b1a53bf-8776-4156-0178-cb5d38fdcd72@icloud.com>
          Content-type: application/octet-stream; name*1*=utf-8''%42%41%20%2B%20%51%53%20%5F%20%41%73; name*2*=%73%75%72%61%6E%63%65%20%44%C3%A9%63; name*3*=%C3%A8%73%20%70%6F%75%72%20%49%6E%76; name*4*=%65%73%74%69%73%73%65%75%72%2E%70%64%66
          Content-transfer-encoding: BASE64
          Content-disposition: attachment; filename*1*=utf-8''%42%41%20%2B%20%51%53%20%5F%20%41%73; filename*2*=%73%75%72%61%6E%63%65%20%44%C3%A9%63; filename*3*=%C3%A8%73%20%70%6F%75%72%20%49%6E%76; filename*4*=%65%73%74%69%73%73%65%75%72%2E%70%64%66

          JVBERi0xLjUNJeLjz9MNCjEwODUgMCBvYmoNPDwvTGluZWFyaXplZCAxL0wg
          MjU4MjY1L08gMTA4Ny9FIDczMTM4L04gNy9UIDIzNjQ0OC9IIFsgMTQ5NiA1
          NDldPj4NZW5kb2JqDSAgICAgICAgICAgIA14cmVmDTEwODUgNjANMDAwMDAw
          MDAxNiAwMDAwMCBuDQowMDAwMDAyMjQ5IDAwMDAwIG4NCjAwMDAwMDI0MTUg
          MDAwMDAgbg0KMDAwMDAwMzAxNSAwMDAwMCBuDQowMDAwMDAzNDk5IDAwMDAw
          {code}

          h4. Reproduction steps
          # As _usera_, I have such email in my INBOX
          # As _usera_, I try to synchronize my INBOX

          h4. Current behavior
          # {color:red}I can't synchronize my INBOX {color}

          h4. Expected behavior
          # {color:green}I can synchronize my INBOX and receive the mail{color}
          Thomas HILAIRE made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Thomas HILAIRE made changes -
          Status In Progress [ 3 ] In Review [ 10001 ]
          Thomas HILAIRE made changes -
          Summary T#11012 T#11601 Cannot parse email containing an attachment with multiple key-value name CLONE 3.x - T#11012 T#11601 Cannot parse email containing an attachment with multiple key-value name
          Thomas HILAIRE made changes -
          Fix Version/s 3.1.1 [ 12801 ]
          Thomas HILAIRE made changes -
          Status In Review [ 10001 ] Ready To Merge [ 10002 ]
          Resolution Fixed [ 1 ]
          Thomas HILAIRE made changes -
          Status Ready To Merge [ 10002 ] Resolved [ 5 ]
          Stephane COLSON made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Thomas HILAIRE
              Reporter:
              Thomas HILAIRE
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: