Created
September 26, 2025 15:59
-
-
Save aspose-com-gists/57a8afdd9438c4971e1b34d8f913bf40 to your computer and use it in GitHub Desktop.
Extract Outlook Reactions from MSG Files in Python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
emoji_map = { | |
"like": "๐", | |
"love": "โค๏ธ", | |
"laugh": "๐", | |
"surprised": "๐ฎ", | |
"sad": "๐ข", | |
"angry": "๐ " | |
} | |
print("Emoji:", emoji_map.get(reaction.reaction_type, "")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import aspose.email as ae | |
# Load the MSG file | |
message = ae.MailMessage.load("email_with_reactions.msg") | |
# Extract reactions using FollowUpManager | |
reactions = ae.FollowUpManager.get_reactions(message) | |
# Display the reactions | |
if reactions: | |
for reaction in reactions: | |
print(f"User: {reaction.user_display_name}, Reaction: {reaction.reaction_type}") | |
else: | |
print("No reactions found in this message.") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
reactions = ae.FollowUpManager.get_reactions(message) | |
for reaction in reactions: | |
print("User:", reaction.name) | |
print("Reaction Type:", reaction.type) | |
print("Reaction Time:", reaction.reaction_date_time) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment