forked from aspose-email/Aspose.Email-Python-Dotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRunExamples.py
More file actions
159 lines (150 loc) · 8.2 KB
/
RunExamples.py
File metadata and controls
159 lines (150 loc) · 8.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
#import individual examples
from Thunderbird import CreateNewMessagesToThunderbird, GetCurrentMessageSize, GetNumberOfItemsFromMBox, ReadMessagesFromThunderbird
from IMAP import AppendMessageToFolder,BuildingComplexQueries,CaseSensitiveEmailsFiltering,CopyMessageToAnotherFolder,DeleteMultipleMessages,DeleteSingleMessage,FetchEmailMessageFromServer,FilteringMessagesFromIMAPMailbox,GetMessagesWithSpecificCriterion,GettingFoldersInformation,ListingMessagesRecursively,ListingMessagesWithPagingSupport,ListingMIMEMessageIdInImapMessageInfo,MoveMessageToAnotherFolder,RetreiveExtraParametersAsSummaryInformation,RetrievingServerExtensions,SavingMessageFromIMAPServer,SetCustomFlags,SettingMessageFlags,SSLEnabledIMAPServer
from POP3 import ConnectingToPOP3,DeleteEmailByIndex,FilterMessagesFromMailbox,GetEmailCountInMailbox,GettingMailboxInfo,ListingServerExtensions,RetrieveMessageSummaryInformationUsingUniqueId,RetrievingEmailHeaders,RetrievingEmailMessages,SaveToDiscWithoutParsing,SSLEnabledPOP3Server
from SMTP import ForwardEmail,RetrieveSMTPServerExtensions,SendEmailSynchronously,SendingBulkEmails,SendingMeetingRequestsViaEmail,SendingPlainTextMessage,SendMsgAsTNEF,SetAlternateText,SettingHTMLBody,SSLEnabledSMTPServer
from WorkingWithAppointments import CreateAppointment,CreateAppointmentFromString,DraftAppointmentRequest,LoadAppointment,ReadMultipleEventsFromICS,SetParticipantStatusOfAppointmentAttendees,WriteMultipleEventsToICS
from WorkingWithMimeMessages import AddEmailAttachments,ChangeEmailAddress,ConvertToMHTMLWithoutInlineImages,CreateNewMailMesssage,DetectDifferentFileFormats,DetermineAttachmendEmbeddedMessage,DisplayAttachmentFileName,DisplayEmailInformation,ExtractEmbeddedObjectsFromEmail,ExtractingEmailHeaders,GetDecodedHeaderValues,LoadMessageWithLoadOptions, PreserveEmbeddedMSGFormatDuringLoad, PreserveOriginalBoundaries, PreserveTnefAttachment, ReadMessageByPreservingTNEFAttachments, RemoveLRTracesFromMessageBody,RemovingAttachmentFromMailMessage,RetrievContentDescriptionFromAttachment,SaveMailMessageAsMHTML, SaveMessageAsHTML, SaveMessageAsOFT, SavingMSGWithPreservedDates,SpecifyRecipientAddresses
from WorkingWithOutlookMSGs import AddAudioReminderToCalendar,AddDisplayReminderToCalendar,AddingMSGAttachments,AddingVotingButtonToExistingMessage,AddRecurrenceToMapiTask,AddReminderInformationToMapiTask,ConvertMSGToMimeMessage,CreateAndSaveCalendarItems,CreateAndSaveOutlookContact,CreateAndSaveOutlookNote,CreatingAndSavingOutlookMSG,CreatingAndSavingOutlookTask,CreatingMSGFilesWithRtfBody,DeleteVotingButtonFromMessage,DisplayReceipientsStatusFromMeetingReqeust,GetAttachmentsFromCalendar,GetMapiProperty,LoadingContactFromMSG,LoadingContactFromVCardWithSpecifiedEncoding,LoadingContactFromVCF,LoadMsgFiles,PreservingEmbeddedMsgFormat,ReadingMapiNote,ReadingOnlyVotingButtons,ReadingVotingOptions,ReadVoteResultsInformation,RenderingContactInformationToMhtml,SaveMSGAsTemplate,SavingMessageInDraftStatus,SetBodyCompression,SetMapiProperties
from WorkingWithOutlookStorageFiles import AccessContactInformation,AddFilesToPST,AddMapiCalendarToPST,AddMapiNoteToPST,AddMapiTaskToPST,AddMessagesFromOtherPST,AddMessagesToPSTFiles,ChangeFolderContainerClass,ConvertingOSTToPST,CreateDistributionListInPST,CreateNewMapiContactsAndAddToContactsSubFolder,CreateNewMapiJournalAndAddToPST,CreateNewPSTFileAndAddingSubfolders,DeleteBulkItemsFromPst,DeleteMessagesFromPSTFile,DisplayInformationOfPSTFile,ExtractNumberOfMessages,GetMessagesInformation,MoveItemsToOtherFolders,ReadingOSTFiles,RetrievingParentFolderInformationFromMessageInfo,SaveCalendarItems,SearchingStringInPSTWithIgnoreCaseParameter,UpdateBulkMessagesInPSTFile
###################################
#Uncomment any of the following for testing
###################################
###### IMAP
#AppendMessageToFolder.run()
##BuildingComplexQueries.run()
##CaseSensitiveEmailsFiltering.run()
##CopyMessageToAnotherFolder.run()
##DeleteMultipleMessages.run()
##DeleteSingleMessage.run()
##FetchEmailMessageFromServer.run()
##FilteringMessagesFromIMAPMailbox.run()
##GetMessagesWithSpecificCriterion.run()
##GettingFoldersInformation.run()
##ListingMessagesRecursively.run()
##ListingMessagesWithPagingSupport.run()
##ListingMIMEMessageIdInImapMessageInfo.run()
##MoveMessageToAnotherFolder.run()
##RetreiveExtraParametersAsSummaryInformation.run()
##RetrievingServerExtensions.run()
##SavingMessageFromIMAPServer.run()
##SetCustomFlags.run()
##SettingMessageFlags.run()
##SSLEnabledIMAPServer.run()
###### POP3
##ConnectingToPOP3.run()
##DeleteEmailByIndex.run()
##FilterMessagesFromMailbox.run()
##GetEmailCountInMailbox.run()
##GettingMailboxInfo.run()
##ListingServerExtensions.run()
##RetrieveMessageSummaryInformationUsingUniqueId.run()
##RetrievingEmailHeaders.run()
##RetrievingEmailMessages.run()
##SaveToDiscWithoutParsing.run()
##SSLEnabledPOP3Server.run()
###### SMTP
##ForwardEmail.run()
##RetrieveSMTPServerExtensions.run()
##SendEmailSynchronously.run()
##SendingBulkEmails.run()
##SendingMeetingRequestsViaEmail.run()
##SendingPlainTextMessage.run()
##SendMsgAsTNEF.run()
##SetAlternateText.run()
##SettingHTMLBody.run()
##SSLEnabledSMTPServer.run()
###### Thunderbird
##CreateNewMessagesToThunderbird.run()
##GetCurrentMessageSize.run()
##GetNumberOfItemsFromMBox.run()
##ReadMessagesFromThunderbird.run()
###### Working with Appointments
##CreateAppointment.run()
##CreateAppointmentFromString.run()
##DraftAppointmentRequest.run()
##LoadAppointment.run()
##ReadMultipleEventsFromICS.run()
##SetParticipantStatusOfAppointmentAttendees.run()
##WriteMultipleEventsToICS.run()
###### Working with MIME Messages
##AddEmailAttachments.run()
##ChangeEmailAddress.run()
##ConvertToMHTMLWithoutInlineImages.run()
##CreateNewMailMesssage.run()
##DetectDifferentFileFormats.run()
##DetermineAttachmendEmbeddedMessage.run()
##DisplayAttachmentFileName.run()
##DisplayEmailInformation.run()
##ExtractEmbeddedObjectsFromEmail.run()
##ExtractingEmailHeaders.run()
##GetDecodedHeaderValues.run()
LoadMessageWithLoadOptions.run()
PreserveEmbeddedMSGFormatDuringLoad.run()
PreserveOriginalBOundaries.run()
PreserveTnefAttachment.run()
ReadMessageByPreservingTNEFAttachment.run()
##RemoveLRTracesFromMessageBody.run()
##RemovingAttachmentFromMailMessage.run()
##RetrievContentDescriptionFromAttachment.run()
SaveMailMessageAsMHTML.run()
SaveMessageAsHTML.run()
SavingMSGWithPreservedDates.run()
##SpecifyRecipientAddresses.run()
###### Working with Outlook Messages
##AddAudioReminderToCalendar.run()
##AddDisplayReminderToCalendar.run()
##AddingMSGAttachments.run()
##AddingVotingButtonToExistingMessage.run()
##AddRecurrenceToMapiTask.run()
##AddReminderInformationToMapiTask.run()
##ConvertMSGToMimeMessage.run()
##CreateAndSaveCalendarItems.run()
##CreateAndSaveOutlookContact.run()
##CreateAndSaveOutlookNote.run()
##CreatingAndSavingOutlookMSG.run()
##CreatingAndSavingOutlookTask.run()
##CreatingMSGFilesWithRtfBody.run()
##DeleteVotingButtonFromMessage.run()
##DisplayReceipientsStatusFromMeetingReqeust.run()
##GetAttachmentsFromCalendar.run()
##GetMapiProperty.run()
##LoadingContactFromMSG.run()
##LoadingContactFromVCardWithSpecifiedEncoding.run()
##LoadingContactFromVCF.run()
##LoadMsgFiles.run()
##PreservingEmbeddedMsgFormat.run()
##ReadingMapiNote.run()
##ReadingOnlyVotingButtons.run()
##ReadingVotingOptions.run()
##ReadVoteResultsInformation.run()
##RenderingContactInformationToMhtml.run()
##SaveMSGAsTemplate.run()
##SavingMessageInDraftStatus.run()
##SetBodyCompression.run()
##SetMapiProperties.run()
###### Working with Outlook Storage Files
##AccessContactInformation.run()
##AddFilesToPST.run()
##AddMapiCalendarToPST.run()
##AddMapiNoteToPST.run()
##AddMapiTaskToPST.run()
##AddMessagesFromOtherPST.run()
##AddMessagesToPSTFiles.run()
##ChangeFolderContainerClass.run()
##ConvertingOSTToPST.run()
##CreateDistributionListInPST.run()
##CreateNewMapiContactsAndAddToContactsSubFolder.run()
##CreateNewMapiJournalAndAddToPST.run()
##CreateNewPSTFileAndAddingSubfolders.run()
##DeleteBulkItemsFromPst.run()
##DeleteMessagesFromPSTFile.run()
##DisplayInformationOfPSTFile.run()
##ExtractNumberOfMessages.run()
##GetMessagesInformation.run()
##MoveItemsToOtherFolders.run()
##ReadingOSTFiles.run()
##RetrievingParentFolderInformationFromMessageInfo.run()
##SaveCalendarItems.run()
##SearchingStringInPSTWithIgnoreCaseParameter.run()
##UpdateBulkMessagesInPSTFile.run()