From 3669550916b6f807e7aff631adceedccb346ec18 Mon Sep 17 00:00:00 2001 From: lkehresman Date: Thu, 24 Feb 2000 12:01:21 +0000 Subject: [PATCH] Bugfixes git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@244 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- doc/sqimap_config.php3 | 25 ++++++++++++++++++++++--- src/folders.php | 20 ++++++++++++-------- 2 files changed, 34 insertions(+), 11 deletions(-) diff --git a/doc/sqimap_config.php3 b/doc/sqimap_config.php3 index 75237e22..afde2e00 100644 --- a/doc/sqimap_config.php3 +++ b/doc/sqimap_config.php3 @@ -20,7 +20,7 @@ $params_desc[0][4]["name"] = "message"; $params_desc[0][4]["desc"] = "Returned if handle_errors is false. It is the error message"; $params_desc[0][4]["type"] = "string"; $example[0] = "fputs (\$imap_stream, \"a001 SELECT INBOX\\n\");
"; -$example[0] .="\$read_ary = sqimap_read_data(\$imap_stream, \"a001\", true, $response, $message);
"; +$example[0] .="\$read_ary = sqimap_read_data(\$imap_stream, \"a001\", true, \$response, \$message);
"; $example[0] .="for (\$i = 0; \$i < count(\$read_ary); \$i++) {
"; $example[0] .="    echo \$read_ary[\$i];
"; $example[0] .="}
"; @@ -71,9 +71,28 @@ $params_desc[4][0]["desc"] = $imap_stream_def; $params_desc[4][1]["name"] = "mailbox"; $params_desc[4][1]["type"] = "string"; $params_desc[4][1]["desc"] = "The mailbox that you wish to check out."; -$example[4] = "$num = sqimap_get_num_messages (\$imap_stream, \"INBOX\");"; +$example[4] = "\$num = sqimap_get_num_messages (\$imap_stream, \"INBOX\");"; -/* +$name[5] = "find_email"; +$params[5] = "(\$string)"; +$explain[5] = "This parses the given string for an email address. It is meant for taking the \"from:\" header and return the email address for replying.
If \$string looks like this: Luke Ehresman <lehresma@css.tayloru.edu>
It will return this: lehresma@css.tayloru.edu "; +$params_desc[5][0]["name"] = "string"; +$params_desc[5][0]["type"] = "string"; +$params_desc[5][0]["desc"] = "The string that needs parsing"; +$example[5] = "\$from = \"Luke Ehresman <lehresma@css.tayloru.edu>
"; +$example[5] .="\$from_email = sqimap_find_email(\$from);"; + +$name[6] = "find_displayable_name"; +$params[6] = "(\$string)"; +$explain[6] = "this parses the given string for a displayable name. It is meant for taking the \"from:\" header and return the name of whom it is from. If no name is found, it will display the email address. If nothing acceptable is found, it just returns \$string back to you."; +$params_desc[6][0]["name"] = "string"; +$params_desc[6][0]["type"] = "string"; +$params_desc[6][0]["desc"] = "The string that needs parsing"; +$example[6] = ""; + + + +/* 16 $name[1] = ""; $params[1] = ""; $explain[1] = ""; diff --git a/src/folders.php b/src/folders.php index e51d47e9..75363d03 100644 --- a/src/folders.php +++ b/src/folders.php @@ -69,14 +69,18 @@ echo "