linkified URLs in plain text messages include tailing linebreaks
Bug #691020 reported by
Bernd Prünster
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Postler |
Fix Released
|
Medium
|
Cris Dywan |
Bug Description
am am quite sure this has nothing (not much) to do with encoding, since the behavior is reproducable:
when a plain text messages is linkified, the hyperlinks tend to look like this: http://
if The message is somethign like
"Welcome to www.example.com
You have received this email..."
second issue related to this:
www.example.com is fine,
www.example.
i would suggest linkifying everything after http://, www., ftp:// until we encounter a whitespace, if this is done already we seriously need to fix encoding ;-)
Changed in postler: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
We use regular expressions for this, namely:
const string[] link_formats = {
"(https? :\\/\\/ \\S+)",
"([a-zA- Z0-9.\\ -]+@[a- zA-Z0-9. \\-]+[a- zA-Z0-9. ]+)"