Updates
Writing this plugin in python has been nothing but a joy. I've honestly never had an easier time just whipping out a script and adding features to it. I almost did it in perl, as weechat has a scripting interface for perl and I am more knowledgeable with perl, but I feel as if I would have had a harder time writing this in perl.
Recent changes to the script include:
- Now sends entire message body as a reply. (IMAP breaks the message body into multiple lines, and this was tripping up my script since I expected it all on one line)
- Does not send the user's signature or quoted messages if user defines strings that indicate a signature:
- User can define what strings are present that indicate a signature so that the entire message history is not sent.
i.e. Gmail on Android sends my signature asTony Lademan
so I add that to the array, but Gmail on the web sends my signature as
-- Tony Lademan
so I also add "--" to the array as well. Similarly, if you don't have a signature, but your client quotes messages with a string such as On DATE, NAME wrote:, then you can add wrote: or the name to your array. Commands are described in the comment body of the script. Multiple strings can be stored and will be used to determine when the script should stop reading the message body.
- Rudimentary help descriptions for the commands.
There's no change log in the file itself yet, not sure if I should do that or push this to its own git repo and make a separate CHANGELOG file that aggregates all of the relevant logs from my current "scripts" repo. Or just push my entire scripts repo somewhere public and not give a shit.
Link to the original post with links to the source.
Awesome!
I finally got the fortune plugin to work, seems the author wasn't thinking properly when he updated or something (he says he'll fix it for the next release, so that's good). So, yeah, just keep reloading the page for a random quote from my first four semesters here at IIT. I highly doubt that anyone outside of my group here will find them all that funny..