Handle "message/rfc822" in replace()

This commit is contained in:
Son 2021-01-16 10:45:38 +01:00
parent fd0ba7030d
commit f9161dba20
2 changed files with 8 additions and 1 deletions

View File

@ -559,7 +559,7 @@ At this step, you should also setup the SSL for Nginx. [Certbot](https://certbot
### Enjoy!
If all of the above steps are successful, open http://app.mydomain.com/ and create your first account!
If all the above steps are successful, open http://app.mydomain.com/ and create your first account!
By default, new accounts are not premium so don't have unlimited alias. To make your account premium,
please go to the database, table "users" and set "lifetime" column to "1" or "TRUE".
@ -596,6 +596,12 @@ Feel free to use `virtualenv` or similar tools to isolate development environmen
poetry install
```
On Mac, sometimes you might need to install some other packages like
```bash
brew install pkg-config libffi openssl postgresql
```
You also need to install `gpg`, on Mac it can be done with:
```bash

View File

@ -840,6 +840,7 @@ def replace(msg: Message, old, new) -> Message:
"multipart/alternative",
"multipart/related",
"multipart/mixed",
"message/rfc822"
):
new_parts = []
for part in msg.get_payload():