--- /dev/null
+# Test Description
+Test mime email.url keyword.
+
+## PCAP
+From ../smtp-extract-url-schemes/input.pcap
+
+## Redmine Ticket
+https://redmine.openinfosecfoundation.org/issues/7597
--- /dev/null
+alert smtp any any -> any any (msg:"Test mime email url"; email.url; content:"test-site.org/blah/123/"; startswith; endswith; bsize:23; sid:1;)
+alert smtp any any -> any any (msg:"Test mime email url"; email.url; content:"google.com"; startswith; endswith; bsize:10; sid:2;)
--- /dev/null
+requires:
+ min-version: 8
+
+pcap: ../smtp-extract-url-schemes/input.pcap
+
+args:
+ - -k none --set stream.inline=true
+
+checks:
+- filter:
+ count: 1
+ match:
+ event_type: alert
+ email.url[0]: "test-site.org/blah/123/"
+ alert.signature_id: 1
+- filter:
+ count: 1
+ match:
+ event_type: alert
+ email.url[1]: "google.com"
+ alert.signature_id: 2
\ No newline at end of file