Class: MsgExtractor::Contact
Overview
IPM.Contact / IPM.DistList. Email addresses live in PSETID_Address named properties (Email1/2/3 EmailAddress LIDs).
Constant Summary
collapse
- PSETID_ADDRESS =
"00062004-0000-0000-c000-000000000046"
- EMAIL_LIDS =
[0x8083, 0x8093, 0x80A3].freeze
Instance Attribute Summary
#named, #properties
Instance Method Summary
collapse
#attachments, #bcc, #body, #cc, #date, #headers, #html_body, #initialize, #message_class, #named_value, #recipients, #rtf_body, #save, #sender, #subject, #to
Instance Method Details
#business_phone ⇒ Object
14
|
# File 'lib/msg_extractor/contact.rb', line 14
def business_phone = properties[Mapi::PR_BUSINESS_PHONE]
|
#company ⇒ Object
12
|
# File 'lib/msg_extractor/contact.rb', line 12
def company = properties[Mapi::PR_COMPANY_NAME]
|
#display_name ⇒ Object
9
|
# File 'lib/msg_extractor/contact.rb', line 9
def display_name = properties[Mapi::PR_DISPLAY_NAME] || subject
|
#emails ⇒ Object
19
20
21
|
# File 'lib/msg_extractor/contact.rb', line 19
def emails
EMAIL_LIDS.filter_map { |lid| named_value(PSETID_ADDRESS, lid) }
end
|
#given_name ⇒ Object
10
|
# File 'lib/msg_extractor/contact.rb', line 10
def given_name = properties[Mapi::PR_GIVEN_NAME]
|
#home_phone ⇒ Object
15
|
# File 'lib/msg_extractor/contact.rb', line 15
def home_phone = properties[Mapi::PR_HOME_PHONE]
|
#job_title ⇒ Object
13
|
# File 'lib/msg_extractor/contact.rb', line 13
def job_title = properties[Mapi::PR_JOB_TITLE]
|
#mobile_phone ⇒ Object
16
|
# File 'lib/msg_extractor/contact.rb', line 16
def mobile_phone = properties[Mapi::PR_MOBILE_PHONE]
|
#postal_address ⇒ Object
17
|
# File 'lib/msg_extractor/contact.rb', line 17
def postal_address = properties[Mapi::PR_POSTAL_ADDRESS]
|
#surname ⇒ Object
11
|
# File 'lib/msg_extractor/contact.rb', line 11
def surname = properties[Mapi::PR_SURNAME]
|