| Commit message (Collapse) | Author | Age |
... | |
| | |
|
| |
| |
| |
| | |
account and From header
|
| | |
|
|/
|
|
|
|
|
|
| |
As we split the apply method up into separate methods we need a way for
those helpers to stop execution of the method. This wraps the real apply
method inside of a try/except block with a custom exception. Any helper
that is intended to run in the apply method simply needs to raise this
exception, and apply will return.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
Tagstrings with double-width characters resulted in not enough
horizontal space being allocated, which lead urwid to draw the
statusline in two lines instead of one (see #742).
This lets urwid calculate the necessary width itself, using its pack()
method.
|
| |
|
|
|
|
| |
or tags common to all messages in thread
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
176cffcd ("refactor alot.db.utils.remove_cte", 2018-12-04) created a few
problems with 8bit quoted-printable e-mails, see #1291 #1360.
This commit restores the old libmagic fallback which did not cause this
problem.
|
|
|
|
| |
to help troubleshoot problems
|
|\
| |
| | |
Rename test files
|
|/
|
|
|
|
|
|
| |
The two main reasons are
- to run `python3 -m unittest discover` without specifying a custom
`--pattern *_test.py`
- to include the test files automatically when generating the MANIFEST
file.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In case of a '.gpg' file being attached to a non-encrypted email some
email clients (like thunderbird) will mark this attachment as content
type 'application/pgp-encrypted'. Alot used to discard that mime part
because the same content type is being used in PGP/MIME to signal de
version:
https://tools.ietf.org/html/rfc3156#section-6.1
Now alot differenciates two cases:
* Normal PGP/MIME encrypted messages, where we need to discard the
'application/pgp-encrypted' mime part. Detected because this part is
followed by a 'application/octet-stream' mime part.
* A mime part with aplication/pgp-encrypted as content type, that is
displayed as attachment.
|
|\
| |
| | |
~ expansion for .config/alot/config
|
|/
|
|
|
|
|
|
| |
pep8!
Better variable names, new feature into docs.
Make sphinx documentation.
|
| |
|
|
|
|
|
|
| |
* Fix (invert) existing test
* Add new tests based on behavior mentioned previously
* test to ensure translations using re.sub work
|
| |
|
|
|
|
|
| |
Fixes: https://github.com/pazz/alot/issues/1354
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
|
|
|
|
| |
Fixes #1351.
|
| |
|
| |
|
|
|
|
|
| |
... since accounts' addresses can overlap and get_account_by_address
promises too much. Also remove now-obsolete get_addresses.
|
|
|
|
| |
fixes #1230, fixes an unfiled bug in clear_my_address()
|
|
|
|
| |
simplifies a few tests, fixes #1177
|
|
|
|
|
|
| |
this is now test_char_vs_cte_mismatch;
It checks if a mime part contains a character which is not encoded in
the encoding declared in the Content-Transfer-Encoding header
|
|
|
|
|
| |
that tests if a message with unknown content-transfer-encoding header,
but otherwise correct ascii encoded payload, is warned about.
|
|
|
|
|
| |
It now tests if malformed Content-Transfer-Encoding values are reported
in the logs
|
|
|
|
|
|
|
| |
This makes remove_cte more accepting of incorrect
Content-Transfer-Encoding header values: instead of looking for exact
matches of valid values, it now tests if a valid value appears as
substring.
|
| |
|
| |
|
|
|
|
|
|
| |
This adds a test for detecting a malformed content-transfer-encoding
(trailing semi-colon).
It also changes the raised exception to the more appropriate ValueError.
|
|
|
|
| |
This does just call the final bit of code that throws the exception.
|
|
|
|
|
| |
The test corpus holds mails that are used to test different problems
with parsing or displaying mail.
|
|
|
|
|
| |
> It's suggested by the standard to use for automated messages
> And it easily avoids cycles if every bot uses notices
> i.e. only listens to privmsgs and only emits notices
|
| |
|
|
|
|
| |
this fixes #1336
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Bounce correctly determines the address and account to send the bounce
from. It uses the account to choose an address book for "to:" completion
and passes the sender address as "Resent-From:" to SendCommand(). The
latter uses the "From:" header, though, to determine the sending account
again and (in the case of a bounce) wrongly.
Make SendCommand() use "Resent-From:" if present and "From:" else.
Code remark: specifying "False" as the default return value for get()
ist not necessary; it is meant to make this short form clearer to read,
and to safeguard for times when '' or None do not evaluate to False
here.
|
| |
|
|
|
|
|
| |
The logging messages appear in between the test output. By asserting
them they are hidden from the output.
|
| |
|
|
|
|
| |
the html one is now on top
|
| |
|
| |
|
| |
|
|
|
|
|
| |
this removes the explicit export of the above env-var in the build
script. It is now set through travis's (private) web interface.
|
| |
|