
Drag and Drop email text into my own app
I have a WordPress website from which I get an email every time it blocks an IP address for security (for instance trying to login as 'admin').
I've written a program to report the bad IP address to the abuseipdb.com website. Currently I have to open each email, copy it, and then paste it into my app. It would be much quicker if I could just drag each email to the app without having to open/copy/paste. When I try to drag and drop I get a URL for the file containing the email, with the email number as a parameter. This is real inefficient if I have to reparse the email file each time the app sees a new email drop. What I would like is the actual text of the email (as html, text, or some other parsable format like json).
Is there some way to tell Thunderbird to send the text of the email instead of the URL?
Thanks.
All Replies (1)
I do not have an answer, but drag and drop to explorer drops an eml file (text of the email including headers) so I am guessing your drop target is only capable of text, not a file object.
There is a python drag and drop for files example here https://developer.mozilla.org/en-US/docs/Web/API/HTML_Drag_and_Drop_API/File_drag_and_drop