Skip to content

Commit aa6c46d

Browse files
committed
Adds more attachment tests
1 parent ff72ac9 commit aa6c46d

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

rosetta-test-suites/sendmail.ros

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,10 +457,23 @@
457457

458458
(capability 'automatic-mime-detection (list
459459

460+
; This is difficult to test, as we would need to find the attachment MIME part and check
461+
; the MIME type of the attachment.
462+
460463
))
461464

462465
(capability 'unicode-file-name (list
463-
466+
467+
(test "basic single text attachment with unicode file name" (lambda ()
468+
(sendmail-send-with-attachments
469+
'(("data" "info.txt")
470+
("file-name" "info¡.txt")
471+
("content-type" "text/plain")))
472+
(assert
473+
(server-message-contains-ci? "utf-8''info%C2%A1.txt")
474+
(string-append "Expected server to receive a message with an inline attachment, but received: " (server-message-data server)))))
475+
476+
464477
))
465478

466479
))

0 commit comments

Comments
 (0)