| string | R Documentation | 
Criterion constructor function to be combined in a custom search statement
string(expr, where, negate = FALSE)
expr | 
 A character string specifying the word or expression to search for in messages.  | 
where | 
 A mandatory character string specifying in which message's Section or Header Field to search for the provided string.  | 
negate | 
 If   | 
Other custom search: 
AND(),
ImapCon,
OR(),
before(),
flag(),
larger_than(),
older_than(),
on(),
sent_before(),
sent_on(),
sent_since(),
since(),
smaller_than(),
younger_than()
## Not run: 
# select folder & search
con$select_folder(name = "INBOX")
# search for messages containing the string "XYZ@k-state.edu" in the
#   "FROM" AND the string "@gmail.com" in the "CC" field.
res <- con$search(request = AND(string(expr = "XYZ@k-state.edu",
                                      where = "FROM"),
                               string(expr = "@gmail.com",
                                      where = "CC")))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.