Handle "message/rfc822" in replace()
This commit is contained in:
parent
fd0ba7030d
commit
f9161dba20
|
@ -559,7 +559,7 @@ At this step, you should also setup the SSL for Nginx. [Certbot](https://certbot
|
||||||
|
|
||||||
### Enjoy!
|
### 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,
|
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".
|
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
|
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:
|
You also need to install `gpg`, on Mac it can be done with:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|
|
@ -840,6 +840,7 @@ def replace(msg: Message, old, new) -> Message:
|
||||||
"multipart/alternative",
|
"multipart/alternative",
|
||||||
"multipart/related",
|
"multipart/related",
|
||||||
"multipart/mixed",
|
"multipart/mixed",
|
||||||
|
"message/rfc822"
|
||||||
):
|
):
|
||||||
new_parts = []
|
new_parts = []
|
||||||
for part in msg.get_payload():
|
for part in msg.get_payload():
|
||||||
|
|
Loading…
Reference in New Issue