From 14d10786d1a604815a1867805143e4b279737bc0 Mon Sep 17 00:00:00 2001 From: lkehresman Date: Tue, 14 Dec 1999 19:14:32 +0000 Subject: [PATCH] added documentation git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@77 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- doc/message_array.doc | 72 +++++++++++++++++++++++++++++++++++++++++++ functions/mime.php | 3 ++ 2 files changed, 75 insertions(+) create mode 100644 doc/message_array.doc diff --git a/doc/message_array.doc b/doc/message_array.doc new file mode 100644 index 00000000..2b9cc0eb --- /dev/null +++ b/doc/message_array.doc @@ -0,0 +1,72 @@ +Here is a map of the message array that contains all the information about +a message. A single part message is handled the same as a multipart message, +except in the "ENTITIES" part, there would only be one entry (0). + +$message ["HEADER"] (array) + ["TO"] (array) + ["CC"] (array) + ["SUBJECT"] (string) + ["FROM"] (string) + ["REPLYTO"] (string) + ["MAILER"] (string) + ["TYPE0"] (string) + ["TYPE1"] (string) + ["BOUNDARY"] (string) + ["CHARSET"] (string) + + ["ENTITIES"] (array) + [0] (array) + ["TYPE0"] (string) + ["TYPE1"] (string) + ["CHARSET"] (string) + ["BOUNDARY"] (string) + ["PRIORITY"] (integer) + ["BODY"] (array of strings) + + [1] (array) + ["TYPE0"] (string) + ["TYPE1"] (string) + ["CHARSET"] (string) + ["BOUNDARY"] (string) + ["PRIORITY"] (integer) + ["BODY"] (array of strings) + . + . + . + + +Example message: +---------------------------------------------------------------------- +$message ["HEADER"] + ["TO"] "luke@usa.om.org," + "nathan@usa.om.org" + ["CC"] "matt@usa.om.org" + ["SUBJECT"] "hey there.. just testing" + ["FROM"] "typist@usa.om.org" + ["REPLYTO"] "" + ["MAILER"] "SquirrelMail v0.0.1" + ["TYPE0"] "multipart" + ["TYPE1"] "alternative" + ["BOUNDARY"] "--blkjoaiu2093ojv0q9" + ["CHARSET"] "us-ascii" + + ["ENTITIES"] + [0] + ["TYPE0"] "text" + ["TYPE1"] "plain" + ["CHARSET"] "us-ascii" + ["BOUNDARY"] "" + ["PRIORITY"] 10 + ["BODY"] "This is just a test to see" + "how this will handle a message" + "for this example" + + [1] + ["TYPE0"] "text" + ["TYPE1"] "html" + ["CHARSET"] "us-ascii" + ["BOUNDARY"] "" + ["PRIORITY"] 20 + ["BODY"] "This is just a test to see
" + "how this will handle a message" + "for this example" \ No newline at end of file diff --git a/functions/mime.php b/functions/mime.php index b1a9293e..aabd9cd8 100644 --- a/functions/mime.php +++ b/functions/mime.php @@ -125,6 +125,9 @@ $body[$q] = "$body[$q]\n"; // maybe should be \n.. dunno } } + for ($q=0;$q < count($body);$q++) { + $body[$q] = ereg_replace("=3D", "=", $body[$q]); + } $newbody = $body; } else { $newbody = $body; -- 2.25.1