Add signature info to verify category
* src/categorymanager.cpp, src/categorymanager.h: New. * src/Makefile.am: Add it. * src/cpphelp.cpp, src/cpphelp.h (join): New. * src/gpgoladdin.cpp, src/gpgoladdin.h (Gpgoladdin::get_category_mngr): New. * src/mail.cpp (Mail::~Mail): Remove categories. (Mail::updateCategories_o): Use new code for categories. (Mail::storeID): New carry store info. * src/oomhelp.cpp (create_category): Fix dbg. (get_store_for_id): New helper. (ensure_category_exists): Remove need for appl. (remove_category): Rewrite to allow partial matches. (_delete_category): New helper. (delete_category): New. Delete a category. (delete_all_categories_starting_with): New. * src/oomhelp.h: Update accordingly.
On startup we delete all old categories to cleanup e.g. after
we crashed and a category was left over. The categories
are only created on the stores where they are required and
only temporary as long as the mail is loaded.
As several mails can share the same category we need the
categorymanager to do some ref counting and help a bit.
- GnuPG-Bug-Id: T4183