Skip to contents

Set message ID.

Usage

id(msg, id)

Arguments

msg

A message object.

id

An ID for the message.

Value

A message object.

Examples

# Create a message and set the ID
msg <- envelope() %>% id("1234567890.123456@example.com")
# Create a message with specified ID
msg <- envelope(id="1234567890.123456@example.com")