Mail search code
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Mail search code
Is there LiveCode script to search through several years of mail ?
It would have to have built in pauses in order to allow server upload batches..,
It would have to have built in pauses in order to allow server upload batches..,
-
- VIP Livecode Opensource Backer
- Posts: 9857
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Mail search code
What format is it in? What is the role of the server? How frequently and flexibly would you be doing these searches? What output do you want?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Mail search code
Thanks for your response, Richard !
[What format is it in?]
=Macintosh "Mail" program
[What is the role of the server?]
=script would prompt "Mail" to keep "checking mail" until month/year,
performing keyword search, returning enclosed document
[How frequently and flexibly would you be doing these searches?]
=once
[What output do you want?]
=TextWrangler text file
[What format is it in?]
=Macintosh "Mail" program
[What is the role of the server?]
=script would prompt "Mail" to keep "checking mail" until month/year,
performing keyword search, returning enclosed document
[How frequently and flexibly would you be doing these searches?]
=once
[What output do you want?]
=TextWrangler text file
-
- VIP Livecode Opensource Backer
- Posts: 9857
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Mail search code
Since the task is a one-off, it may not be worth the effort to write a parser/query engine for Apple's mail format.
Does Mail support AppleScript? If so this might be a shorter task than originally envisioned.
Does Mail support AppleScript? If so this might be a shorter task than originally envisioned.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Mail search code
This is in no way a complete answer, but may provide a useful starting point: https://apple.stackexchange.com/questio ... by-subject
Although if it’s a 1-off, why program a solution instead of using built in tools?
Although if it’s a 1-off, why program a solution instead of using built in tools?
-
- VIP Livecode Opensource Backer
- Posts: 9752
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Mail search code
Stam, do you mean built into Mac's Mail client?why program a solution instead of using built in tools?
If so, then I think the OP wanted to have LC do that for him, and have the results brand spanking ready for further processing.
If not (that is, there is something in LC) what did you mean?
Craig
-
- VIP Livecode Opensource Backer
- Posts: 9752
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Mail search code
I use the Mac mail client.
One can sort by several criteria, like the date, and it would take little effort to identify a group of mails sorted that way. But I do not see a way to export such a group into some form of text file. I see you can export as PDF, but then each thread is placed into a separate file somewhere.
Craig
One can sort by several criteria, like the date, and it would take little effort to identify a group of mails sorted that way. But I do not see a way to export such a group into some form of text file. I see you can export as PDF, but then each thread is placed into a separate file somewhere.
Craig
Re: Mail search code
I meant if it’s a 1-off it’s usually much more work to automate it via code rather than go low-tech as it were.dunbarx wrote: ↑Tue Sep 26, 2023 5:54 pmStam, do you mean built into Mac's Mail client?why program a solution instead of using built in tools?
If so, then I think the OP wanted to have LC do that for him, and have the results brand spanking ready for further processing.
If not (that is, there is something in LC) what did you mean?
Craig
If on the other hand it’s something that may be used repeatedly then coding a solution makes more sense. And as Richard says probably something that can be done with AppleScript, either inside livecode or some app like Automator.
Come to think of it, wouldn’t Automator be a better choice?