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.
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4316
7612ce4b-ef26-0410-bec9-
ea0150e637f0
function parseEnvelope($read, &$i, $hdr) {
$arg_no = 0;
$arg_a = array();
-
+ ++$i;
for ($cnt = strlen($read); ($i < $cnt) && ($read{$i} != ')'); ++$i) {
- ++$i;
$char = strtoupper($read{$i});
switch ($char) {
case '"':
break;
case '{':
$arg_a[] = $this->parseLiteral($read, $i);
+ /* temp bugfix (SM 1.5 will have a working clean version)
+ too much work to implement that version right now */
+ --$i;
++$arg_no;
break;
case 'N':