First, more formatting conventions.
authorthomppj <thomppj@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 29 Aug 2002 23:42:46 +0000 (23:42 +0000)
committerthomppj <thomppj@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 29 Aug 2002 23:42:46 +0000 (23:42 +0000)
commit19d470aa121cacdd916319ec6b55af180562805e
treed8f9b2146362241f5efd83a864702d3ccefb0bc5
parentf73348a37f96e7838c58358d2f8d112572e726e0
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?)

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3510 7612ce4b-ef26-0410-bec9-ea0150e637f0
13 files changed:
class/mime.class.php
class/mime/AddressStructure.class.php [new file with mode: 0644]
class/mime/ContentType.class.php [new file with mode: 0644]
class/mime/Disposition.class.php [new file with mode: 0644]
class/mime/Language.class.php [new file with mode: 0644]
class/mime/Message.class.php [new file with mode: 0644]
class/mime/MessageHeader.class.php [new file with mode: 0644]
class/mime/Rfc822Header.class.php [new file with mode: 0644]
class/mime/SMimeMessage.class.php [new file with mode: 0644]
functions/imap_messages.php
functions/imap_parse.php
functions/mime.php
src/read_body.php