James Mime4j
  1. James Mime4j
  2. MIME4J-138

DecoderUtil.decodeEncodedWords() fails if encoded-text starts with an equals sign

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.6
    • Fix Version/s: 0.6.1, 0.7
    • Component/s: None
    • Labels:
      None

      Description

      For example "=?utf-8?Q?=20test?=" should be decoded as " test". Instead it does not get decoded at all.

      The problem is that DecoderUtil.decodeEncodedWords() falsely identifies =?utf-8?Q?= as the encoded word which cannot be decoded.

      1. RegexDecoderUtil.java
        4 kB
        Aron Wieck
      2. DecoderUtil.diff
        13 kB
        Aron Wieck
      3. DecoderUtil.java
        11 kB
        Aron Wieck
      4. mime4j-138.patch
        8 kB
        Markus Wiederkehr

        Activity

        Markus Wiederkehr created issue -
        Markus Wiederkehr made changes -
        Field Original Value New Value
        Assignee Markus Wiederkehr [ wmax ]
        Aron Wieck made changes -
        Attachment RegexDecoderUtil.java [ 12416865 ]
        Aron Wieck made changes -
        Attachment DecoderUtil.diff [ 12416869 ]
        Attachment DecoderUtil.java [ 12416870 ]
        Markus Wiederkehr made changes -
        Attachment mime4j-138.patch [ 12416903 ]
        Markus Wiederkehr made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Norman Maurer made changes -
        Fix Version/s 0.6.1 [ 12316030 ]

          People

          • Assignee:
            Markus Wiederkehr
            Reporter:
            Markus Wiederkehr
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development