| Commit message (Collapse) | Author | Age |
| |
|
|
|
|
|
| |
This patch makes the use of unicode more consistent, and enforces the
UTF8 charset for the added payload in case of failure.
|
|
|
|
|
| |
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
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
... 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.
|
| |
|
|
|
|
| |
cf issue #472
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| | |
that splits a command string into a list of strings to pass on to subprocess.Popen and the like.
This helper is now used throughout the application instead of calling shlex.split directly as this
is a potential source for errors because shlex is not yet able to properly deal with unicode
bytestrings.
|
|/
|
|
|
| |
this makes db.utils.decode_header remove superflous double quotes around header values before
decoding them
|
|
|
|
|
|
| |
.. which triggers an assertion exception when using this
as initial bodystring in an envelope.
issue #451
|
|
|
|
|
| |
.. helper that calls inline mime handler.
This is just to ensure we don't duplicate too much code
|
| |
|
|
|
|
|
|
|
|
|
| |
this makes db.urils.extract_body correctly respect
mailcap as decumented in `man mailcap`:
it respects nametemplate, replaces %s and %t
and custom parameters like %{charset}
issues #365, #406
|
| |
|
| |
|
|
|