[horde] exception in horde-alarm
Patrick Boutilier
boutilpj at ednet.ns.ca
Thu Feb 23 13:44:55 UTC 2023
On 2023-02-23 00:29, ANANT S ATHAVALE wrote:
> Dear List,
>
> Getting the following exception for horde-alarm cron.
>
> [ ERROR! ] Error with alarm
>
> "20230221151941.fOLxk-GQZzObGzcT5IbokvV at urscmail.ursc.dos.gov.in"
> [ ERROR! ] exception 'Horde_Mail_Exception' with message 'Address is
> missing
> domain.' in /usr/share/pear/Horde/Mail/Rfc822.php:423
> Stack trace:
> #0 /usr/share/pear/Horde/Mail/Rfc822.php(366):
> Horde_Mail_Rfc822->_parseAddrSpec()
> #1 /usr/share/pear/Horde/Mail/Rfc822.php(296):
> Horde_Mail_Rfc822->_parseMailbox()
> #2 /usr/share/pear/Horde/Mail/Rfc822.php(262):
> Horde_Mail_Rfc822->_parseAddress()
> #3 /usr/share/pear/Horde/Mail/Rfc822.php(182):
> Horde_Mail_Rfc822->_parseAddressList()
> #4 /usr/share/pear/Horde/Mail/Transport.php(194):
> Horde_Mail_Rfc822->parseAddressList('kirankk', Array)
> #5 /usr/share/pear/Horde/Mail/Transport/Sendmail.php(91):
> Horde_Mail_Transport->parseRecipients('kirankk')
> #6 /usr/share/pear/Horde/Mime/Part.php(1627):
> Horde_Mail_Transport_Sendmail->send('kirankk', Array,
> Resource id
> #7668)
> #7 /usr/share/pear/Horde/Mime/Mail.php(479):
> Horde_Mime_Part->send('kirankk', Object(Horde_Mime_Headers),
> Object(Horde_Mail_Transport_Sendmail))
> #8 /usr/share/pear/Horde/Alarm/Handler/Mail.php(107):
> Horde_Mime_Mail->send(Object(Horde_Mail_Transport_Sendmail))
> #9 /usr/share/pear/Horde/Alarm.php(449):
> Horde_Alarm_Handler_Mail->notify(Array)
> #10 /usr/bin/horde-alarms(26): Horde_Alarm->notify(NULL, true,
> false, Array)
> #11 {main}
>
> Next exception 'Horde_Mime_Exception' with message 'Address is
> missing domain.' in /usr/share/pear/Horde/Mime/Part.php:1642
> Stack trace:
> #0 /usr/share/pear/Horde/Mime/Mail.php(479):
> Horde_Mime_Part->send('kirankk', Object(Horde_Mime_Headers),
> Object(Horde_Mail_Transport_Sendmail))
> #1 /usr/share/pear/Horde/Alarm/Handler/Mail.php(107):
> Horde_Mime_Mail->send(Object(Horde_Mail_Transport_Sendmail))
> #2 /usr/share/pear/Horde/Alarm.php(449):
> Horde_Alarm_Handler_Mail->notify(Array)
> #3 /usr/bin/horde-alarms(26): Horde_Alarm->notify(NULL,
> true, false,
> Array)
> #4 {main}
>
> Next exception 'Horde_Alarm_Exception' with message 'Address is
> missing domain.' in
> /usr/share/pear/Horde/Alarm/Handler/Mail.php:109
> Stack trace:
> #0 /usr/share/pear/Horde/Alarm.php(449):
> Horde_Alarm_Handler_Mail->notify(Array)
> #1 /usr/bin/horde-alarms(26): Horde_Alarm->notify(NULL,
> true, false,
> Array)
> #2 {main}
>
>
> The user has added an event and put an email id without domain for
> notification. To show those exceptions, I have here changed that email
> id to xxxx. I felt, while adding the event, it should not have allowed
> to enter email address without domain. Or added the default domain while
> inserting into database.
>
> Using HGWE 5.2.22.
>
>
>
>
This is what we did years ago. Patched
/usr/share/pear/Horde/Mail/Rfc822.php near line 157:
'default_domain' => 'ednet.ns.ca',
// 'default_domain' => null,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: boutilpj.vcf
Type: text/vcard
Size: 298 bytes
Desc: not available
URL: <https://lists.horde.org/archives/horde/attachments/20230223/51bc1f69/attachment.vcf>
More information about the horde
mailing list