Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | mail/envelope: improve the parse_template() algorithmHEADmaster | Anton Khirnov | 2023-08-23 |
| | | | | | | | | | | | | | It currently assumes that the string to be parsed contains LF-separated lines. This assumption is in general wrong, because the string may be written by the user's text editor and is thus outside of our control and may contain anything. In addition, since emails should use CRLF line endings, it is arguably more correct for text editors to write CRLF to .eml files. E.g. recent versions of vim do exactly that by default. Change the parsing code to accept any of CR/LF/CRLF line endings. | ||
* | mail/envelope: fix Envelope.from_mailto() after header changes | Anton Khirnov | 2021-12-03 |
| | | | | Pass them as strings rather than single-element lists. | ||
* | mail/reply: fix deleting address from AddrList | Anton Khirnov | 2021-11-29 |
| | |||
* | helper: move guess_mimetype into its own file | Anton Khirnov | 2021-11-24 |
| | |||
* | mail/reply: rewrite recipient selection | Anton Khirnov | 2021-11-24 |
| | | | | | | | | Thoroughly ensure that To+Cc contains neither our own address (except when it is wanted) nor any duplicates. Use structured headers provided by email.headerregistry to simplify dealing with addr-spec vs. mailbox (display name + <addr-spec>). | ||
* | mail: add a custom email policy | Anton Khirnov | 2021-11-24 |
| | | | | Uses structured parsing for more headers. | ||
* | mail/headers: fix header name | Anton Khirnov | 2021-11-24 |
| | | | | It's X-BeenThere, not X-Been-There. | ||
* | commands/thread: move determining reply recipients to mail/reply | Anton Khirnov | 2021-11-24 |
| | |||
* | commands/thread: split some reply handling code to a separate module | Anton Khirnov | 2021-11-22 |
| | |||
* | mail/envelope: replace string literals with named constants | Anton Khirnov | 2021-11-22 |
| | |||
* | mail/envelope: set headers for sending as strings, not lists | Anton Khirnov | 2021-11-22 |
| | |||
* | commands/thread: replace one more header with named constant | Anton Khirnov | 2021-11-20 |
| | |||
* | mail/headers: use the canonical Capitalized spelling | Anton Khirnov | 2021-11-20 |
| | |||
* | commands/thread: use named constants instead of string literals | Anton Khirnov | 2021-11-20 |
| | | | | This is safer against typos. | ||
* | mail/envelope:_EnvelopeHeaders: make del delete all the entries | Anton Khirnov | 2021-11-20 |
| | |||
* | mail/envelope: add a special class for headers | Anton Khirnov | 2021-11-20 |
| | | | | Handle multiple headers with ordering and case-insensitive operations. | ||
* | envelope: drop unused code | Anton Khirnov | 2021-11-20 |
| | |||
* | mail/envelope: fix setting attachment params | Anton Khirnov | 2021-06-21 |
| | | | | | Actually pass them as a tuple of tuples. Also, set the charset param only for text attachments. | ||
* | mail/attachment: add 'B' suffix to under-kB sizes | Anton Khirnov | 2021-05-15 |
| | | | | | Displaying just a plain number leaves the user confused as to what the number means. | ||
* | mail/envelope: use params when constructing attachments | Anton Khirnov | 2021-05-15 |
| | | | | E.g. makes sure the charset is properly set for text attachments. | ||
* | mail/envelope: only accept valid UTF-8 for text attachments | Anton Khirnov | 2021-05-15 |
| | | | | | | | | Also set the charset parameter to UTF-8. While this restricts the kinds of files that may be attached, it ensures we do not generate invalid files, as we do not do charset detection currently. That can be implemented in the future, if necessary. | ||
* | mail/attachment: do not assume a non-trivial filename | Anton Khirnov | 2021-05-15 |
| | |||
* | mail/envelope: drop a workaround for very old libmagic versions | Anton Khirnov | 2021-05-15 |
| | | | | 5.12 was released in 2013, we do not need to support it anymore. | ||
* | mail/envelope: add missing import | Anton Khirnov | 2021-05-15 |
| | | | | Forgotten during move in fe1450cba. | ||
* | mail/attachment: add methods forgotten in 309fb25e | Anton Khirnov | 2021-02-01 |
| | |||
* | Add forgotten __init__.py files | Anton Khirnov | 2021-01-31 |
| | |||
* | mail/envelope: document Envolope.attach_file() | Anton Khirnov | 2021-01-30 |
| | |||
* | db/attachment: move to mail/ | Anton Khirnov | 2021-01-30 |
| | | | | It has nothing whatsoever to do with the database. | ||
* | db/attachment: simplify the Attachment class | Anton Khirnov | 2021-01-30 |
| | | | | | Make it a plain container around raw data and a few bits of metadata, rather than around a whole MIME part. | ||
* | db/envelope: move to a new module "mail" | Anton Khirnov | 2021-01-30 |
It has nothing to do with the database. |