<div dir="ltr">I'm looking at kohastructure.sql on master, and the status column of the message_queue table seems to also allow a 'deleted' value.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 17, 2016 at 9:13 AM, Graham, Stephen <span dir="ltr"><<a href="mailto:s.graham4@herts.ac.uk" target="_blank">s.graham4@herts.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div link="#0563C1" vlink="#954F72" lang="EN-GB">
<div class="m_1585890630095782185WordSection1">
<p class="MsoNormal">Hi All – doing:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">select status from message_queue group by status<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">gives me 3 values:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">sent<u></u><u></u></p>
<p class="MsoNormal">pending<u></u><u></u></p>
<p class="MsoNormal">failed<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Are these 3 values the only value “allowed” in this field? Or, putting it another way, if messages are added to the table with a different status value would it cause problems in Koha?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The reason I’m asking is: as soon a book with a reservation is returned on our selfcheck machines an email is added to the message_queue table with the status of pending.  A lot can happen to this book before it actually gets on the reserve
 shelf, and may never actually get to the reserve shelf.  If the book does go missing, gets hidden etc, the user with the reservation still gets an email telling them that the book is ready to collect (when it’s not). To avoid this we are wondering if could
 stop this email from being sent (we only send out email notices once a day). We could delete the email from the message_queue table – I don’t really like deleting stuff – or we could change the status. I guess I could change to “failed”, but “cancelled”  sounds
 better.  I thinking of writing a bit of code to allow library staff to do this easily from the staff client – could I change the status to “cancelled” or is it better to stay with one of the original three?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Cheers, Stephen<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span>Stephen Graham<u></u><u></u></span></p>
<p class="MsoNormal"><span>Library Technology Consultant<u></u><u></u></span></p>
<p class="MsoNormal"><span>Academic Resources<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Segoe UI",sans-serif">Library and Computing Services<br>
University of Hertfordshire<br>
Hatfield  AL10 9AB<br>
UK<u></u><u></u></span></p>
<p class="MsoNormal"><span>Tel. 01707 286111 Ext: 77751<u></u><u></u></span></p>
<p class="MsoNormal"><span>Email <a href="mailto:s.graham4@herts.ac.uk" target="_blank">s.graham4@herts.ac.uk</a><u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>

<br>______________________________<wbr>_________________<br>
Koha-devel mailing list<br>
<a href="mailto:Koha-devel@lists.koha-community.org">Koha-devel@lists.koha-<wbr>community.org</a><br>
<a href="http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel" rel="noreferrer" target="_blank">http://lists.koha-community.<wbr>org/cgi-bin/mailman/listinfo/<wbr>koha-devel</a><br>
website : <a href="http://www.koha-community.org/" rel="noreferrer" target="_blank">http://www.koha-community.org/</a><br>
git : <a href="http://git.koha-community.org/" rel="noreferrer" target="_blank">http://git.koha-community.org/</a><br>
bugs : <a href="http://bugs.koha-community.org/" rel="noreferrer" target="_blank">http://bugs.koha-community.<wbr>org/</a><br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div>Michael Hafen<br></div>Washington County School District Technology Department<br></div>Systems Analyst<br><br></div></div></div></div>
</div>