I need to RegEx parse some values, primarily URL data, out of the body of some emails. I do not want to open the email client, but want to process this in the background. I am using Mozilla Thunderbird to download email from an AOL account using WebMail AddOn.
I have a filter in Thunderbird that moves the appropriate messages to a separate folder. The filter actions do not allow to copy to a file, or print, only copy/move to other folders. At the AOL front end, AOL has the same filter action limits, folder movements only. So I can't do this at the front end before I receive it on the local computer.
I have located the local PC email folder and file. I can move to the correct section of the file and get the latest messages, but the body section is encrypted, so parsing this file will not work.
I have no control over the format from the sender, else I would have them include the URL in the Subject line.
Once I have the URL I will be able to HTTPGet and do additional RegEX extraction of other data elements not in the email body.
Any suggestions on how I can do a background process to send the email message to a text/html file where I can process it with RegEx tools? Don't even care if I don't have to have a file, really need to get the URL out of the body, and this seemed like the best approach. Any other ideas are welcome.
Need URL from email body in background processing
Moderators: Dorian (MJT support), JRL
Other things I recently tried:
Looked for Thunderbird AddOns to Save Emails or send to Lightning Calendar, no AddOns found to do that.
In AOL, tried to forward to C:\Temp\filename, but system rejected as invalid address.
Tried to forward to C:\Temp\[email protected], but system rejected as invalid address.
Tried both the above in the Thunderbird filter actions with same results. Not surprised, but trying to think outside the box.....
-------------------
If anyone knows of an email client that allows filters to Save As or Print, that would probably work. A command line tool would even be a greater enhancement. Am looking at The Bat!, but $45.00 is steep price to pay for just this feature. I have also learned that Eudora may have this feature, can anyone confirm that?
Looked for Thunderbird AddOns to Save Emails or send to Lightning Calendar, no AddOns found to do that.
In AOL, tried to forward to C:\Temp\filename, but system rejected as invalid address.
Tried to forward to C:\Temp\[email protected], but system rejected as invalid address.
Tried both the above in the Thunderbird filter actions with same results. Not surprised, but trying to think outside the box.....
-------------------
If anyone knows of an email client that allows filters to Save As or Print, that would probably work. A command line tool would even be a greater enhancement. Am looking at The Bat!, but $45.00 is steep price to pay for just this feature. I have also learned that Eudora may have this feature, can anyone confirm that?
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
I am not familiar with The Bat, but here is some info about Eudora.
It is in the process of being rewritten based on Thunderbird. If you download the latest version, it will be version OSE1.0 and the Filter options are the same as Thunderbird, so you still will not have a save option.
But if you search for the older version 7.1.0.9, the Filter actions in that version do have a Print option. So you could set up a printer to print to a file, and use that option to get a copy of the email.
It is in the process of being rewritten based on Thunderbird. If you download the latest version, it will be version OSE1.0 and the Filter options are the same as Thunderbird, so you still will not have a save option.
But if you search for the older version 7.1.0.9, the Filter actions in that version do have a Print option. So you could set up a printer to print to a file, and use that option to get a copy of the email.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
I got a chance to make and test a filter to Print in Eudora. Worked OK but no way to provide a default destination, you get prompted to enter the path and filename, then may have a few windows to close. Since the email client has to be open for the filters to work anyway, then it should be easy enough to make a Macro Scheduler script to provide the filename and close the windows. It could be triggered on WindowOpen for Window="Print to File".
OnEvent>WINDOW_OPEN,Print to File*,2,FillPrintDestination
Not totally done in the background, but that seems to be the options if you use Eudora.
OnEvent>WINDOW_OPEN,Print to File*,2,FillPrintDestination
Not totally done in the background, but that seems to be the options if you use Eudora.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!