So that we can mark posts from bots as read. Otherwise we could end up
sending empty messages until another human posts.
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
Slack lets you write posts with multiple paragraphs. We were joining
everything together, but I think preserving the original newlines will
make things more readable.
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
Rather than including them in the text that gets wrapped. This prevents
links from getting split, potentially breaking them.
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
Don't create a message object for posts without text. Additionally, use
the accepted character replacements for unicode characters.
Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
I noticed that a merged message reversed all the lines. This is due to
how slack returns messages in the history() call, so let's parse replies
in two steps to keep everything chronological.
Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
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>