James Hillyerd
45e1995d17
Begin work on message retention
...
- Refactor datastore such that we have a FileDataStore that implements
the DataStore interface.
- Add in missing SMTP configuration options: max recips, max idle, max
message size
- Add retention options to config
2012-10-25 18:06:29 -07:00
James Hillyerd
0db9aa8966
Adjust captions
2012-10-24 22:20:34 -07:00
James Hillyerd
8aa804bbe5
Add another screenshot
2012-10-24 22:16:05 -07:00
James Hillyerd
81423a0b61
Handle EOFs different from other net io errors
2012-10-24 13:07:07 -07:00
James Hillyerd
81bb394755
More metrics, better logging
2012-10-24 12:40:17 -07:00
James Hillyerd
606fb124a6
Rename about page to status
2012-10-24 09:48:56 -07:00
James Hillyerd
bf0d6a6be5
Add some metric history
...
The count of connections and count of delivered messages now have 50
minutes of history available in the /about sparklines.
2012-10-23 19:48:59 -07:00
James Hillyerd
3b956a5341
Add sparklines to metrics
2012-10-23 16:41:54 -07:00
James Hillyerd
9789eab6cf
Limit datastore/mail to 65k dirs
...
Added a new layer where we take the first 4 chars of the mailbox hash
and use it to create directories. Should prevent us from having a
million directories under "mail" directly.
2012-10-23 13:51:33 -07:00
James Hillyerd
30d7cbc2a4
Metrics on about page are working
2012-10-23 13:43:40 -07:00
James Hillyerd
5833bb0701
Add expvar JSON @ /debug/vars
...
Counters include:
- Uptime
- SMTP connections
- SMTP connections (current)
- SMTP messages delivered
2012-10-23 09:51:30 -07:00
James Hillyerd
16a68000d3
Make log level configurable
2012-10-22 18:07:16 -07:00
James Hillyerd
3099777044
Update README
...
Switch to github.com for source of httpbuf, thegoods.biz is not firewall
friendly because it refers people to the git:// URL
2012-10-22 16:08:13 -07:00
James Hillyerd
db0d553f5d
Package reorg part 3
...
- binary "inbucketd" is now "inbucket"
- renamed "conf" to "etc" so it doesn't get confused with "config" pacakge dir
2012-10-22 15:57:05 -07:00
James Hillyerd
7215c041dc
Package reorganization part 2
...
End goal is to simplify build
2012-10-22 15:48:55 -07:00
James Hillyerd
4e5c0ce4d8
Reorganize packages pt 1
...
End goal: simplify build process
2012-10-22 15:20:33 -07:00
James Hillyerd
21a9211c0f
Remove Revel URL from README
2012-10-21 14:51:37 -07:00
James Hillyerd
01955d3cb2
Moved inbucketd to main to make building easier
...
Updated README.md with a install procedure that actually works
2012-10-21 14:47:41 -07:00
James Hillyerd
3650b93de7
Replace Revel favicon
2012-10-21 14:15:43 -07:00
James Hillyerd
2c7419c661
Gorilla is fully operational
...
- All mailbox actions working: index, list, show, html, source and delete
- Cleaned up extra files from Revel
- Took a guess at install process for README.md
This closes #4
2012-10-21 13:42:34 -07:00
James Hillyerd
71bb52a64a
Added partial templates
...
mailbox/list now renders
2012-10-21 12:42:54 -07:00
James Hillyerd
9c94bb2ab1
The main index template renders now!
2012-10-21 09:57:42 -07:00
James Hillyerd
442e8fbe14
Web server now starts
...
Can serve static content, no dynamic stuff yet
2012-10-20 23:03:59 -07:00
James Hillyerd
81fea97a90
SMTP server is running with new config engine
...
Web still not working
2012-10-20 21:36:57 -07:00
James Hillyerd
ce9289140a
Config file loading/validation implemented.
...
Builds, does not run!
2012-10-20 19:20:42 -07:00
James Hillyerd
ec0823b452
mime & util unit tests pass
...
added a sample of what the config should look like, may need tweaking
once I actually try to parse & use it.
2012-10-20 17:30:32 -07:00
James Hillyerd
3dd0206b48
New directory layout - DOES NOT COMPILE
2012-10-20 16:40:25 -07:00
James Hillyerd
2b3491fc87
Improved message rendering
...
Added a decodeSection function to mime.go that uses go-qprintable to
parse quoted-printable emails or MIME parts, fixes #7
Added a very basic TextToHtml converter to provide nicer rending of text
message bodies.
2012-10-19 12:50:16 -07:00
James Hillyerd
9e389e00d3
Quoted Printable sample data for upcoming fix
2012-10-18 22:49:56 -07:00
James Hillyerd
69313046aa
Second attempt at screenshot in README.md
2012-10-17 23:29:11 -07:00
James Hillyerd
0889e6469a
Add screenshot to readme
2012-10-17 23:20:41 -07:00
James Hillyerd
ddaeb9ee01
Update readme
2012-10-17 21:58:13 -07:00
James Hillyerd
24dcd62951
Basic HTML email rendering
...
Messages with a MIME text/html MIME part will now be displayed with an
`HTML` button above them that will open another window and render the
HTML when clicked.
There is no sanitization performed, and inline attachment display is
not support.
This closes #2
2012-10-17 21:47:48 -07:00
James Hillyerd
0efb28ef38
Basic MIME parsing is now integrated, this closes #1
2012-10-17 21:10:02 -07:00
James Hillyerd
e76fad1523
More MIME dev, new unit test libs
...
MIME parsing code is now in an acceptable state to integrate into
web UI. It should be able to display text and/or HTML (sans
attachments).
Added "testify" unit testing library, providing assertions and mocks.
2012-10-17 20:25:27 -07:00
James Hillyerd
bc7526abef
More MIME parsing progress!
...
After parsing MIME into a tree of nodes, we can now issue
BreadthFirstSearch commands against it to locate the text and HTML
portions of the email.
2012-10-15 22:56:45 -07:00
James Hillyerd
a2070dd60a
Parse MIME parts into a node tree
2012-10-15 21:04:58 -07:00
James Hillyerd
46b123606b
Started work on MIME parser
...
I'm hoping to mostly rely on the official mime and mime/multipart
packages, but Inbucket is still going to have to decided what to
do with the various parts it reads.
2012-10-14 23:11:39 -07:00
James Hillyerd
da8e0bc508
Many small refinements to front/backend UI
...
Changes:
- Added a friendlyTime helper for nicer timestamps
- Added validation to most action methods
- Added error flash to several template files
- Now making use to c.RenderError() to handle action errors
- Removed message list slideUp() effect, takes too long
- Fixed a problem with my vim indentation configuration, so CSS and
HTML should be indented more consistently.
2012-10-14 16:02:14 -07:00
James Hillyerd
264d1d0165
Fix some IE rendering/caching issues
2012-10-14 13:09:25 -07:00
James Hillyerd
6834d71c9b
Update README with installation steps
2012-10-13 16:12:48 -07:00
James Hillyerd
eb363aa670
Add a view source button to see raw text of message
2012-10-13 14:37:11 -07:00
James Hillyerd
a0ab84abb5
Message list is now loaded by AJAX and can be refreshed.
...
Added a message delete button.
2012-10-13 14:11:12 -07:00
James Hillyerd
301c3efa63
Implement SIZE ESMTP extension
2012-10-12 18:19:43 -07:00
James Hillyerd
ca66280f74
Successfully accepted an ESMTP message from Mac Mail!
2012-10-12 14:05:55 -07:00
James Hillyerd
f5b7aca712
Add some text to readme and the MIT license.
2012-10-11 15:23:51 -07:00
James Hillyerd
1481c5c9d8
Basic AJAX GUI is now functional
2012-10-11 11:49:23 -07:00
James Hillyerd
31395891a4
Warning: carnage. Hacking in a CSS template.
2012-10-10 22:46:59 -07:00
James Hillyerd
555332c98e
Add a way to enter a username to view. Cleanup route formatting.
2012-10-10 21:04:28 -07:00
James Hillyerd
3fe4c937cd
Add a controller to view list mailbox contents, view individual
...
messages.
2012-10-10 13:46:03 -07:00