Skip to content
This repository has been archived by the owner on May 4, 2019. It is now read-only.

Strip HTML code from email contents in API call to given user #30

Open
hunj opened this issue Nov 2, 2017 · 4 comments
Open

Strip HTML code from email contents in API call to given user #30

hunj opened this issue Nov 2, 2017 · 4 comments

Comments

@hunj
Copy link

hunj commented Nov 2, 2017

For given <username>, the GET response to https://sh8.email/rest/mail/<username>/list/ is as follows:

[
    {
        "pk": <some pk>,
        "recipient": <username>,
        "sender": <sender's email address>,
        "subject": <email subject>,
        "contents": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Trans",
        "recipDate": <received DateTime>,
        "isSecret": false,
        "isRead": false
    }
    {
        (another email...)
    }
]

Here, the "contents" of each email is only limited to 50 characters for convenience, but allows HTML codes in them; it should return the first 50 characters from the plaintext of the email.

@hunj
Copy link
Author

hunj commented Nov 2, 2017

@kyunooh
Copy link
Member

kyunooh commented Nov 6, 2017

I will check this. Thanks @hunj

@hunj
Copy link
Author

hunj commented Nov 27, 2017

Heck, now CSS:
image

@kyunooh
Copy link
Member

kyunooh commented Nov 29, 2017

What the... T.T

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants