46 Commits

Author SHA1 Message Date
14bd95851c Add import for 'important' headers.
Process and normalize some headers that will be used in quickly recalling
messages.
2014-04-11 21:21:56 -07:00
aebb1a2c92 Show domain part of message-id sorted by popularity. 2014-04-09 19:41:21 -07:00
b1c2bb6e25 Moved doc. 2014-04-08 20:06:56 -07:00
7f3674cbd8 Add doc for jwz threading, we should implement this. 2014-04-01 23:44:57 -07:00
2f6b083f47 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.
2014-04-01 23:18:12 -07:00
61c61a1075 Set header name correctly. 2014-04-01 23:17:12 -07:00
8fa9825b8e Simple web server for showing original messages. 2014-03-30 21:53:33 -07:00
d7c789863e Print message hash when invalid UTF-8 encountered. 2014-03-30 21:31:53 -07:00
ef8d941158 Create common db package. Move original message to fetch to db. 2014-03-30 21:25:46 -07:00
27f38e6614 Add dryrun mode to contacts. 2014-03-30 21:24:44 -07:00
4eaa3b8710 Incrementally add contacts from messages.
By default imports from messages that have no values in the contact table.
Added -all option use all rows in original table.
2014-03-30 19:57:15 -07:00
646ec2864f Use original header bytes instead of printing parsed forms. 2014-03-30 10:49:14 -07:00
b79c894575 Simple util to print original email based on hash. 2014-03-29 22:39:00 -07:00
8fb345cfb1 Query for messages needing contact extraction. 2014-03-29 22:33:05 -07:00
8021820311 Allow import by filename. 2014-03-29 22:32:03 -07:00
c266e04053 Add mode to load message from stdin.
If no maildir specified stdin is treated as a message. This program is useful
for loading email into the DB as procmail rule.
2014-03-29 21:56:57 -07:00
12199604c1 Add helper to print message with hash as a header.
Broke out email.go's Hash() in to multiple functions to make this easier, and
update tools that used it.
2014-03-28 21:46:34 -07:00
4c906e9f49 Rename to match directory. 2014-03-28 21:44:03 -07:00
53485960db Use COALESCE instead of CASE for more concise query. 2014-03-28 20:16:13 -07:00
8f03a8072a Fill in empty count and name when value comes from unnamed. 2014-03-28 20:06:58 -07:00
1e70c13cf9 Harvest email addresses from messages.
Go tool for reading original messages from DB and filling out contact table.
SQL scripts for building address book table from most commonly referenced
    names per unique email address.
2014-03-27 21:38:00 -07:00
56db982878 Limit amount read when slurping message into memory. 2014-03-27 21:37:25 -07:00
6e9423bdb1 Disk Usage per table for PostgreSQL. 2014-03-27 21:35:38 -07:00
c7bcdde1e5 Use expvar for message stats. 2014-03-24 23:21:38 -07:00
06310ad1cc Rename pq -> pg (postgres has no Q). 2014-03-20 22:28:33 -07:00
0701a210db Query to show files that have duplicate hashes. 2014-03-20 22:28:15 -07:00
1b8afaa73f Add person table.
Import mail associated with -user specified on commandline.
2014-03-20 22:27:50 -07:00
bb8f546fd0 New utility to import mail into PostgreSQL.
Minor leak cleanup in mailhash.
2014-03-18 23:01:39 -07:00
f7c0774798 Start experiment with local CSS tweaks. Add react based loading of unread data. 2014-03-02 23:22:50 -08:00
a607477934 Set content type so browsers will interpret result as JSON. 2014-03-02 23:22:23 -08:00
d83b2fc139 Move handler to established URI. Add CORS wildcard. 2014-03-02 22:37:29 -08:00
a3d93e4a1b Import http://purecss.io/layouts/email/ 2014-03-02 21:39:04 -08:00
2ba451df36 Move unread command to cmd/ 2014-03-02 21:23:28 -08:00
9becd3e2e7 Add skip file support, and only log parse errors @ INFO level. 2014-02-27 19:29:16 -08:00
73f1751d5b Don't crash when hash not in map. 2014-02-26 20:29:49 -08:00
b2910c8ec0 Add load and mark as un/read functionality. 2014-02-16 21:02:17 -08:00
9a42a60278 Add utility to generate and save hashes of email and unread state. 2014-02-15 21:29:44 -08:00
8523965168 Library for parsring/generating Maildir filenames. 2014-02-08 22:13:34 -08:00
003605a430 Pick the right path to use when determining if a path is a maildir. 2013-09-03 09:13:50 -07:00
0ebcc33f55 Add pprof; use Readdirnames instead of Walk for finding files. 2013-09-02 19:42:16 -07:00
00278ba2dd Rename watcher to unread 2013-09-01 20:11:43 -07:00
b64f9ee012 Functioning unread counts through JSON. 2013-09-01 20:06:25 -07:00
cc9cb63800 Top-level counter working. 2013-08-31 22:02:04 -07:00
b48ebf217c Use walk instead of glob to scale being shell's limit to expand * 2013-08-22 21:44:30 -07:00
7a90676cda Path cleanup. 2013-08-13 20:54:10 -07:00
4c43b679a1 Initial commit of a handleful of utils 2012-06-28 17:02:07 -07:00