--- /dev/null
+# Test Description
+
+Test that we log SMTP `To` field right if there are quotes and commas, and spaces
+
+## PCAP
+
+smtp-data-rejected/10.7.29.101_49898-178.63.41.150_25.pcap modified by hand
+
+## Related issues
+
+https://redmine.openinfosecfoundation.org/issues/3487
--- /dev/null
+requires:
+ min-version: 8
+
+# disables checksum verification
+args:
+ - -k none
+
+checks:
+ - filter:
+ count: 1
+ match:
+ event_type: smtp
+ email.cc[0]: "\"jam,abrakadabra.ch\" <mirjam@abrakadabra.ch>"
+ # do not log empty fields
+ not-has-key: email.to