Lock mutex before signalling cond

	* src/balsa-app.c (find_url_idle_cb): lock mutex before
	signalling cond.
Lock mutex before signalling cond

	* libbalsa/mailbox.c (lbm_msgno_inserted_idle_cb): lock mutex
	before signalling cond.
Get index entry by message number

	* libbalsa/mailbox.c (lbm_node_has_unseen_child),
	(lbm_get_index_entry), (mbox_model_get_value): get index entry
	by message number instead of by GNode.
Find node once, not twice

	* libbalsa/mailbox.c (libbalsa_mailbox_msgno_filt_out),
	(lbm_msgno_filt_check): find node once, not twice.
Clean up GList operations

	* src/save-restore.c (config_load_sections), (config_mailbox_init),
	(config_address_book_load), (config_address_books_load),
	(config_identities_load), (load_mru): prepend to GList and
	reverse it, instead of appending; use g_list_free_full().
Manage sensitivity of button in unthreaded build

	* src/main-window.c: manage sensitivity of check mail button in
	unthreaded build.
Fix bgo #679869

	* libbalsa/mime.c (process_mime_part): build
	--with-html-widget=no; fixes bgo #679869 (Aljosha).
Pipe stream must be closed with pclose

	* libbalsa/address-book-extern.c (parse_externq_file): pipe
	stream must be closed with pclose, not fclose.
Plug memory leaks

	* libbalsa/address-book-ldap.c
	(libbalsa_address_book_ldap_get_address): drop useless
	assignment to nick_name, fix mem leak;
	(libbalsa_address_book_ldap_modify_address): fix mem leak.
Do not leak open file

	* libbalsa/filter-funcs.c (libbalsa_filter_export_sieve): do not
	leak open file.
Do not leak open file on error

	* libbalsa/mailbox_imap.c (imap_cache_manager_new_from_file): do
	not leak open file on error.
Fix mem leak on error

	* libbalsa/mailbox_mbox.c (libbalsa_mailbox_mbox_add_message):
	fix mem leak on error.
Fix mem leak on error

	* src/balsa-index.c (bndx_start_pipe_messages_array): fix mem
	leak on error.
Fix mem leak on error

	* src/folder-conf.c (folder_conf_imap_sub_node): fix mem leak
	on error.
Fix mem leak on NULL main widget

	* src/information-dialog.c (balsa_information_real): fix mem
	leak on NULL main widget.
Fix mem leak on error

	* src/mailbox-conf.c (mailbox_conf_delete): fix mem leak on
	error.
Fix mem leak on error

	* src/sendmsg-window.c (edit_with_gnome): fix mem leak on error.
Fix typo

	* libbalsa/imap/imap_search.c (imap_write_key_string): typo.
Fix typo

	* src/balsa-mime-widget-text.c (structured_phrases_toggle):
	typo.
Clear whole struct

	* libbalsa/imap/imap_compress.c (imap_compress_init): memset
	size of struct, not size of pointer to struct.