Commit Graph

20 Commits

Author SHA1 Message Date
Samuel Cochran
d932eff261 Use plain old JSON 2016-04-23 15:48:37 +08:00
Grant McCarriagher
a6ef2147e0 Make the delete all messages variables not conflict with the delete single message variables. 2016-01-11 12:23:41 -05:00
Jordan Eldredge
de8a4735a7 Ensure messages are shown in the order they were recieved
If two messages were received within the same second, they may be sorted by the order they were received. Using `id` as a tie breaker should give a more consistent result.

I noticed this issue when writing tests for my Codeception testing framework Mailcatcher module: https://github.com/captbaritone/codeception-mailcatcher-module/issues/13 

**Note:** I have not tested this change, but I think it should be correct.
2014-12-31 08:34:58 -08:00
Samuel Cochran
272b4fa855 My style has evolved 2014-03-17 16:31:05 +11:00
Samuel Cochran
44262f9862 They are prepended in JS-land anyway
Addresses @gondo's concern in #78.
2013-06-07 14:25:58 +08:00
Charlie Sanders
2ae395a0ad Sort messages from newest to oldest 2013-01-28 20:21:32 -06:00
Ivan Kuchin
09312ffb6e delete individual messages 2012-10-25 01:27:00 +02:00
Samuel Cochran
19eb9ce540 Use extend self instead of module_function 2012-07-25 12:00:31 +08:00
Samuel Cochran
a2f9808c75 Some syntax bits 2012-07-25 11:47:12 +08:00
Samuel Cochran
d74b700216 Remove autoload 2012-07-25 11:47:01 +08:00
Samuel Cochran
54eb83d7a2 Little refactor to reduce nesting 2011-10-09 15:45:33 +08:00
Samuel Cochran
4b689159df Whitespace pedantry. 2011-06-10 11:22:59 +08:00
Samuel Cochran
b8d72b0b53 Clear all mail. 2011-06-01 01:15:05 +08:00
Samuel Cochran
bd1bfc47cf Present messages in ascending order from DB to make message order in UI predictable. 2011-06-01 00:40:35 +08:00
Samuel Cochran
0abd0037db Add whole-message types as well as multipart types. 2011-05-29 21:16:33 +08:00
Samuel Cochran
8137c06c52 Turn SQLite3 result rows into hashes ourselves.
SQLite3's results_as_hash is a little broken. Pull request submitted: https://github.com/luislavena/sqlite3-ruby/pull/38
2011-05-29 20:26:15 +08:00
Samuel Cochran
6703495637 Slightly nicer recipients listing. 2011-05-27 22:10:05 +08:00
Samuel Cochran
e482f33693 We don't use activesupport. -.- 2011-05-10 11:26:53 +08:00
Samuel Cochran
2fdce6900a Handle non-multipart messages correctly 2010-11-04 12:48:06 +08:00
Samuel Cochran
8db4f674f4 Split into modules, updated style a little, switched to Jeweler, added EventMachine Channel and Skinny WebSockets for no-refresh mail notification, got rid of Sunshowers. 2010-10-28 03:12:26 +08:00