several changes for notmuch integration, also gnupg address extraction