The second-most important feature, next to viewing spam, is of course deleting spam. I just added support for both deleting messages and expunging folders.
if (gtk_tree_selection_get_selected (sel, &model, &iter)) { TnyMsgHeaderIface *header; TnyMsgFolderIface *folder = ... ; gtk_tree_model_get (model, &iter, TNY_MSG_HEADER_LIST_MODEL_INSTANCE_COLUMN, &header, -1); /* This also automatically updates the GtkTreeView, so you don't have to reassign a new model. */ tny_list_iface_remove (TNY_LIST_IFACE (model), header); /* The actual removal from the folder itself */ tny_msg_folder_iface_remove_message (folder, header); /* Optionally you can immediately expunge the folder tny_msg_folder_iface_expunge (folder); */ }
Lot’s of *bla bla*. Time for the *bling bling* in my blog. Here’s a screenshot of Modest (it might be renamed to Shy) on the Maemo development platform: