Skip to content

Instantly share code, notes, and snippets.

@aspose-com-gists
Created September 26, 2025 15:59
Show Gist options
  • Save aspose-com-gists/57a8afdd9438c4971e1b34d8f913bf40 to your computer and use it in GitHub Desktop.
Save aspose-com-gists/57a8afdd9438c4971e1b34d8f913bf40 to your computer and use it in GitHub Desktop.
Extract Outlook Reactions from MSG Files in Python
emoji_map = {
"like": "๐Ÿ‘",
"love": "โค๏ธ",
"laugh": "๐Ÿ˜‚",
"surprised": "๐Ÿ˜ฎ",
"sad": "๐Ÿ˜ข",
"angry": "๐Ÿ˜ "
}
print("Emoji:", emoji_map.get(reaction.reaction_type, ""))
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.")
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