levelbest
Nov 08, 2007, 05:13 AM
Hi folks, new to this site. I followed a Google hit to here where someone posted about terminal and mail. Hoping I might find some answers here, or perhaps someone can point me in a helpful direction?
I use a database, Panorama by Provue. If you are not familiar with it, pretty cool IMHO. Works in Ram and can run applescripts in its procedures and also can send and get data from terminal. I used Panorama to build my contact manager and my project manager.
I want to have each clients record in the Pan DB, do a quick lookup of my email correspondence with Mail. I envision a simple line or so of data for each message containing subject, date ID From or to, and perhaps 256 characters of the body.
This is going to look into specific named folders in Mail associated with each contact.
I envision clicking on any messages shown on that list to have it open in Mail. The last part is easily done with AppleScript, that is why I wan the message ID.
What I am asking is if there is a way to do this in the terminal? If I type: mdfind belinda.mbox,
I get a path to that persons mbx. What I want is a method to get whatever is in that mbox and parse it back into my panorama variable to show as a list with the data I mentioned, and be useable with AppleScript to find it again later by message ID. Panorama is quie powerful at manipulating data. Once I can figure how to get all the info I want located with the mbox I specify, I should be able to clean it up in panorama.
Of course simpler is usually better.
I am much better in Panorama than I am with AppleScript. AppleScript is certainly useful, but it also feels a bit slow when parsing lots of messages. It also seems to meed to activate the program it is accessing. But when running the Pan procedure I just want to fill the client email form to see the history. I only want to open Mail when I click on a list value.
I am new here and I hoped I have not stumped the band with my request. Thanks for having the space to ask this.
I use a database, Panorama by Provue. If you are not familiar with it, pretty cool IMHO. Works in Ram and can run applescripts in its procedures and also can send and get data from terminal. I used Panorama to build my contact manager and my project manager.
I want to have each clients record in the Pan DB, do a quick lookup of my email correspondence with Mail. I envision a simple line or so of data for each message containing subject, date ID From or to, and perhaps 256 characters of the body.
This is going to look into specific named folders in Mail associated with each contact.
I envision clicking on any messages shown on that list to have it open in Mail. The last part is easily done with AppleScript, that is why I wan the message ID.
What I am asking is if there is a way to do this in the terminal? If I type: mdfind belinda.mbox,
I get a path to that persons mbx. What I want is a method to get whatever is in that mbox and parse it back into my panorama variable to show as a list with the data I mentioned, and be useable with AppleScript to find it again later by message ID. Panorama is quie powerful at manipulating data. Once I can figure how to get all the info I want located with the mbox I specify, I should be able to clean it up in panorama.
Of course simpler is usually better.
I am much better in Panorama than I am with AppleScript. AppleScript is certainly useful, but it also feels a bit slow when parsing lots of messages. It also seems to meed to activate the program it is accessing. But when running the Pan procedure I just want to fill the client email form to see the history. I only want to open Mail when I click on a list value.
I am new here and I hoped I have not stumped the band with my request. Thanks for having the space to ask this.