diff options
author | Lars Wirzenius <liw@liw.fi> | 2016-02-19 19:24:55 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2016-02-19 19:39:03 +0200 |
commit | 257bfcb994a8cd823376157cea4347ec515b3fad (patch) | |
tree | 3286587bbeb3ad2fcfb0280b76d696bf401f400b /yarns/080-import-mail.yarn | |
parent | 79d126e6f956b75fc0a8acfffba80f8457bf879d (diff) | |
download | distix-257bfcb994a8cd823376157cea4347ec515b3fad.tar.gz |
Add support to import from a Maildir
Diffstat (limited to 'yarns/080-import-mail.yarn')
-rw-r--r-- | yarns/080-import-mail.yarn | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/yarns/080-import-mail.yarn b/yarns/080-import-mail.yarn index 7c1e24c..d458deb 100644 --- a/yarns/080-import-mail.yarn +++ b/yarns/080-import-mail.yarn @@ -63,6 +63,23 @@ Next, import an mbox. THEN attempt succeeded AND output matches "^[0-9a-f]{32} bar$" +Next, import a Maildir. + + SCENARIO import Maildir + + WHEN user attempts to run distix init REPO + THEN attempt succeeded + + GIVEN maildir MAILDIR containing a mail with subject "bar" + WHEN user attempts to run distix import-maildir REPO MAILDIR + THEN attempt succeeded + AND everything in REPO is committed to git + + 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$" + When importing e-mails, distix needs to automatically recognise when they belong existing tickets: if the new mail refers to a mail in an existing ticket, put the new mail to that ticket and don't open a new |