Closed c888f3aa-61bc-429d-8b80-542a2a612892 closed 24 years ago
While making an automated mail sending engine, I used the quopri.encode(...) for my multipart mails. quopri.encode(...) converts "=" into "==" while the mail clients expect "=3D". Thus I got some problems reading such mails with Outlook Express 5 , Netscape Messenger (Linux) and StarOffice Mail (Linux). Especially when the HTML part of the mail contains hyperkinks \...\</a> that crash Outlook express. The others make a 404 HTTP error. I run Python 1.5.2, but this bug/feature remains perhaps with Python 1.6 and Python 2.0bx cause I didn't notice any change log to the quopri module. I found a workaround (fix ?) by changing the "quote" function of "quopri.py" to this: ==== quopri.py \==== ... def quote(c): ## if c == ESCAPE: ## return ESCAPE * 2 ## else: i = ord(c) return ESCAPE + HEX[i/16] + HEX[i%16] ... ==== end quopri.py \==== Now, the 3 above mentioned mail clients read correctly the raw text and html parts of my mails - including hyperlinks. Is it a bug, a feature, or did I misuse "quopri" ?
fixed in revision 1.7 of quopri
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields: ```python assignee = None closed_at =
created_at =
labels = ['library']
title = 'Encoding of "=" by quopri.py module'
updated_at =
user = 'https://bugs.python.org/gillou'
```
bugs.python.org fields:
```python
activity =
actor = 'jhylton'
assignee = 'jhylton'
closed = True
closed_date = None
closer = None
components = ['Library (Lib)']
creation =
creator = 'gillou'
dependencies = []
files = []
hgrepos = []
issue_num = 215907
keywords = []
message_count = 2.0
messages = ['1785', '1786']
nosy_count = 2.0
nosy_names = ['jhylton', 'gillou']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue215907'
versions = []
```