keywords: Add or query keywords of message.

keywordsR Documentation

Add or query keywords of message.

Description

Add or query keywords of message.

Usage

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)

emayili documentation built on June 24, 2024, 5:12 p.m.