| Commit message (Collapse) | Author | Age |
|
|
|
|
| |
This delays the encoding of special chars, if any, to the actual display
which is supposed to know into what it should be encoded.
|
|
|
|
| |
mostly automatically fixed
|
| |
|
| |
|
|
|
|
| |
i.e., one not below that of notmuch's root path
|
|
|
|
| |
this is used in the Database manager
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
Fix detection of OpenPGP encrypted data and also check the 'protocol'
parameter.
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
| |
with missing 'code' parameter.
cf issue #590
|
|
|
|
|
|
|
| |
this feature was not yet changed after an Envelope rewrite
and was still based on Envelope._headers[foo] being a str and not a list of str.
fixes #587
|
|
|
|
|
|
|
|
| |
This ensures that we respect if a command as specified per mailcap expects its input via stdin and not per tempfile.
This was already done for opening of attachments but not
for interpreting non-text/plain message parts.
fix #584
|
| |
|
| |
|
|
|
|
|
|
| |
to actually work on self.headers as *list* of strings for each key.
this hasn't been a problem since these convenience methods are not
really uset at all atm..
|
| |
|
| |
|
|
|
|
|
| |
We use an own has function for that, since pygpgme doesn't implement __cmp__()
or similar
|
|
|
|
|
|
|
|
| |
Multiple recipient-keys can be specified. They are shown in the envelope buffer.
A new command is introduced: 'rmencrypt' do remove a key from the encryption
lsit. Unfortunately pygpgme doesn't implement __cmp__() so we have to either
write something similar on our own or use this solution (index of the key in
encryption list)
|
|
|
|
|
| |
It is more useful if we check wether the key is available directly when the user
ask for encryption, rather than doing it before sending it
|
| |
|
| |
|
|
|
|
|
| |
We now can define the key, we want to encrypt with as parameter of the encrypt
command
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If the envelope has the encrypt flag set we encrypt the (signed if available)
mail and create a PGP/MIME compliant mail
TODOs:
a) create a 'This is a PGP/MIME encrypted mail...' warning on top of all
multipart parts
b) find the correct key for encryption
c) find a way to handle multiple recipients
|
|
|
|
| |
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
|
|
|
|
|
|
|
|
| |
This will help us identify problems in libnotmuch and reduces visual
artifacts (unfortunately libnotmuch writes messages to stderr that
used to clobber the curses interface).
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
|
|
|
|
|
|
|
|
|
| |
This also prevents a zombie from hanging around until the next worker
is spawned by multiprocessing.
Fixes 411.
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
|
|
|
|
|
| |
only sort messages with not-None date header,
append the rest
|
|
|
|
|
|
|
|
|
|
| |
If the child process is killed using SIGTERM by the parent, send(2)
can fail with EINTR. Install a signal handler for SIGTERM and ignore
EINTR in this particular case.
Fixes #325.
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
|
|\
| |
| |
| |
| | |
Conflicts:
alot/commands/thread.py
|
| | |
|
| |
| |
| |
| |
| | |
... and make it a type boolean. This also defines the option
properly in the config spec and derives its doc froma that.
|
|/
|
|
|
|
|
|
| |
Add a body_mimetype global configuration option to choose the default message
part to return as body in extract_body when types is None. Parts of the
preferred type will be returned if present, all text/* parts will be returned if
none parts of the preferred type exist. The default is "text/html", which should
result in the same behavior as before.
|
|
|
|
| |
that contains tagstrings to add to message after successful sendout
|
|
|
|
| |
cf issue #519
|
| |
|
|\ |
|
| |
| |
| |
| | |
closes issue #497
|
|/ |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
This prevents losing the body text and headers in the case of a fault.
Leaving the removal of temporary files to be done after the buffer is
explicit closed or email is sent.
cf issue #453
|
|
|
|
|
|
| |
this uses a email.header.Header obj for
attachments-parts Content-Disposition header
to ensure their filename-parameters obey RFC2184
|
|
|
|
| |
but use debug level instead (use alot -d debug to see this)
|