Commit Graph

12 Commits

Author SHA1 Message Date
Anna Schumaker 7b78e9d785 Move Message class into the chat namespace
It makes more sense to put it here, since it's related to chatting.

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
2015-05-28 13:24:36 -04:00
Anna Schumaker dcd8650e1a Message display improvements
- Put time and poster information on one line
- Wrap message text to 70 characters

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
2015-05-28 13:21:38 -04:00
Anna Schumaker 193107574f Simplify hour:minute:second display
Now it's a bit easier to read!

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
2015-05-28 12:31:29 -04:00
Anna Schumaker 5fe26ca0e5 Send email with X-Slack-Header to specify channel
This is slightly more accurate than using channel names to lookup where
to post.

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
2015-05-27 16:37:37 -04:00
Anna Schumaker 6110e5ff3b slackpost.py: Write a script for posting to slack
The idea is that postfix will pipe an email message into this script,
which will then post the reply to slack.

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
2015-05-26 21:21:46 -04:00
Anna Schumaker d9a6858be8 Mark channels read when updated
Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
2015-05-26 21:21:45 -04:00
Anna Schumaker 253e0374f0 Mark channels read when updated
Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
2015-05-26 17:04:56 -04:00
Anna Schumaker b5d715096e Prepare text as an email message
Right now it's hardcoded to send to me.  This should be made
configurable eventually ...

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
2015-05-26 16:52:55 -04:00
Anna Schumaker 776ad5b1fa slack: Add users.info support and a User class
For finding information about users.

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
2015-05-26 16:36:46 -04:00
Anna Schumaker 48baf65574 slack: Add the channels.history() function and a Message class
For finding unread messages.

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
2015-05-26 16:02:36 -04:00
Anna Schumaker 4eb177cd8f slack: Find extra channel information if needed
This is mostly to find unread count and timestamp

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
2015-05-26 15:44:52 -04:00
Anna Schumaker 23ac359ad7 slack: Add channels module and Channel class
This patch begins a new main loop using the new Channel class.

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
2015-05-26 15:21:13 -04:00