- This readme describes the process for compiling on linux, if you are on another platform your steps might vary. If you figgured out how to do it on your platform feel free to sumbit a pr to add your method to this readme.
- You need
libdeltachat
,git
,cmake
,gcc
andpkg-config
alsorustup
if you compilelibdeltachat
on your own
git clone https://github.com/deltachat/deltachat-core-rust
cd deltachat-core-rust
cmake -B build . && cmake --build build && sudo cmake --install build
Info: To uninstall, run
sudo xargs -d\\n rm -f <build/install_manifest.txt
in the same directory
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
gcc main.c -o main $(pkg-config --cflags --libs deltachat) -lpthread
LD_LIBRARY_PATH=/usr/local/lib addr=$yourEmail mailpw=$yourPassword ./main
clang-format -i main.c
You might need to install clang-format
first.
There is no way to terminate it currently. I wanted to propose a SIGTERM handler, but realized doing it properly is more difficult than it should be: deltachat/deltachat-core-rust#2280 So for the purpose of example it's easier to assume the bot will be running forever.
~ link2xt on #13 (comment)
- Documentation https://c.delta.chat/