Uploaded image for project: 'James jSieve'
  1. James jSieve
  2. JSIEVE-57

Parse failure with multi-line form when the line begins with a dot

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.2
    • Fix Version/s: 0.4
    • Component/s: JSieve (Main)
    • Labels:
      None

      Description

      I'm having some trouble with dot-stuffing in a multi-line form. When I try to parse the script below, I get a syntax exception on the line that starts with "..":

      org.apache.jsieve.parser.generated.TokenMgrError: Lexical error at line 8, column 1. Encountered: "." (46), after : ""

      require ["fileinto", "reject", "tag", "flag"];

      1. reply filter
        if anyof (header :contains "subject" "reply") {
        reply ["user2@cosmonaut.zimbra.com", "user3@cosmonaut.zimbra.com"] "text:"
        This is the first line
        This is the second line
        ..This is a line that begins with a dot
        And here's a dot by itself:
        ..
        The end
        .
        ;
        stop;
        }

        Attachments

          Activity

            People

            • Assignee:
              robertburrelldonkin Robert Burrell Donkin
              Reporter:
              bburtin Boris Burtin
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: