Sweetie_Pie wrote:
I can't figure it out. How do you get it to work? I installed libmime-08.1 and now I don't know what to do.
Could you be more specific please as to what's not working? Essentially here are the necessary steps:
1) Download sbemail.cpp and sbemail.h into some directory
2) Compile: E.g. "g++ -c -O2 -o sbemail.o sbemail.cpp"; note that you'll probably have to specify your libvmime include directory, i.e. "g++ -c -O2 -o sbemail.o -I/thisis/where/I/installed/libvmime/ sbemail.cpp".
3) Link: E.g. "g++ -o sbemail -s sbemail.o -lvmime -lncurses"; but again you'll most certainly have to specify your libvmime library directory, i.e. "g++ -o sbemail -s sbemail.o -L/thisis/where/I/installed/libvmime/src/.libs" -lvmime -lncurses" or something.
4) Run! I mean, run the program. You have to specify an IMAPs server on the command line, from which you'll fetch an email. Oh: If you're using your own version of libvmime, you may also need to set the LD_LIBRARY_PATH variable so that the library is found at run-time, e.g. "LD_LIBRARY_PATH=/thisis/where/I/installed/libvmime/src/.libs ./sbemail -s myserver.etc -u depressio".
Let me know if any of this isn't clear or if you're encountering errors. Sorry for the difficulties with the vmime library; if you install it properly into your system you won't have to do any of the awkward stuff above.
Good luck!