Skip to content
This repository was archived by the owner on May 4, 2019. It is now read-only.
This repository was 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

@hunj

Description

@hunj

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions