extract-msg 0.48.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- extract_msg/__init__.py +71 -0
- extract_msg/__main__.py +115 -0
- extract_msg/_rtf/__init__.py +21 -0
- extract_msg/_rtf/create_doc.py +29 -0
- extract_msg/_rtf/inject_rtf.py +174 -0
- extract_msg/_rtf/token.py +35 -0
- extract_msg/_rtf/tokenize_rtf.py +253 -0
- extract_msg/attachments/__init__.py +144 -0
- extract_msg/attachments/attachment.py +188 -0
- extract_msg/attachments/attachment_base.py +730 -0
- extract_msg/attachments/broken_att.py +42 -0
- extract_msg/attachments/custom_att.py +173 -0
- extract_msg/attachments/custom_att_handler/__init__.py +80 -0
- extract_msg/attachments/custom_att_handler/custom_handler.py +134 -0
- extract_msg/attachments/custom_att_handler/lnk_obj_att.py +109 -0
- extract_msg/attachments/custom_att_handler/outlook_image_dib.py +141 -0
- extract_msg/attachments/emb_msg_att.py +134 -0
- extract_msg/attachments/signed_att.py +234 -0
- extract_msg/attachments/unsupported_att.py +40 -0
- extract_msg/attachments/web_att.py +74 -0
- extract_msg/constants/__init__.py +294 -0
- extract_msg/constants/ps.py +46 -0
- extract_msg/constants/re.py +42 -0
- extract_msg/constants/st.py +110 -0
- extract_msg/data/logging-config/logging-nt.json +64 -0
- extract_msg/data/logging-config/logging-posix.json +64 -0
- extract_msg/encoding/__init__.py +277 -0
- extract_msg/encoding/_dt/__init__.py +4 -0
- extract_msg/encoding/_dt/_mac_ce.py +8 -0
- extract_msg/encoding/_dt/_mac_cyrillic.py +8 -0
- extract_msg/encoding/_dt/_mac_greek.py +8 -0
- extract_msg/encoding/_dt/_mac_iceland.py +8 -0
- extract_msg/encoding/_dt/_mac_turkish.py +8 -0
- extract_msg/encoding/_dt/_win874_dec.py +8 -0
- extract_msg/encoding/_dt/_win950_dec.py +6 -0
- extract_msg/encoding/utils.py +329 -0
- extract_msg/enums.py +2067 -0
- extract_msg/exceptions.py +170 -0
- extract_msg/msg_classes/__init__.py +49 -0
- extract_msg/msg_classes/appointment.py +195 -0
- extract_msg/msg_classes/calendar.py +92 -0
- extract_msg/msg_classes/calendar_base.py +496 -0
- extract_msg/msg_classes/contact.py +1335 -0
- extract_msg/msg_classes/journal.py +131 -0
- extract_msg/msg_classes/meeting_cancellation.py +108 -0
- extract_msg/msg_classes/meeting_exception.py +55 -0
- extract_msg/msg_classes/meeting_forward.py +115 -0
- extract_msg/msg_classes/meeting_related.py +65 -0
- extract_msg/msg_classes/meeting_request.py +189 -0
- extract_msg/msg_classes/meeting_response.py +74 -0
- extract_msg/msg_classes/message.py +12 -0
- extract_msg/msg_classes/message_base.py +1382 -0
- extract_msg/msg_classes/message_signed.py +17 -0
- extract_msg/msg_classes/message_signed_base.py +168 -0
- extract_msg/msg_classes/msg.py +1172 -0
- extract_msg/msg_classes/post.py +53 -0
- extract_msg/msg_classes/sticky_note.py +67 -0
- extract_msg/msg_classes/task.py +363 -0
- extract_msg/msg_classes/task_request.py +86 -0
- extract_msg/null_date.py +34 -0
- extract_msg/ole_writer.py +1086 -0
- extract_msg/open_msg.py +204 -0
- extract_msg/properties/__init__.py +23 -0
- extract_msg/properties/named.py +481 -0
- extract_msg/properties/prop.py +506 -0
- extract_msg/properties/properties_store.py +476 -0
- extract_msg/py.typed +0 -0
- extract_msg/recipient.py +362 -0
- extract_msg/structures/__init__.py +34 -0
- extract_msg/structures/_helpers.py +345 -0
- extract_msg/structures/business_card.py +422 -0
- extract_msg/structures/cfoas.py +108 -0
- extract_msg/structures/contact_link_entry.py +51 -0
- extract_msg/structures/dev_mode_a.py +621 -0
- extract_msg/structures/dv_target_device.py +168 -0
- extract_msg/structures/entry_id.py +697 -0
- extract_msg/structures/misc_id.py +222 -0
- extract_msg/structures/mon_stream.py +55 -0
- extract_msg/structures/odt.py +74 -0
- extract_msg/structures/ole_pres.py +302 -0
- extract_msg/structures/ole_stream_struct.py +117 -0
- extract_msg/structures/recurrence_pattern.py +199 -0
- extract_msg/structures/report_tag.py +127 -0
- extract_msg/structures/system_time.py +158 -0
- extract_msg/structures/time_zone_definition.py +111 -0
- extract_msg/structures/time_zone_struct.py +102 -0
- extract_msg/structures/toc_entry.py +137 -0
- extract_msg/structures/tz_rule.py +148 -0
- extract_msg/utils.py +1270 -0
- extract_msg-0.48.2.dist-info/LICENSE.txt +674 -0
- extract_msg-0.48.2.dist-info/METADATA +321 -0
- extract_msg-0.48.2.dist-info/RECORD +95 -0
- extract_msg-0.48.2.dist-info/WHEEL +5 -0
- extract_msg-0.48.2.dist-info/entry_points.txt +2 -0
- extract_msg-0.48.2.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
__all__ = [
|
|
2
|
+
'MeetingResponse',
|
|
3
|
+
]
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
import datetime
|
|
7
|
+
import functools
|
|
8
|
+
|
|
9
|
+
from typing import Optional
|
|
10
|
+
|
|
11
|
+
from ..constants import ps
|
|
12
|
+
from ..enums import ResponseType
|
|
13
|
+
from .meeting_related import MeetingRelated
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class MeetingResponse(MeetingRelated):
|
|
17
|
+
"""
|
|
18
|
+
Class for handling meeting response objects.
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
@functools.cached_property
|
|
22
|
+
def appointmentCounterProposal(self) -> bool:
|
|
23
|
+
"""
|
|
24
|
+
Indicates if the response is a counter proposal.
|
|
25
|
+
"""
|
|
26
|
+
return bool(self.getNamedProp('8257', ps.PSETID_APPOINTMENT))
|
|
27
|
+
|
|
28
|
+
@functools.cached_property
|
|
29
|
+
def appointmentProposedDuration(self) -> Optional[int]:
|
|
30
|
+
"""
|
|
31
|
+
The proposed value for the appointmentDuration property for a counter
|
|
32
|
+
proposal.
|
|
33
|
+
"""
|
|
34
|
+
return self.getNamedProp('8256', ps.PSETID_APPOINTMENT)
|
|
35
|
+
|
|
36
|
+
@functools.cached_property
|
|
37
|
+
def appointmentProposedEndWhole(self) -> Optional[datetime.datetime]:
|
|
38
|
+
"""
|
|
39
|
+
The proposal value for the appointmentEndWhole property for a counter
|
|
40
|
+
proposal.
|
|
41
|
+
"""
|
|
42
|
+
return self.getNamedProp('8251', ps.PSETID_APPOINTMENT)
|
|
43
|
+
|
|
44
|
+
@functools.cached_property
|
|
45
|
+
def appointmentProposedStartWhole(self) -> Optional[datetime.datetime]:
|
|
46
|
+
"""
|
|
47
|
+
The proposal value for the appointmentStartWhole property for a counter
|
|
48
|
+
proposal.
|
|
49
|
+
"""
|
|
50
|
+
return self.getNamedProp('8250', ps.PSETID_APPOINTMENT)
|
|
51
|
+
|
|
52
|
+
@functools.cached_property
|
|
53
|
+
def isSilent(self) -> bool:
|
|
54
|
+
"""
|
|
55
|
+
Indicates if the user did not include any text in the body of the
|
|
56
|
+
Meeting Response object.
|
|
57
|
+
"""
|
|
58
|
+
return bool(self.getNamedProp('0004', ps.PSETID_MEETING))
|
|
59
|
+
|
|
60
|
+
@functools.cached_property
|
|
61
|
+
def promptSendUpdate(self) -> bool:
|
|
62
|
+
"""
|
|
63
|
+
Indicates that the Meeting Response object was out-of-date when it was
|
|
64
|
+
received.
|
|
65
|
+
"""
|
|
66
|
+
return bool(self.getNamedProp('8045', ps.PSETID_COMMON))
|
|
67
|
+
|
|
68
|
+
@functools.cached_property
|
|
69
|
+
def responseType(self) -> ResponseType:
|
|
70
|
+
"""
|
|
71
|
+
The type of Meeting Response object.
|
|
72
|
+
"""
|
|
73
|
+
# The ending of the class type determines the type of response.
|
|
74
|
+
return ResponseType(self.classType.lower().split('.')[-1])
|