
    :Qg                    X    d Z ddlmZ ddlmZ ddlmZ ddlm	Z	 ddl
mZ  G d d      Zy	)
a*  The `Recipient` object provides access to properties for a recipient of the message.

This object is accessed using the `Message.recipients` property:
```python
>>> from oxmsg import Message

>>> msg = Message.load("message.msg")
>>> recipient = msg.recipients[0]
>>> recipient.name
'Jane Doe'
```
    )annotations)	constants)model)
Properties)lazypropertyc                  N    e Zd ZdZddZedd       Zedd       Zed	d       Zy)
	Recipientz(A recipient of an Outlook email message.c                    || _         y )N)_storage)selfstorages     L/var/www/html/answerous/venv/lib/python3.12/site-packages/oxmsg/recipient.py__init__zRecipient.__init__   s	        c                    | j                   }|j                  t        j                        xs# |j                  t        j                        xs dS )z$The email address of this recipient. )
propertiesstr_prop_valuecPID_SMTP_ADDRESSPID_EMAIL_ADDRESS)r   propss     r   email_addresszRecipient.email_address   sI        !3!34 ##A$7$78	
r   c                \    | j                   j                  t        j                        xs dS )zThe name of this recipient.r   )r   r   r   PID_DISPLAY_NAMEr   s    r   namezRecipient.name(   s$     --a.@.@AGRGr   c                L    t        | j                  t        j                        S )z7Provides access to the properties of this OXMSG object.)properties_header_offset)r   r   mRECIP_HDR_OFFSETr   s    r   r   zRecipient.properties-   s     $--!BTBTUUr   N)r   z
m.StorageT)returnstr)r"   r   )	__name__
__module____qualname____doc__r   r   r   r   r    r   r   r	   r	      sJ    2  	
 	
 H H V Vr   r	   N)r'   
__future__r   oxmsg.domainr   r   r   r    oxmsg.propertiesr   
oxmsg.utilr   r	   r(   r   r   <module>r-      s'    # ' # ' #V Vr   