Bugzilla – Attachment 124746 Details for
Bug 28803
process_message_queue.pl dies if any messsages in the message queue contain an invalid to_address
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28803: Replace INVALID_EMAIL with UNKNOWN_ERROR
Bug-28803-Replace-INVALIDEMAIL-with-UNKNOWNERROR.patch (text/plain), 2.19 KB, created by
Jonathan Druart
on 2021-09-10 09:40:12 UTC
(
hide
)
Description:
Bug 28803: Replace INVALID_EMAIL with UNKNOWN_ERROR
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-09-10 09:40:12 UTC
Size:
2.19 KB
patch
obsolete
>From 5d085c0605b75f0f079a1e207524b923268b0d13 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 10 Sep 2021 11:38:25 +0200 >Subject: [PATCH] Bug 28803: Replace INVALID_EMAIL with UNKNOWN_ERROR > >There can be other exceptions/errors raised by Koha::Email->create. > >On a follow-up bug report we should deal with the different possible errors to handle them properly >--- > C4/Letters.pm | 2 +- > koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/C4/Letters.pm b/C4/Letters.pm >index 07a47380b15..292945ab90c 100644 >--- a/C4/Letters.pm >+++ b/C4/Letters.pm >@@ -1410,7 +1410,7 @@ sub _send_message_by_email { > { > message_id => $message->{'message_id'}, > status => 'failed', >- failure_code => 'INVALID_EMAIL' >+ failure_code => 'UNKNOWN_ERROR' > } > ); > return 0; >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt >index 5503654b668..907de12d31d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt >@@ -95,7 +95,7 @@ > [% IF ( QUEUED_MESSAGE.failure_code ) %] > [% IF ( QUEUED_MESSAGE.failure_code == "INVALID_BORNUMBER" ) %]Invalid borrowernumber [% borrowernumber | html %] > [% ELSIF ( QUEUED_MESSAGE.failure_code == 'NO_EMAIL' ) %]Unable to find an email address for this borrower >- [% ELSIF ( QUEUED_MESSAGE.failure_code == "INVALID_EMAIL" ) %]Invalid email address found [% borrowernumber | html %] >+ [% ELSIF ( QUEUED_MESSAGE.failure_code == "UNKNOWN_ERROR" ) %]Unknown error (could be that an invalid email address was found [% borrowernumber | html %]) > [% ELSIF ( QUEUED_MESSAGE.failure_code == 'NO_FROM' ) %]Missing from email address > [% ELSIF ( QUEUED_MESSAGE.failure_code == 'MISSING_SMS' ) %]Missing SMS number > [% ELSIF ( QUEUED_MESSAGE.failure_code == 'DUPLICATE_MESSAGE' ) %]Message is duplicate >-- >2.25.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 28803
:
123469
|
123470
|
123475
|
123476
|
124000
|
124001
|
124131
|
124132
|
124746
|
124829
|
124878
|
124879
|
124880
|
124886
|
124887
|
124888
|
124900
|
124901
|
124902
|
125114
|
125115
|
125343
|
125344
|
125345
|
125346