NeoMutt  2020-06-26-250-g349c94
Teaching an old dog new tricks
DOXYGEN
mime.c File Reference

Constants and macros for managing MIME encoding. More...

#include "config.h"
#include "mime.h"
+ Include dependency graph for mime.c:

Go to the source code of this file.

Variables

const int IndexHex [128]
 Lookup table for ASCII hex digits. More...
 
const char *const BodyTypes []
 Common MIME body types. More...
 
const char *const BodyEncodings []
 Common MIME body encodings. More...
 
const char MimeSpecials [] = "@.,;:<>[]\\\"()?/= \t"
 Characters that need special treatment in MIME. More...
 

Detailed Description

Constants and macros for managing MIME encoding.

Authors
  • Richard Russon

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 mime.c.

Variable Documentation

◆ IndexHex

const int IndexHex[128]
Initial value:
= {
-1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1,
-1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1,
-1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1,
0, 1, 2, 3, 4, 5, 6, 7, 8, 9,-1,-1, -1,-1,-1,-1,
-1,10,11,12, 13,14,15,-1, -1,-1,-1,-1, -1,-1,-1,-1,
-1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1,
-1,10,11,12, 13,14,15,-1, -1,-1,-1,-1, -1,-1,-1,-1,
-1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1
}

Lookup table for ASCII hex digits.

Definition at line 36 of file mime.c.

◆ BodyTypes

const char* const BodyTypes[]
Initial value:
= {
"x-unknown", "audio", "application", "image", "message",
"model", "multipart", "text", "video", "*",
}

Common MIME body types.

Definition at line 51 of file mime.c.

◆ BodyEncodings

const char* const BodyEncodings[]
Initial value:
= {
"x-unknown", "7bit", "8bit", "quoted-printable",
"base64", "binary", "x-uuencoded",
}

Common MIME body encodings.

Definition at line 59 of file mime.c.

◆ MimeSpecials

const char MimeSpecials[] = "@.,;:<>[]\\\"()?/= \t"

Characters that need special treatment in MIME.

Definition at line 67 of file mime.c.