~asimpson/mailpreview-cli

061848405fda814e75c21d2bd3338b06bfeb035e — Adam Simpson 2 years ago c9584f8
chore: mirror LICENSE from main mailparse repo
2 files changed, 12 insertions(+), 1 deletions(-)

A LICENSE
M src/main.rs
A LICENSE => LICENSE +12 -0
@@ 0,0 1,12 @@
Copyright (C) 2020 by Adam Simpson

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
\ No newline at end of file

M src/main.rs => src/main.rs +0 -1
@@ 22,7 22,6 @@ fn return_body(mail: ParsedMail, format: String) -> Result<String, MailParseErro
    if !mail.subparts.is_empty() {
        for m in mail.subparts.iter() {
            if m.ctype.mimetype == "multipart/related" {
                // TODO make alternative extractor func
                // TODO account for mixed
                for i in m.subparts.iter() {
                    if i.ctype.mimetype == "multipart/alternative" {