mention 'last' as parameter for `move` command

in autocompletion and help string
Merge branch '0.3.4-fix-docs'
Merge branch '0.3.4-feature-movelast-thread-620'
Properly call the constructor of the super class

The previous statement had no effect. The super classes constructor
sets the .message attribute, so it is safe to drop that statement.

Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
Verify OpenPGP signatures and display the result

Verify OpenPGP signatures as specified in RFC 3156. Display the result
in the header list above the message.

Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
Parse and decrypt OpenPGP encrypted data

Parse and decrypt OpenPGP encrypted data as specified by RFC 3156. If
such a message is detected and found to be well-formed, it is
decrypted and any MIME messages found within the plain text are
attached to the original message.

Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
Remove unused import of logging

Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
Replace magic value in seek call with the appropriate constant

Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
Handle missing parameters gracefully

OpenPGP states that the Content-Type header is annotated with
parameters, namely 'protocol' and 'micalg'. Use .get() to retrieve
this values with a default value to handle the case of malformed
(according to RFC 3156) messages gracefully.

Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
Normalize Content-Type parameters

RFC 2045 specifies that parameter names are case-insensitive, so
normalize them by converting them to their lower case version.

Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
Move the parameter extraction to its own function

Move the parameter extraction to its own function and generalize it so
it can be reused.

Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
Fix detection of OpenPGP encrypted data

Fix detection of OpenPGP encrypted data and also check the 'protocol'
parameter.

Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
Tune the parsing of RFC 3156 style mails

Formerly any SMIME signed mail triggered a malformed OpenPGP message
warning. Be more selective wrt what to interpret as OpenPGP data by
looking at the protocol parameter first. Includes minor stylistic
changes.

Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
Merge branch '0.3.4-feature-gpg-decode-616'
Fix the default failobj of get_params

Formerly None was used as failobj, but None is not iterable and that
is all that get_params does. Use list() instead which is iterable.

Closes #626.

Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
add helper to check if path is below another

this is used in the Database manager
raise exception when adding msg no non-indexable path

i.e., one not below that of notmuch's root path
fix: make sure DBManager is initialized correctly...

and knows the path to notmuchs root dir
move check to add_message directly
adjust error message