Commit graph

172 commits

Author SHA1 Message Date
stekkel
350ea314f2 ugly bugfix for parsing literals inside envelope structures.
Note: All the parser function are rewritten in a clean way and will be
commited soon in SM 1.5 . The just applied fix was needed for a stable release.
2002-12-27 15:49:35 +00:00
stekkel
a3d5bd344e oops, Rfc822Header->mailbox was initialized 2002-12-27 14:38:10 +00:00
stekkel
6fe35696cf Added address lookup callback function argument for parseAddress.
In stable we verified addresses against the addressbook. In devel this
functionality was forgotten.
Note: Required php version 4.0.4 due to the use of call_user_func_array.
2002-12-27 12:24:12 +00:00
robsiemb
5b24abe09c 3 minor bugs:
* If we don't get a $msg back in parseStructure, don't call $msg->setEntIds.
* NIL can be 'NIL ' or 'NIL)'
* Literal sizes DO NOT include the \r\n in their counts.
2002-12-19 19:27:20 +00:00
stekkel
701b117bfa Improved entity_id calculation.
This solves problems when the Content-Type of the rfc822 header =
ressage/rfc822
2002-11-15 18:53:50 +00:00
stekkel
ed167ce382 Speed improvements by using php internal functions and bugfix regarding
DKIMAP
2002-11-04 20:25:09 +00:00
stekkel
ba9f56de0d Buggy messages with empty mime-parts (size=0) causes incorrect parsing.
Adding case '0': solved the problem.
2002-10-28 09:34:06 +00:00
stekkel
be1810e956 wrong return type 2002-10-18 17:38:52 +00:00
stekkel
1f747ca365 initialize cc correct 2002-10-18 08:54:35 +00:00
stekkel
2d4c13c5b1 added function to search the to and cc headers and return the best match 2002-10-17 22:22:55 +00:00
stekkel
2c54f7ea8b code clean up. No need to use isset because the vars are properly
initialized
2002-10-08 12:28:47 +00:00
stekkel
6bf49832f6 fixed warning 2002-10-07 17:09:36 +00:00
stekkel
4218de2642 fix parsing group related address headers. 2002-09-27 17:24:56 +00:00
stekkel
a95d16b308 fix undefined var 2002-09-18 12:55:09 +00:00
Thijs Kinkhorst
5b9ce7663d Make directories unbrowsable. 2002-09-09 17:25:05 +00:00
stekkel
aca38665cc undisclosed recipients fix 2002-09-05 09:38:47 +00:00
stekkel
fb9dd1d095 Added function for initializing attachments (for compose) 2002-09-04 23:19:07 +00:00
stekkel
43f9f16e50 code cleanup 2002-09-03 15:40:08 +00:00
stekkel
860b3cf49a code cleanup 2002-08-30 16:42:16 +00:00
stekkel
cf3fe28bd6 fix for getEntity 2002-08-30 15:05:33 +00:00
thomppj
2692b136f3 Ok. One simple mistake... :) 2002-08-29 23:45:08 +00:00
thomppj
caeff8b548 First, more formatting conventions.
1. Wrap all operands of a complex expression with parentheses.
     For instance:
         if ($bob == 'foo' || $bob == 'bar') {
     is wrong. Do this instead:
         if (($bob == 'foo') || ($bob == 'bar')) {

  2. Carefully decide between pre and post incrementation. If it
     does not matter, always choose pre because it is technically
     more efficient. For instance:
         for ($i = 0; $i < $count; $i++) {
     is wrong. Do this instead:
         for ($i = 0; $i < $count; ++$i) {

  3. Classes should be named in style like this:
         MessageHeader
         Rfc8222Header
     etc. When there is an acronym at the beginning, treat it
     like a word - do NOT captitalize each letter of the acronym.

  4. Put each class in a seperate file named ClassName.class.php.
     Related classes can be put in one directory and then included
     in a main include file.

Second, big changes with mime.class.php here. And I don't think I broke
anything. (Sounds like famous last words, eh?)
2002-08-29 23:42:46 +00:00