Add or query keywords of message.

keywords(msg, ..., append = FALSE)

Arguments

msg

A message object.

...

Keywords.

append

Whether to append or replace keywords.

Value

A message object or the comments of the message object (if comments is NULL).

See also

to, from, cc, bcc and reply

Examples

# Create a message and set the keywords.
envelope() %>% keywords("newsletter, marketing")
envelope() %>% keywords("newsletter", "marketing")
envelope() %>% keywords(c("newsletter", "marketing"))

# Retrieve the keywords for a message.
msg <- envelope() %>% keywords("newsletter, marketing")
keywords(msg)
#> [1] "newsletter, marketing"