Skip to content

support URL shortener #23

@philippb

Description

@philippb

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions