diff options
Diffstat (limited to 'yarns/080-import-mail.yarn')
-rw-r--r-- | yarns/080-import-mail.yarn | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/yarns/080-import-mail.yarn b/yarns/080-import-mail.yarn index ada7182..5fff421 100644 --- a/yarns/080-import-mail.yarn +++ b/yarns/080-import-mail.yarn @@ -23,7 +23,7 @@ will read the e-mail from its standard input. WHEN user changes working directory to REPO AND user attempts to run distix list THEN attempt succeeded - AND output matches "^[0-9a-f]{32} .* bar$" + AND output matches "^bar$" Import one email twice. It should result in the mail existing only once in the ticket. @@ -61,7 +61,7 @@ Next, import an mbox. WHEN user changes working directory to REPO AND user attempts to run distix list THEN attempt succeeded - AND output matches "^[0-9a-f]{32} .* bar$" + AND output matches "^bar$" Next, import a Maildir. @@ -78,7 +78,7 @@ Next, import a Maildir. WHEN user changes working directory to REPO AND user attempts to run distix list THEN attempt succeeded - AND output matches "^[0-9a-f]{32} .* bar$" + AND output matches "^bar$" When importing e-mails, distix needs to automatically recognise when they belong existing tickets: if the new mail refers to a mail in an @@ -102,8 +102,8 @@ headers. WHEN user changes working directory to REPO AND user attempts to run distix list THEN attempt succeeded - AND output matches "^[0-9a-f]{32} .* bar$" - AND output doesn't match "^[0-9a-f]{32} .* blerf$" + AND output matches "^bar$" + AND output doesn't match "^blerf$" Ditto, but for mailboxes. @@ -123,8 +123,8 @@ Ditto, but for mailboxes. WHEN user changes working directory to REPO AND user attempts to run distix list THEN attempt succeeded - AND output matches "^[0-9a-f]{32} .* bar$" - AND output doesn't match "^[0-9a-f]{32} .* blerf$" + AND output matches "^bar$" + AND output doesn't match "^blerf$" When users send new mails to tickets that are already closed, the "status" key needs to get updated. In other words, a ticket that has |