summaryrefslogtreecommitdiff
path: root/program/lib/imap.inc
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-09-14 09:19:29 +0000
committeralecpl <alec@alec.pl>2008-09-14 09:19:29 +0000
commit109314c7d15684c7ffe5d3f0545ed3f86615998f (patch)
treea7c2b1ffd71b7ea36f4396c696dbeeaa6521eaa5 /program/lib/imap.inc
parent2106ec7043a636f2f706b44a0418e8d3c72c4c04 (diff)
- handle 'undisclosed-recipients in imap.inc
Diffstat (limited to 'program/lib/imap.inc')
-rw-r--r--program/lib/imap.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/program/lib/imap.inc b/program/lib/imap.inc
index a2564de87..eb30d42c5 100644
--- a/program/lib/imap.inc
+++ b/program/lib/imap.inc
@@ -64,6 +64,7 @@
- don't return "??" from iil_C_GetQuota()
- RFC3501 [7.1] don't call CAPABILITY if was returned in server
optional resposne in iil_Connect(), added iil_C_GetCapability()
+ - remove 'undisclosed-recipients' string from 'To' header
********************************************************/
@@ -1676,7 +1677,7 @@ function iil_C_FetchHeaders(&$conn, $mailbox, $message_set, $uidfetch=false)
$result[$id]->from = $string;
break;
case 'to':
- $result[$id]->to = $string;
+ $result[$id]->to = preg_replace('/undisclosed-recipients:[;,]*/', '', $string);
break;
case 'subject':
$result[$id]->subject = $string;