Front page

import-imap matching syntax is problematic

ac391d1300fe4960beaefa95c6461e02
RIBCAGE CORPORATE BELFAST

From: Lars Wirzenius <liw@liw.fi>
Date: Sun, 18 Jun 2017 19:52:48 +0300

   "distix import-imap" allows importing from one IMAP account into
   several distixes, and this is good. However, to specify which distix
   should have which mails, the user is supposed to write something like
   this:
   
   
       "distix: ssh://git@git.qvarnlabs.net/qvarn-support.distix":
         pattern: "^(To|Cc):(.|\n[ \t])*qvarn-support@qvarnlabs.com
   
   The regex is fairly complicated in order to match email headers split
   to multiple physical lines.
   
   It would be nice if distix could handle that in a cleaner way, perhaps
   with something like this:
   
       "distix: ssh://git@git.qvarnlabs.net/qvarn-support.distix":
         header: [To, Cc]
         value: qvarn-support@qvarnlabs.com
   
   In other words, the value would be matched against the value of a
   header (or one of a list of headers) after the split value has been
   unsplit.