in reply to Re: Please critique this script -- Read emails and write URLs into bookmarks
in thread Please critique this script -- Read emails and write URLs into bookmarks
There is only one valid URL per message. This is a situational constraint (also written in the spec). I know that because these are 'Emails-to-self' that contain at max two URLs (one in the plain text part, one in the HTML part if it exists)
Maybe it's a bit difficult to read but the regex is transforming the subject into a suitable filename, escaping problematic characters.
I tried to be sensible about the error checking and assumed the modules do error handling for their part, outside of that there's hardly any code in its own right.
Now that I think of it though, input should have been checked. That was a mistake.
What else do you think needs explicit error handling?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Please critique this script -- Read emails and write URLs into bookmarks
by talexb (Chancellor) on Oct 06, 2016 at 19:06 UTC | |
by Anonymous Monk on Oct 07, 2016 at 08:13 UTC | |
by talexb (Chancellor) on Oct 07, 2016 at 20:47 UTC | |
by Anonymous Monk on Oct 06, 2016 at 19:28 UTC | |
by Anonymous Monk on Oct 06, 2016 at 19:49 UTC | |
by Anonymous Monk on Oct 07, 2016 at 05:25 UTC |