diff options
author | Lars Wirzenius <liw@liw.fi> | 2016-03-09 15:33:42 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2016-03-09 16:09:10 +0200 |
commit | a2473f3ce59135196cf48d647b9c9f9837356c06 (patch) | |
tree | 836809da19b4addce23a5cf828bdb817313df4e5 /yarns/080-import-mail.yarn | |
parent | 45e7efd99d3e553af42b3ae7e437f32fcd450457 (diff) | |
download | distix-a2473f3ce59135196cf48d647b9c9f9837356c06.tar.gz |
Change "distix list" to include date in listing
Also, sort by date in the output.
That's date of the newest message in the ticket.
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 d458deb..7d7a1b8 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 "^[0-9a-f]{32} .* 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 "^[0-9a-f]{32} .* 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 "^[0-9a-f]{32} .* 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 "^[0-9a-f]{32} .* bar$" + AND output doesn't match "^[0-9a-f]{32} .* blerf$" Ditto, but for mailboxes. @@ -123,5 +123,5 @@ 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 "^[0-9a-f]{32} .* bar$" + AND output doesn't match "^[0-9a-f]{32} .* blerf$" |