manpagez: man pages & more
info bigloo
Home | html | info | man
[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

20.4 RFC 2822 – Internet Message Format

This section described the functions offered by Bigloo to encode and decode some of the formats specified in the RFC 2822 (http://tools.ietf.org/html/rfc2045). It mainly supports functions for parsing email headers and for decoding email addresses.

Bigloo Mail procedure: mail-header->list obj

The function mail-header->list parses a mail header that can either be implemented as a string or an input port. It returns a list of fields.

Example:

(mail-header->list "Return-Path: <foo.bar@inria.fr>
Received: from eurus.inria.fr ([unix socket])")
  ⇒
  ((return-path . "<foo.bar@inria.fr>") (received . "from eurus.inria.fr ([unix socket])"))
Bigloo Mail procedure: email-normalize string

The function email-normalize extracts the actual email address from an email representation.

Example:

(email-normalize "foo bar <foo.bar@inria.fr>") ⇒ "foo.bar@inria.fr"
Bigloo Mail procedure: rfc2822-address-display-name string

Extract the name component of an email.

Example:

(rfc2822-address-display-name "Foo Bar <foo.bar@inria.fr>") ⇒ "Foo Bar"
(rfc2822-address-display-name "<foo.bar@inria.fr>") ⇒ "foo bar"

This document was generated on March 31, 2014 using texi2html 5.0.

© manpagez.com 2000-2024
Individual documents may contain additional copyright information.