27 Commits

Author SHA1 Message Date
9bcfb1bf21 First version to show (raw) email bodies.
Made xwebmail work with new handlers package.
Pulls important headers from the database and provides extremely basic folder
view on webpage.
Reverted layout customizations returning folder view to original wider width.
JS App now handles all the rendering, index.html only contains placeholder
with background to indicate loading.
2014-04-16 22:23:45 -07:00
803913523e Add devweb support for auto-reloading webapp. 2014-04-12 15:31:53 -07:00
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
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
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
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
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
c7bcdde1e5 Use expvar for message stats. 2014-03-24 23:21:38 -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
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
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