Header import, and dumporiginal extensions.

Add ability to dump headers or mimetypes for original messages.
Add ability to dump all messages, instead of just hashes listed.
Add new command  cmd/headers to import all headers from messages in table
    original.  Utility can work incrementally or do fully table imports.
Moved 'fetch all original messages' code to db/util.go.  Added conditional
version given table name that will only return original messages that do not
    have matching hashes in the specified table.
This commit is contained in:
2014-04-01 23:18:12 -07:00
parent 61c61a1075
commit 2f6b083f47
5 changed files with 284 additions and 4 deletions

7
pg/init-header.sql Normal file
View File

@@ -0,0 +1,7 @@
DROP TABLE header;
CREATE TABLE header (
hash CHAR(40) REFERENCES original (hash),
name TEXT,
value TEXT
);