How to export mail message body data detectors information, not address bok

Is there anyway to export Apple mail's "data detectors" information within the message body other than to the address book? I don't want to export the other non detector information contained in the body of the message. I would also like to include From, Subject and Date. Preferably the export result would be in a organized comma format.
Any suggestions?
Thanks in advance.

James,
Two routes to try come to mind, the first being Applescript. Mail is obviously "aware" of the info contained in the detectors, and of course it knows all about what is contained in the header. You can probably use Applescript to extract the desired data, placing it in a Text Edit document. It has been some time since I haves used Applescript myself, so I won't be much help in guiding you. Regardless, you would need to teach yourself how to use Applescript, even with assistance.
The other route to take would be to drag these emails out of Mail to the Finder, creating standard text files. You could then handle them in one of the command line text editors- scripted, of course- to extract and format the needed data. Again, this is something you'd need to explore on your own.
Since these messages all have the same formatting, it is simply a matter of identifying the data you need, then placing that data in a properly formatted text document. Generally speaking, this is part and parcel of what both Applescript be text editors do.
Scott

Similar Messages

  • How can i make apple mail dislay message body to the left not below the mes

    How can i make apple mail display message body to the left not below the messages
    headers pane ? something like outlook

    There is a plugin to do this in Leopard but currently its not compatible with SL however you might like to try the beta release which has preliminary support for 10.6:
    http://www.macupdate.com/info.php/id/21899

  • Simple AppleScript to export Mail messages to FileMaker DB?

    Hello everyone,
    I'm using a product called "Mail Archiver X" to archive messages from Apple Mail into a custom FileMaker database ("eMailViewerX" - this is the target database that comes with Mail Archiver and is required for the process), from where I copy these messages to my main message archive (another FileMaker DB).
    While that process works, it is kind of clumsy (Apple Mail > Mail Archiver X > FileMaker DB #1 > FileMaker DB #2) - and it breaks every time when there is a new version of Apple Mail or OS X until "Mail Archiver X" has been updated by the developer.
    So I'm looking for a more simple solution: an AppleScript that will export all messages from exactly one folder ("To Archive") in Apple Mail (4.5/Snow Leopard or 5.0/Lion) as a simple CSV or .tab file, with the following data per line:
    Message Sender*
    Message Receiver*
    Sent Date
    Sent Time
    Subject
    Body
    * Separation of name and e-mail address would be cool, but I understand this may not (always) be possible.
    The only tricky part may be the conversion of carriage returns in the e-mail messages' body into the special character FileMaker expects in TAB or CSV files. In BBEdit, this is shown as \x{0B} (UTF8: 0B). So there would have to be a Find/Replace for that in the script.
    This does not have to be free (although I wouldn't mind - I'd gladly pay for something that is simple and reliable.
    If someone knows about such a script or is willing to write it, I would really appreciate it.
    TL;DR: I want to export all messages from an Apple Mail folder to a FileMaker-readable CSV file.

    You haven't fully specified the problem:
    It's not clear what to do when there are multiple recipients of an email
    You didn't say precisely what Filemaker fields you wanted in the file, nor what order you wanted them in, nor whether you needed a header row in the text file
    That being said, what you want is a script somewhat like the following (with many things still needing to be adjusted):
    set archiveFolder to "To Archive"
    set tab_delFilePath to "Path:to:tab_del file"
    set tab_delText to {}
    tell application "Mail"
              set messagesToArchive to every message of mailbox archiveFolder
              repeat with thisMessage in messagesToArchive
                        set thisEntry to {}
                        tell thisMessage
                                  set {itsSender, itsRecipients, itsDate, itsSubject, itsText} to {sender, recipients, date received, subject, content}
                                  set {senderName, senderAddress} to {extract name from sender, extract address from sender}
                                  if senderName = senderAddress then set senderName to ""
      -- get date parts
                                  set itsDateString to short date string of itsDate
                                  set itsTimeString to time string of itsDate
      -- there may be multiple recipients; create list
                                  set {recipientName, recipientAddress} to {{}, {}}
                                  repeat with thisRecipient in recipients
                                            tell thisRecipient
                                                      set recipientName's end to name
                                                      set recipientAddress's end to address
                                            end tell
                                  end repeat
      -- convert carriage returns to linefeeds in message body; unicode 0B is ascii 11, which is linfeed
                                  set itText to my tid(my tid(itsText, return), linefeed)
                                  set thisEntry to {senderName, senderAddress, itsDateString, itsTimeString, itsSubject, my tid(recipientName, ","), my tid(recipientAddress, ","), itsText}
                        end tell
                        set end of tab_delText to my tid(thisEntry, tab)
              end repeat
    end tell
    set tab_delText to tid(tab_delText, return)
    set fp to open for access tab_delFilePath with write permission
    write tab_delText to fp
    close access fp
    on tid(input, delim)
      -- a subroutine for handling text item delimiters
              set {oldTID, my text item delimiters} to {my text item delimiters, delim}
              if class of input is list then
                        set output to input as text
              else
                        set output to text items of input
              end if
              set my text item delimiters to oldTID
              return output
    end tid
    it's a place to start, anyway. 
    If you want to dangle money in front of my eyes, send me an email and I'll get it set up properly on your system (including automating the process and importing the data directly into your filemaker database).

  • How to setup mail client in Data Integrator 11.7 to make use of mail_to()

    How to setup mail client in Data Integrator 11.7 to make use of mail_to() function.
    I am using mail_to() function in one of my job to know the status of source file. If source file is not ready, our DI job should fail and send mail notification with reason for failure.
    But mail_to() function is not sending any mail. I guess I need to set up email client.
    Any one please help to resolve this issue.
    Thanks
    Phani

    From the DI documentation that comes with the installation:
    To use this function, a mail client must be installed and running on the Job
    Server computer that calls the function. The login account for the mail client
    must have the same user name and password as the Data Integrator service.
    The type of client varies by the operating system:
    u2022 If the Job Server is on a computer running the Windows operating
    system, then the mail client must comply with MAPI (message application
    programming interface). In addition, the mail client must be configured as
    the default mail client. For example, Microsoft Outlook is a MAPI-based
    mail client.
    If the Job Server is on a computer running the UNIX operating system,
    then the mail client must be mailx-compliant.
    So:
    Mail client installed and configured and set as default
    Mail client uses the same credentials as the job server service
    Or use another function: smtp_to();
    If still not working or you are not allowed to use an installed mailclient on your box, then try Blat: http://www.blat.net/

  • When I tried to Mail Merge for Data is is not exporting any data.

    HI,
    EBS-12.1.3
    DB-11gR1
    OS - RHEL 5.6
    [With my Login User and SysAdmin Login User] When I enter into to the "People -> Enter and Maintain" Form and then I press the "Export Button", there is error Alert
    Function is not available to this responsibility. Change Responsibilities or Connect to the System Administrator
    I Added the Function "HR ADI Seeded Integrator Form Functions" into the "AE HRMS Manager" Responsiblity. It is also working and Export Data icon is enable.
    Problem:
    But Problem is when I tried to Mail Merge for Data is is not exporting any data.
    ====================================================================
    Steps
    1.Move to the "People -> Recruirment" and then "Request Recruitment Letter" .
    2. Enter the New Request. as
    Letter Name "App. Letter Contract Site",
    Automatic or Manual = Manual.
    Select the Name from the LOVs for the Request for Detail Block.
    3. Press the "Export Data" icon.
    4. Integrator Page Appear with my Custom Integrator Name as "Appointment Letter - Contact Site".
    5. Select the "Word 2003" from the View List. and Reporting is Checked.
    6. Review the Folowing Enteries as:
    Integrator Appointment Letter - Contact Site
    Viewer Word 2003
    Reporting Yes
    Layout App. Letter Contract Site
    Content XXHR_MBE_APP_LET_CONT_SITE_V
    Session Date 2011/08/02
    Mapping XXHR_MBE_APP_LET_CONT_SITE_V Mapping
    7. Press "Create Document" Button.
    8. It will open the Excel 2003 and then Word 2003. But no data down download from the Form.
    9. It open the Mail Merge Letter but no Data is Display.
    ===========================================================
    Note:
    a. I am following the Steps from the Link:"http://apps2fusion.com/at/38-ss/351-generate-recruitment-letters-web-adi".
    b. From the "Desktop Integrator Manager", "Oracle Web ADI", "HRMS Web ADI", it is working fine and Dowload the Data.
    ===========================================================
    Thanks
    Vishwa

    Please try the solution in ("Function not available to this responsibility" Error While Cliclking On Forms Personalisation [ID 1263970.1]) and see if it helps.
    Thanks,
    Hussein

  • How to export the text edit data to excel file without splitting the data in excel file?

    how to export the text edit data to excel file without splitting the data in excel file?
    I have a requirement in SAP HR where in the appraiser can add comments in the area given and can export that to excel file. Currently the file is getting exported but the comments getting split into deifferent rows.
    I want the entire comment to be fit in one row.
    Please help.
    Thank you

    Hi,
    if your text edit value is stored in 'lv_string' variable.
    then before exporting the value to excel you have to remove CL_ABAP_CHAR_UTILITIES=>NEWLINE
    that is '#' from the variable lv_string.
    for that use code some thing like this.
    REPLACE ALL OCCURRENCES OF CL_ABAP_CHAR_UTILITIES=>NEWLINE in lv_string WITH space.
    I think this will do the trick.

  • How can I attach a jpg file in a mail message as the file icon, not as an opened image in the text?

    How can I attach a jpg file in a mail message as the file icon, not as an opened image in the text?

    what's wrong with this picture

  • Getting returned mail messages for emails I did not send

    I've recently started getting returned mail messages for emails I did not send. Why is this happening and how can I stop it?

    cadillacjoe69 wrote:
    That might be tough to do. Is there a rule I can use to help. The mail messages are so varied.
    I'd look at the headers (View -> Message -> Long Headers) to see if there's anything in common, then try to create a rule based on that.
    By the way, welcome to Apple's discussion groups.

  • The user or users have been added successfully, but there was an error in sending the e-mail message. The server may not be set up correctly to send e-mail. To verify that e-mail is configured correctly, contact your server administrator

    I got this problem when I tried to configure out-going email and add an account to farm administrator group.
    I configure out-going email according to this website http://technet.microsoft.com/en-us/library/cc288949.aspx
    Here are the screen shots.
    The SMTP server and email accounts work out OK when I use Outlook 2010 to test.
    Anyone can help me about it? Thanks.
    Here is the log.
    09/20/2012 09:21:00.36 w3wp.exe (0x1F7C)                      
    0x1138
    SharePoint Foundation         E-Mail                        
    8gsf
    High    
    #160008: The e-mail address 'admin3.sharepoint@domain' contains illegal
    characters. df98555c-612f-4a58-9443-ab6e9a4fcc53
    09/20/2012 09:21:00.36 w3wp.exe (0x1F7C)                      
    0x1138
    SharePoint Foundation         General                      
    8kh7 High    
    Cannot complete this action.  Please try again.
    df98555c-612f-4a58-9443-ab6e9a4fcc53
    09/20/2012 09:21:00.36 w3wp.exe (0x1F7C)                      
    0x1138
    SharePoint Foundation         E-Mail                        
    7946 Critical
    Cannot complete this action.  Please try again.
    df98555c-612f-4a58-9443-ab6e9a4fcc53
    09/20/2012 09:21:00.36 w3wp.exe (0x1F7C)                      
    0x1138
    SharePoint Foundation         Runtime                      
    tkau Unexpected
    Microsoft.SharePoint.SPException: The user or users have been added successfully, but there was an error in sending the e-mail message. The server may not be set up correctly to send e-mail. To verify that e-mail is configured correctly, contact your
    server administrator.    at Microsoft.SharePoint.ApplicationPages.AclInv.SendEmailInvitation(EntityEditor picker, String subject, String message)     at Microsoft.SharePoint.ApplicationPages.AclInv.BtnOK_Click(Object sender, EventArgs e)
        at System.Web.UI.WebControls.Button.OnClick(EventArgs e)     at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)     at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String
    eventArgument)     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStage...
    df98555c-612f-4a58-9443-ab6e9a4fcc53
    The e-mail address I have tested it for several times and there is no problem.
    Anyone has any clue about this error?

    Hi.
    This I have seen before...
    It can be that the SMTP relay server is configured to only allow certain IP ranges or addresses.
    It can be that the firewall on the SP server does not allow for SMTP traffic (normally 25, for example for Exchange).
    It can be that there is an Antivirus on the SP server(Client AV) that prohobits the Timer service to send email from this server. I have seen MacAfee do this. Needed an policy change.
    If, its the builtin SMTP service you are using, check this link:
    http://blog.sharepointrx.com/2010/11/18/setting-up-the-iis-smtp-server-for-sending-email-from-sharepoint-2010-on-server-2008-r2/
    Check that and try again.
    Regards
    Thomas Balkeståhl - Technical Specialist - SharePoint -
    http://blog.blksthl.com
    Download the SharePoint Branding Project here
    Download the SharePoint 2010 Site Settings Explained here

  • How to configure Mail app on mountain lion to not download all my emails in hotmail server. I need only just 1-2 weeks

    How to configure Mail app on mountain lion to not download all my emails in hotmail server. I need only just 1-2 weeks

    Try going to the web based site and see if you can set up a temporary folder there. Move anything you don't want to download to that folder.

  • How to put condition for one date range should not interfear with another ?

    hi friends,
    how to put condition for one date range should not interfear with another  date range.
    my data base table has two fields
    from date
    to date.
    when we enter the date range in the data base , new date range means from date and to date should not interfear.
    can  anybody help me.
    thanks &Regards,
    Revanth
    Edited by: rk.kolisetty on Jul 1, 2010 7:18 PM

    Do it the SAP way....
    First entry...from is today, to is 99991231.
    New dates entered, now we have two rows...:
        from is original date  to becomes yesterday.
        From is today          to is 99991231

  • How to read the message body in a mail

    how can we read the message body of a mail. i am using pop3 server for reading the mails. my program is
    public class GetMessageExample {
    public static void main (String args[]) throws Exception {
    String host = args[0];
    String username = args[1];
    String password = args[2];
    Properties props = new Properties();
    Session session = Session.getInstance(props, null);
    Store store = session.getStore("pop3");
    store.connect(host, username, password);
    Folder folder = store.getFolder("INBOX");
    folder.open(Folder.READ_ONLY);
    BufferedReader reader = new BufferedReader (
    new InputStreamReader(System.in));
    Message message[] = folder.getMessages();
    for (int i=0, n=message.length; i<n; i++) {
    System.out.println(i + ": " + message.getFrom()[0]
    + "\t" + message[i].getSubject());
    System.out.println(
    "Do you want to read message? [YES to read/QUIT to end]");
    String line = reader.readLine();
    if ("YES".equals(line)) {
    message[i].writeTo(System.out);
    } else if ("QUIT".equals(line)) {
    break;
    folder.close(false);
    store.close();
    i am getting the following exception
    Exception in thread "main" java.lang.NoSuchFieldError: contentStream
    at com.sun.mail.pop3.POP3Message.getContentStream(POP3Message.java:115)
    at javax.mail.internet.MimePartDataSource.getInputStream(MimePartDataSou
    rce.java:61)
    at com.sun.mail.handlers.text_plain.getContent(text_plain.java:65)
    at javax.activation.DataSourceDataContentHandler.getContent(DataHandler.
    java:755)
    at javax.activation.DataHandler.getContent(DataHandler.java:511)
    at javax.mail.internet.MimeMessage.getContent(MimeMessage.java:1072)

    The Part interface that the Message class implements describes 3 ways for getting the content of a message. To use an Input Stream, you can call the getInputStream() method on the message itself, rather than System.in.
    Hope this helps!

  • Import/Export Mail messages

    Can anyone tell me how to export all my email messages from Mail from one computer to another?
    Ie, from an iMac G5 to a MacBook.
    All I seem to be able to achieve is copying the application and not the actual email messages.

    Folders You Can Move to Your new Mac
    From the Home folder copy the contents of Documents, Movies, Music, Pictures, and Sites.
    In your /Home/Library/ folder:
    /Home/Library/Application Support/AddressBook (copy the whole folder)
    /Home/Library/Application Support/iCal (copy the whole folder)
    Also in /Home/Library/Application Support (copy whatever else you need including folders for any third-party applications)
    /Home/Library/Keychains (copy the whole folder)
    */Home/Library/Mail (copy the whole folder)*
    */Home/Library/Preferences/com.apple.mail.plist (* This is a very important file which contains all email account settings and general mail preferences.)*
    /Home/Library/Preferences/ copy any preferences needed for third-party applications
    /Home /Library/iTunes (copy the whole folder)
    /Home /Library/Safari (copy the whole folder)
    If you want cookies:
    /Home/Library/Cookies/Cookies.plist
    /Home/Library/Application Support/WebFoundation/HTTPCookies.plist
    For Entourage users:
    Entourage is in /Home/Documents/Microsoft User Data
    Also in /Home/Library/Preferences/Microsoft
    For FireFox:
    /Home/Library/Applications Support/FireFox
    /Home/Library/Preferences/org.mozilla.firefox.plist
    Credit goes to another forum user for this information.

  • How can I save mail messages to my computer and not my mail program

    My mail program seems to be slow.  I'm not sure why.  I get the spinning ball frequently.  I need to save mail messages sometimes for a few years and there are hundreds of emails. Is it better to save them on my computer than my mail program?  I may need to retrieve them at some other time so they need to be readable.  Is that possible?
    I'm using OS X 10.9.4. I have a 3.06 GHz processor and 12 GB of memory.  Thanks

    You can select to export a folder to save as a .mbox file. This file would need to be imported if you wanted to view the messages.
    Select mailbox (folder)
    Under Mailbox in the Menu bar select Export Mailbox...
    You might also want to check out the demo for EagleFiler by the author for SpamSieve. You could view and search the messages archived in EagleFiler.
    http://c-command.com/eaglefiler/
    Regarding Mail being slow....
    Is it only Mail that is slow?  How much free space on your drive? Use Disk Utility to find available space.

  • How to restore mail messages and address book?

    Recently the hard drive on my eMac failed. The drive would no longer mount. Fortunately, my entire user folder has been recovered. While I see the files such as AddressBook.data and Incoming_Mail they are showing up as generic documents. I can't seem to import these files or open them with their respective applications (Address Book and Mail). How can I restore these previous messages and prior address book? I want to add this recovered data to the new address book and mailboxes that I have created in the interim after the hard drive crashed and I began using another Mac.
    17" iMac   Mac OS X (10.4.8)
    20" iMac Intel Core 2 Duo   Mac OS X (10.4.8)  

    the new version of Mail is not recognizing the mbox files and therefore I can't import them.
    Again, this is wrong. Not only does Mail 2.x recognize Mail 1.x mailboxes, but can import them as either Mail for Mac OS X or as Other. The exact procedure is slightly different in each case.
    I need a way to bring these old mbox message files into Tiger.
    And I need that you explain what exactly it is that you’re doing and what exactly is the problem in order to be able to determine what exactly it is that you’re doing wrong...

Maybe you are looking for

  • ITunes (10.6.1) is not friends with my Mac.

    Hi, I recently downloaded the newest version of iTunes (10.6.1) on my Mac and now it won't sync with my iPhon. A message appears saying I require MAC OS X version 10.6.8 or later. I currently have version OS X 10.5.8. What do I do??? Please someone h

  • Need help  traversing through files

    i have a folder with 99,999 xml files. i need to access each and everyone of these files to look for a certain value.my question is: is there any convenient way of traversing through these files? File xmlfile = new File(""); File onefolder = new File

  • Unable to browse network shares after installing Time Capsule

    After installing my time capsule I am no longer able to browse the other computers on my network. I can ping them just fine but when I try to see them under "shared" or to brows to the ip address, it doesn't display the other computers. It sees the T

  • 9i R2 problem with httpserver (Apache Service)

    I installed Release 2 on MS Win 2k on a Dell Pentium 4, 2.2 Ghz, 75 gb drive. I am am having a problem starting the httpserver (appache). The text below is from the event viewer (2 messages. Any ideas. thanks The Apache service named C:\oracle\ora92\

  • Uploading my pics from Photoshop Elements 11

    I am trying to order albums of the pics I took and edited in Photoshop Elements 11 at Walmart.com.  I am not able to upload my pics from Photoshop but I am able to upload from my other pics and libraries on my computer.  Is there a way to to upload t