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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.2
    • 0.4
    • JSieve (Main)
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: