diff options
author | alecpl <alec@alec.pl> | 2008-09-14 09:03:07 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2008-09-14 09:03:07 +0000 |
commit | 2106ec7043a636f2f706b44a0418e8d3c72c4c04 (patch) | |
tree | 127643e8aa61581efc0173b4901d48b5b812ee4f /program/steps/mail/func.inc | |
parent | 108d3b0836d9fd576a21f2518296aa2d9e6d5837 (diff) |
- don't show 'To' header if contains only /^undisclosed-recipients[:;]*$/
Diffstat (limited to 'program/steps/mail/func.inc')
-rw-r--r-- | program/steps/mail/func.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index 6d23b6f8e..9f59931ea 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -778,6 +778,8 @@ function rcmail_message_headers($attrib, $headers=NULL) else continue; } + else if ($hkey == 'to' && preg_match('/^undisclosed-recipients[:;]*$/', $headers['to'])) + continue; else if (in_array($hkey, array('from', 'to', 'cc', 'bcc'))) $header_value = Q(rcmail_address_string($headers[$hkey], null, true, $attrib['addicon']), 'show'); else |