
    Ng                    `    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d	S )
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                  b    e Zd ZdZddZedd            Zedd            Zedd
            ZdS )	Recipientz(A recipient of an Outlook email message.storage
m.StorageTc                    || _         d S )N)_storage)selfr
   s     K/var/www/html/ai-engine/env/lib/python3.11/site-packages/oxmsg/recipient.py__init__zRecipient.__init__   s        returnstrc                    | j         }|                    t          j                  p |                    t          j                  p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   sG        !344 ##A$788	
r   c                N    | j                             t          j                  pdS )zThe name of this recipient.r   )r   r   r   PID_DISPLAY_NAMEr   s    r   namezRecipient.name(   s"     --a.@AAGRGr   r   c                B    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     $-!BTUUUUr   N)r
   r   )r   r   )r   r   )	__name__
__module____qualname____doc__r   r   r   r    r    r   r   r	   r	      s        22        	
 	
 	
 \	
 H H H \H V V V \V 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 V V V V V V V Vr   