Bug #32240 Mail with undisclosed-recipients causes error
Submitted: 9 Nov 2007 16:30 Modified: 1 Jan 2011 17:53
Reporter: Mattias Eriksson Email Updates:
Status: Won't fix Impact on me:
None 
Category:Eventum Severity:S3 (Non-critical)
Version:2.1.1 OS:Any
Assigned to: CPU Architecture:Any
Tags: undisclosed-recipients:

[9 Nov 2007 16:30] Mattias Eriksson
Description:
If an email is sent to Eventum with all recipients in the bcc-field (to and cc is empty) the string "undisclosed-recipients: " is stored in field `sup_to` in table `eventum_support_email`.

This causes the Associate Emails page to stop work. The following error is written to the screen:

Fatal error:
Cannot use object of type PEAR_Error as array in
/home/kalkonen/public_html/eventum/include/class.mail.php on line 238.

This is written to error.log:
The error message passed to us was:

'Empty group.'

A more detailed error message follows:

''

A backtrace is available:

Array
(
    [0] => Array
        (
            [file] => /home/kalkonen/public_html/eventum/include/class.mail.php
            [line] => 281
            [function] => getAddressInfo
            [class] => Mail_API
            [type] => ::
            [args] => Array
                (
                    [0] => undisclosed-recipients: 
                    [1] => 1
                )

        )

    [1] => Array
        (
            [file] => /home/kalkonen/public_html/eventum/include/class.support.php
            [line] => 1257
            [function] => getName
            [class] => Mail_API
            [type] => ::
            [args] => Array
                (
                    [0] => undisclosed-recipients: 
                )

        )

    [2] => Array
        (
            [file] => /home/kalkonen/public_html/eventum/emails.php
            [line] => 61
            [function] => getEmailListing
            [class] => Support
            [type] => ::
            [args] => Array
                (
                    [0] => Array
                        (
                            [rows] => 100
                            [pagerRow] => 0
                            [hide_associated] => 1
                            [sort_by] => sup_date
                            [sort_order] => desc
                            [keywords] => 
                            [sender] => 
                            [to] => 
                            [ema_id] => 5
                            [filter] => Array
                                (
                                    [arrival_date] => no
                                )

                        )

                    [1] => 0
                    [2] => 100
                )

        )

)

How to repeat:
Send an email to an e-mail account that is scanned by Eventum. Leave to- and cc-field blank. Put address in bcc field.

Suggested fix:
Replace the string "undisclosed-recipients: " with the actually email-address that the email is sent to.
[22 Nov 2007 17:55] Valeriy Kravchuk
Thank you for a problem report. Please, try to repeat with a newer version, 2.1, and inform about the results.
[23 Dec 2007 0:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
[6 May 2008 18:06] Mattias Eriksson
In Eventum 2.1.1 no fatal error occurs when we recive such an email. Howerver, there is still an error messeage sent from eventum:

Hello,
 
An error was found on line '1274' of script '/[Path to eventum...]/include/class.support.php'.
 
The error message passed to us was:
 
'Empty group.'
 
A more detailed error message follows:
 
'sup_id3616
Undisclosed recipients: 
'
 
A backtrace is available:
 
APP_PATH/emails.php:61
  Support::getEmailListing((array )Array, (integer )0, (string )'ALL')
 
 
That happened on page '/emails.php' from IP Address '85.229.9.237' coming from the page (referrer) ''.
 
The user agent given was 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506)'.
 
-- 
Sincerely yours,
Automated Error_Handler Class
[6 May 2008 19:22] Mattias Eriksson
I solved the problem temporary by deleting the emails directly from the database:

SELECT `sup_id` FROM `eventum_support_email` WHERE `sup_to` LIKE '%Undisclosed%'

DELETE FROM `eventum_support_email` WHERE `sup_id` = 3535 LIMIT 1;
DELETE FROM `eventum_support_email` WHERE `sup_id` = 3638 LIMIT 1;
DELETE FROM `eventum_support_email_body` WHERE `seb_sup_id` = 3535 LIMIT 1;
DELETE FROM `eventum_support_email_body` WHERE `seb_sup_id` = 3638 LIMIT 1;
[1 Jan 2011 17:53] Valeriy Kravchuk
As Oracle no longer sponsors or coordinates active development of the Eventum software, interested parties should report bugs at https://bugs.launchpad.net/eventum