~ubuntu-branches/ubuntu/quantal/maildir-utils/quantal

« back to all changes in this revision

Viewing changes to index/mu-storage.sql

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Preining
  • Date: 2010-01-19 20:12:43 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100119201243-d8qmzgxgexhy1bs0
Tags: 0.6~beta1-1
* new upstream release 0.6-beta
  - that merges the several different programs under one binary mu
  - no sqlite storage is used anymore
* debian packaging changes:
  - debian/patches
    . remove all patches
  - remove debian/HOWTO (upstream document) it is completely outdated
  - debian/control:
    . adjust build-dep for gmime-2.4
    . remove build-dep on quilt and sqlite
    . adjust the description to new reality
  - debian/rules:
    . do not try to install doc files that are not present anymore
    . disable quilt adaptions
  - add debian/NEWS that explains that the separate programs are gone

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
--
3
 
 
4
 
BEGIN TRANSACTION;
5
 
 
6
 
CREATE TABLE IF NOT EXISTS contact_type (
7
 
       id       INTEGER PRIMARY KEY,
8
 
       descr    TEXT NOT NULL UNIQUE -- to, cc, bcc, from
9
 
);
10
 
 
11
 
CREATE TABLE IF NOT EXISTS contact (
12
 
       id       INTEGER PRIMARY KEY,
13
 
       cname    TEXT DEFAULT '', -- sometimes, it's NULL; we set it
14
 
       address  TEXT DEFAULT '' -- to empty to prevent dups
15
 
);              
16
 
CREATE INDEX IF NOT EXISTS contact_address_index ON contact (address);
17
 
 
18
 
CREATE TABLE IF NOT EXISTS message (
19
 
       id         INTEGER PRIMARY KEY,
20
 
       msg_id     TEXT,                 -- the message id
21
 
       tstamp     INTEGER DEFAULT 0,    -- timestamp
22
 
       mpath      TEXT NOT NULL UNIQUE, -- path to the message
23
 
       mdate      INTEGER DEFAULT 0,    -- message date (time_t)
24
 
       msize      INTEGER DEFAULT 0,    -- message size (in bytes)
25
 
       sender     VARCHAR,              -- message sender (From:)
26
 
       recipients TEXT,                 -- message recipient (To:)
27
 
       cc         TEXT,                 -- CC:
28
 
       subject    TEXT,                 -- message subject
29
 
       flags      INTEGER,              -- flags (MuMsgFlags)
30
 
       priority   INTEGER               -- priority (MuMsgPriority)
31
 
);
32
 
CREATE UNIQUE INDEX IF NOT EXISTS mpath_index ON message(mpath);
33
 
                       
34
 
CREATE TABLE IF NOT EXISTS message_contact (
35
 
       message_id           INTEGER,   -- points to message      
36
 
       contact_id           INTEGER,   -- points to contact
37
 
       contact_type_id      INTEGER    -- points to contact_type 
38
 
);
39
 
 
40
 
COMMIT;