Skip to contents

Extract sender and recipient(s)

Usage

parties(msg)

Arguments

msg

A message object.

Value

A tibble.

Examples

msg <- envelope() %>%
  from("Gerald <gerald@gmail.com>") %>%
  to(c("bob@gmail.com", "alice@yahoo.com")) %>%
  cc("Craig     < craig@gmail.com>") %>%
  bcc("  Erin   <erin@yahoo.co.uk    >")

parties(msg)
#> # A tibble: 5 × 6
#>   type  address                   display raw              local  domain     
#>   <chr> <chr>                     <chr>   <chr>            <chr>  <chr>      
#> 1 From  Gerald <gerald@gmail.com> Gerald  gerald@gmail.com gerald gmail.com  
#> 2 To    bob@gmail.com             NA      bob@gmail.com    bob    gmail.com  
#> 3 To    alice@yahoo.com           NA      alice@yahoo.com  alice  yahoo.com  
#> 4 Cc    Craig <craig@gmail.com>   Craig   craig@gmail.com  craig  gmail.com  
#> 5 Bcc   Erin <erin@yahoo.co.uk>   Erin    erin@yahoo.co.uk erin   yahoo.co.uk