RFC2047 MIME extensions encoding / decoding routines. More...
Go to the source code of this file.
Functions | |
void | rfc2047_decode (char **pd) |
Decode any RFC2047-encoded header fields. | |
void | rfc2047_encode (char **pd, const char *specials, int col, const struct Slist *charsets) |
RFC-2047-encode a string. | |
void | rfc2047_decode_addrlist (struct AddressList *al) |
Decode any RFC2047 headers in an Address list. | |
void | rfc2047_encode_addrlist (struct AddressList *al, const char *tag) |
Encode any RFC2047 headers, where required, in an Address list. | |
void | rfc2047_decode_envelope (struct Envelope *env) |
Decode the fields of an Envelope. | |
void | rfc2047_encode_envelope (struct Envelope *env) |
Encode the fields of an Envelope. | |
RFC2047 MIME extensions encoding / decoding routines.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file rfc2047.h.
void rfc2047_decode | ( | char ** | pd | ) |
Decode any RFC2047-encoded header fields.
[in,out] | pd | String to be decoded, and resulting decoded string |
Try to decode anything that looks like a valid RFC2047 encoded header field, ignoring RFC822 parsing rules. If decoding fails, for example due to an invalid base64 string, the original input is left untouched.
Definition at line 661 of file rfc2047.c.
void rfc2047_encode | ( | char ** | pd, |
const char * | specials, | ||
int | col, | ||
const struct Slist * | charsets | ||
) |
RFC-2047-encode a string.
[in,out] | pd | String to be encoded, and resulting encoded string |
[in] | specials | Special characters to be encoded |
[in] | col | Starting index in string |
[in] | charsets | List of charsets to choose from |
Definition at line 628 of file rfc2047.c.
void rfc2047_decode_addrlist | ( | struct AddressList * | al | ) |
Decode any RFC2047 headers in an Address list.
al | AddressList |
Definition at line 801 of file rfc2047.c.
void rfc2047_encode_addrlist | ( | struct AddressList * | al, |
const char * | tag | ||
) |
Encode any RFC2047 headers, where required, in an Address list.
al | AddressList |
tag | Header tag (used for wrapping calculation) |
Definition at line 766 of file rfc2047.c.
void rfc2047_decode_envelope | ( | struct Envelope * | env | ) |
Decode the fields of an Envelope.
env | Envelope |
Definition at line 832 of file rfc2047.c.
void rfc2047_encode_envelope | ( | struct Envelope * | env | ) |
Encode the fields of an Envelope.
env | Envelope |
Definition at line 857 of file rfc2047.c.