I would like to share this bot of mine I made recently. It’s called the deltachat inbox bot. It has a pretty specific function, but it might still interest someone, who knows.
It works with a file that uses the org-mode plain text format, which can be used to keep notes and maintain todo lists among a lot of other things. Worth checking it out if you don’t know about it.
The bot basically just listens to incoming messages, and transfer the contents (as well as attachments) to a headline in a designated org-mode file. This way, you can capture new information and ideas when not in front of a computer. I’m using it to implement parts of the Getting Things Done (GTD) productivity method.
The code for the bot can be found at https://git.sr.ht/~bgtdsword/deltachat-inbox-bot
I deployed it with Docker, but that’s of course optionnal.
This is not rocket science but I’ve become quite reliant on it already.
Would be interested to hear about any feedback or comments.
Somehow I like C more than Python lately. If I need to extend drastically the bot or write a new one, I’ll check the python library. The example code sure looks very lean. Thanks for pointing it out.
And it’s true that a python package might be easier than my C bot for people to run. Hopefully I alleviate that a bit by providing a Dockerfile for it.
I install the bot an it reads the messages, but has problems to decript it. all the headers are like:
[This message was encrypted for another setup.]
created [2025-03-10 Mon 13:02]
and the time is not in the correct zone I guess. Any idea? Thank you for the bot I’ll be very usefull.
Cool that you’re trying the bot out.
Hmm when you get that, the bot should answer with “There was an error with the received message: $ERROR_STRING”, with $ERROR_STRING being the error that the bot encountered with your message.
I simulate false encryption and in that case, the error string is “Decrypting failed: missing key”. Do you get an answer from the bot at all? If yes, do you get the same error string?
The fact that the bot answers something should be enough for your client to derivate a new encryption key and thus it should recover and the next message should go through smoothly. At least, that’s what happens in my tests. What about you?
Hi, I arrive at home and everything is working, fine. The problem is that I configure the bot account in other device, and It not liked so much probablly. So right now its working :-).
Sorry for this question, probablly is more a container area, how I get the spacial characters in Spanish? loading the locals to the container? I’m going to take a look.
Thanks in advance.