Searches Gmail messages and returns matching thread IDs. Useful for
finding the thread_id to pass to mc_send() when replying into
an existing conversation.
Arguments
- query
Gmail search query. Supports the same syntax as the Gmail search box (e.g.,
"from:brandon subject:cottonwood").- n
Maximum number of results. Default
5.- after, before
Optional date filters.
Dateobject or character string in"YYYY-MM-DD"form. Translated to Gmail'safter:/before:operators (inclusive/exclusive semantics follow Gmail's behaviour:after:is inclusive,before:is exclusive).
Examples
if (FALSE) { # \dontrun{
mc_thread_find("from:brandon.geldart subject:cottonwood")
mc_thread_find("from:brandon newer_than:7d")
mc_thread_find("newsletter", after = Sys.Date() - 7)
} # }
