]> git.notmuchmail.org Git - notmuch/blobdiff - test/emacs-address-cleaning.el
emacs: Another special case for `notmuch-show-clean-address'.
[notmuch] / test / emacs-address-cleaning.el
index 19e9e055e37241dbbb4a20b035c31be445a3cd95..3b0b109bbb93d445125752cfd2645370921e9994 100644 (file)
   (let* ((input '("ДБ <db-uknot@stop.me.uk>"
                  "foo (at home) <foo@bar.com>"
                  "foo [at home] <foo@bar.com>"
-                 "Foo Bar"))
+                 "Foo Bar"
+                 "Fred Dibna \\[extraordinaire\\] <fred@dibna.com>"))
         (expected '("ДБ <db-uknot@stop.me.uk>"
                     "foo (at home) <foo@bar.com>"
                     "foo [at home] <foo@bar.com>"
-                    "Foo Bar"))
+                    "Foo Bar"
+                    "Fred Dibna [extraordinaire] <fred@dibna.com>"))
         (output (mapcar #'notmuch-show-clean-address input)))
     (notmuch-test-expect-equal output expected)))