Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support URL shortener #23

Open
philippb opened this issue Jan 26, 2016 · 0 comments
Open

support URL shortener #23

philippb opened this issue Jan 26, 2016 · 0 comments
Assignees

Comments

@philippb
Copy link
Contributor

Markdown links get rendered in their text representation as Linkname (link). When using full URLs this will break the layout of the text.

URL shortener config

ks-email-parser should support URL shortener for text rendering.

The shortener should be configurable through the config file url-shortener or command line param --url-shortener.
The value for shortener us a URL that gets called with a GET request and a placeholder {{url}} for the URL that gets shorten. e.g.

url-shortener: http://www.getkeepsafe.com/shortener/{{url}}

The shortened URL is return in the body of the request. This will be compatible with our own URL shortener and bit.ly.

Using url shortener

When rendering the text representation of emails, all URLs should be shortened when a URL shortener is defined in the config or through command line.

@ca77y ca77y assigned ca77y and unassigned snejku Feb 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants