rfc2045

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2025 License: BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package "rfc2045" provides functions for RFC2045; Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies https://datatracker.ietf.org/doc/html/rfc2045

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Boundary

func Boundary(argv0 string, start int) string

Boundary() finds a boundary string from the value of Content-Type header.

func CharacterSet

func CharacterSet(argv0 string) string

CharacterSet() returns "ISO-2022-JP" as a character set name from "=?ISO-2022-JP?B?...?="

func DecodeB

func DecodeB(argv0 string, argv1 string) (string, error)

DecodeB() decodes Base64 encoded text.

func DecodeH

func DecodeH(argv0 string) (string, error)

DecodeH() decodes the value of email header which is a MIME-Encoded string.

func DecodeQ

func DecodeQ(argv0 string) (string, error)

DecodeQ() decodes Quoted-Pritable encdoed text

func IsEncoded

func IsEncoded(argv0 string) bool

IsEncoded() checks that the argument is MIME encoded string or not.

func MakeFlat

func MakeFlat(argv0 string, argv1 *string) (*string, []sis.NotDecoded)

Makeflat() makes multipart/* part blocks flat and decode each part.

func Parameter

func Parameter(argv0 string, argv1 string) string

Parameter() finds a value of specified parameter name from Content-Type header.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL