I'm attempting to use RDCOMClient to search my Outlook inbox for specific subjects in emails and then grab the attachment. I have this working on a single email, but as the subject contains a date element, I need the search to be a like clause, but can't quite see where this would fit within my below query.
outlook_app <- COMCreate("Outlook.Application")
search <- outlook_app$AdvancedSearch(
"Inbox",
"urn:schemas:httpmail:subject = 'test email executed at 13/01/2019 10:00:08'"
)
I need to search just the first portion of the subject line, looking for everything before the date and time.