• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Metadata storage in Tiger Mail?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Metadata storage in Tiger Mail?


  • Subject: Re: Metadata storage in Tiger Mail?
  • From: Le Stang Jean-Baptiste <email@hidden>
  • Date: Tue, 3 May 2005 10:17:56 +0200

So I'm looking for better options.  I can probably do this in dummy BCC recipients, but that's not nearly as elegant.  Any better ideas?

Well, each mail is stored as a file on your hardrive, I think (I'm sure of it in fact) that you can add SpotLight comments using the Finder : 

set comment of (file "Tiger:Users:jeanbaptiste:Library:Mail:Mailboxes:AppleScript Users.mbox:Messages:4107.emlx") to "foobar"

And now, just search for "foobar" in Spotlight.

BTW can someone explain me why the following is not working ?

set comment of (alias "Tiger:Users:jeanbaptiste:Library:Mail:Mailboxes:AppleScript Users.mbox:Messages:4107.emlx") to "foobar"

THe last thing is to be able to make a relation between the mail message and its id.

To do so, you'll have to go and investigate in the following file : alias "Tiger:Users:jeanbaptiste:Library:Mail:Envelope Index"

This file is in fact a SQL database that you can query using the 'sqlite3' command line utility : 

Here is the structure of the databases (not the INDEX, only the TABLES)

CREATE TABLE messages (ROWID INTEGER PRIMARY KEY AUTOINCREMENT, message_id, in_reply_to, remote_id INTEGER, sender INTEGER, subject_prefix, subject INTEGER, date_sent INTEGER, date_received INTEGER, date_last_viewed INTEGER, mailbox INTEGER, remote_mailbox INTEGER, original_mailbox INTEGER, flags INTEGER, read, flagged, size INTEGER, color, encoding, pad);

CREATE TABLE subjects (ROWID INTEGER PRIMARY KEY, subject);

I'm far from being an SQL expert but if someone want to try it.

++ JB

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Metadata storage in Tiger Mail?
      • From: Brett <email@hidden>
    • Re: Metadata storage in Tiger Mail?
      • From: Jeff Porten <email@hidden>
References: 
 >Metadata storage in Tiger Mail? (From: Jeff Porten <email@hidden>)

  • Prev by Date: Broken mail script
  • Next by Date: Re: text item delimiter-resolved.
  • Previous by thread: Metadata storage in Tiger Mail?
  • Next by thread: Re: Metadata storage in Tiger Mail?
  • Index(es):
    • Date
    • Thread