diff options
| author | Örjan Ekeberg <ekeberg@kth.se> | 2019-12-13 00:35:36 +0100 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2019-12-14 07:29:00 -0400 |
| commit | 757ed001aad27d3c5ee8828174778b71013e4afd (patch) | |
| tree | 3bf37f8b87da4922b46a1fdc6b5fcfc207d365e2 | |
| parent | 1d9ec88d878d9817f18c98e71fa8b987d74f0508 (diff) | |
test: extend test of attachment warnings
Check that attachment warnings are not raised when the word
"attach" only occurs in a forwarded message.
| -rw-r--r-- | test/emacs-attachment-warnings.el | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/emacs-attachment-warnings.el b/test/emacs-attachment-warnings.el index 200ca7ba..a3067b14 100644 --- a/test/emacs-attachment-warnings.el +++ b/test/emacs-attachment-warnings.el @@ -36,6 +36,12 @@ Return `t' if the message would be sent, otherwise `nil'" ;; fontification properties. For fontification to happen we need to ;; allow some time for redisplay. (sit-for 0.01))) + (t . (lambda () + ;; "attach" is only mentioned in a forwarded message. + (insert "Hello\n") + (insert "<#mml type=message/rfc822 disposition=inline>\n") + (insert "X-Has-Attach:\n") + (insert "<#/mml>\n"))) ;; These should not be okay: (nil . (lambda () (insert "Here is an attachment:\n"))) @@ -49,6 +55,12 @@ Return `t' if the message would be sent, otherwise `nil'" ;; looking at fontification properties. For fontification ;; to happen we need to allow some time for redisplay. (sit-for 0.01))) + (nil . (lambda () + ;; "attachment" is mentioned before a forwarded message. + (insert "I also attach something.\n") + (insert "<#mml type=message/rfc822 disposition=inline>\n") + (insert "X-Has-Attach:\n") + (insert "<#/mml>\n"))) )) (defun notmuch-test-attachment-warning-1 () |
