<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Kevin,<br>
<br>
I've written the code, but haven't tested it yet. It's a fairly
simple set of changes, and 1 new preferences.php setting (the
archive email address to use).<br>
<br>
Here's what I have written in the Changelog and in preferences.php:<br>
<br>
<tt>- Added new preferences.php setting 'archiveEmailAddress'. If
this is not ''</tt><tt><br>
</tt><tt> and it contains an '@', then this address is added to the
"Bcc" list of</tt><tt><br>
</tt><tt> every email sent by ZendTo, except for those used to
verify remote senders.</tt><tt><br>
</tt><tt> It is '', and hence disabled, by default.</tt><br>
<br>
<tt> // If you need to keep a complete archive of emails sent by
ZendTo,</tt><tt><br>
</tt><tt> // excluding the ones used to verify external senders,</tt><tt><br>
</tt><tt> // put the archive's email address in here. It will be
added to the</tt><tt><br>
</tt><tt> // Bcc list of every relevant email sent. If you only
want to archive</tt><tt><br>
</tt><tt> // some types of messages, simply apply some Inbox
filters to the mailbox</tt><tt><br>
</tt><tt> // that receives these archive copies.</tt><tt><br>
</tt><tt> // To disable this feature, leave this set to ''.</tt><tt><br>
</tt><tt> 'archiveEmailAddress' => '',</tt><tt><br>
</tt><br>
<b>Branden</b> — Once you can confirm that this will do what you
need, let Kevin and I know and I'll get a beta version released for
you to try.<br>
<br>
Cheers,<br>
Jules.<br>
<br>
<div class="moz-cite-prefix">On 02/04/2020 18:52, Kevin Miller via
ZendTo wrote:<br>
</div>
<blockquote type="cite"
cite="mid:WM!7c840247a17323de3834bdd36b7da5f95bd37cdfe37d526e3e69cdbb2d47f7a0f58e8b36ff867b4349be59b9b292bf37!@mx.jul.es">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;}
span.EmailStyle21
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:#1F497D;}
span.EmailStyle22
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Brillian.
I like the BCC solution. That should be really easy for
them to do and they could have all they need and more for
perpetuity! I’m cc:ing my counterpart there; I can work
with him to get them lined out on how this could work.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Thanks
much.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">...Kevin<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">--<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Kevin
Miller<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Network/email
Administrator, CBJ MIS Dept.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">155
South Seward Street<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Juneau,
Alaska 99801<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Phone:
(907) 586-0242, Fax: (907) 586-4588 Registered Linux User
No: 307357<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">
ZendTo <a class="moz-txt-link-rfc2396E" href="mailto:zendto-bounces@zend.to"><zendto-bounces@zend.to></a>
<b>On Behalf Of </b>Jules via ZendTo<br>
<b>Sent:</b> Thursday, April 2, 2020 9:12 AM<br>
<b>To:</b> ZendTo Users <a class="moz-txt-link-rfc2396E" href="mailto:zendto@zend.to"><zendto@zend.to></a><br>
<b>Cc:</b> Jules <a class="moz-txt-link-rfc2396E" href="mailto:Jules@Zend.To"><Jules@Zend.To></a>; Kevin Miller
<a class="moz-txt-link-rfc2396E" href="mailto:kevin.miller@juneau.org"><kevin.miller@juneau.org></a><br>
<b>Subject:</b> Re: [ZendTo] Feature request...<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="text-align:center" align="center"><span
style="color:red">EXTERNAL E-MAIL: BE CAUTIOUS WHEN OPENING
FILES OR FOLLOWING LINKS</span><o:p></o:p></p>
<div class="MsoNormal" style="text-align:center" align="center">
<hr width="100%" size="2" align="center">
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Kevin,<br>
<br>
Always happy to help out the emergency services. I've needed
their help a few times in the past myself. I've never had to
call the coastguard, mountain rescue or cave rescue, but
I've used all the obvious ones. Our county police force even
has a specialist animal rescue team (experts at getting cows
out of ditches among other things!).<br>
<br>
It looks pretty simple to write. It's basically a matter of
logging new drop-offs in more detail (controlled by a
preferences.php option that by default will switch off the
extra detail). Then a new script run from a cron job that
runs overnight, pulls the relevant info from the last day's
zendto.log and sends a plain-text email of the details.<br>
<br>
Or else I do it straight from the ZendTo database, which
would probably be a cleaner solution, and that gets run as
part of the overnight house-keeping cron job.<br>
<br>
Can you find out exactly what information they want about
each drop-off?<br>
The obvious answer from what you've said is:<br>
- Sender username<br>
- Sender email<br>
- List of real names of the files<br>
- Date+time stamp of when the drop-off was created.<br>
<br>
Other potential things they might want to add:<br>
- List of recipient emails (if they mistyped an email
address and later the state said "but we never got it", it
makes working out why a lot easier)<br>
- Checksum of each file (if calculated).<br>
<br>
** There is a complete alternative to this:<br>
How about if you could give an extra email address in
preferences.php, and all "some files have been dropped off
for you" messages were also Bcc-ed to that email address?
Then you've got *all* the details you could ever want, and
normally it just feeds into an "archive" mailbox of some
sort. Then when the need arises, someone can look through
the messages for the day they're interested in, or search
them any other way they like using their email app.<br>
<br>
Have a chat to them and see how they would like to go.<br>
Personally, the extra bcc address quietly added is by far
the easiest to implement, and would guarantee they had all
the info about each drop-off that they might need. But it
wouldn't be a neat little daily table of what was sent that
day. Depends on how they want to use it, which is often
different to how they think they want to use it. Imagine 6
months in the future: will someone really be reading that
table every day? Or would an archive of the emails be more
useful?<br>
<br>
Cheers,<br>
Jules.<br>
<br>
<o:p></o:p></p>
<div>
<p class="MsoNormal">On 02/04/2020 17:20, Kevin Miller via
ZendTo wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">It’s
not a show stopper but the Juneau Police department is
using zendto to upload evidence to share it with the
state or some such thing and they want an audit trail to
show what officer uploaded what file when. But I can
appreciate the privacy aspect which is equally
important. Both myself and the IT guy there think the
way they’re going about it in a goofy way so I can just
say it’s not a feature currently available and let it
quietly fade into the background.</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Thanks
for all you do…</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> </span><o:p></o:p></p>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">...Kevin</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">--</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Kevin
Miller</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Network/email
Administrator, CBJ MIS Dept.</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">155
South Seward Street</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Juneau,
Alaska 99801</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Phone:
(907) 586-0242, Fax: (907) 586-4588 Registered Linux
User No: 307357</span><o:p></o:p></p>
</div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> </span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">
ZendTo
<a href="mailto:zendto-bounces@zend.to"
moz-do-not-send="true"><zendto-bounces@zend.to></a>
<b>On Behalf Of
</b>Jules via ZendTo<br>
<b>Sent:</b> Thursday, April 2, 2020 1:35 AM<br>
<b>To:</b> ZendTo Users <a
href="mailto:zendto@zend.to"
moz-do-not-send="true"><zendto@zend.to></a><br>
<b>Cc:</b> Jules <a href="mailto:Jules@Zend.To"
moz-do-not-send="true"><Jules@Zend.To></a>;
Kevin Miller
<a href="mailto:kevin.miller@juneau.org"
moz-do-not-send="true"><kevin.miller@juneau.org></a><br>
<b>Subject:</b> Re: [ZendTo] Feature request...</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal" style="text-align:center"
align="center"><span style="color:red">EXTERNAL E-MAIL: BE
CAUTIOUS WHEN OPENING FILES OR FOLLOWING LINKS</span><o:p></o:p></p>
<div class="MsoNormal" style="text-align:center"
align="center">
<hr width="100%" size="2" align="center">
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Kevin,<br>
<br>
Please can I ask "why?"<br>
<br>
That seems very intrusive to me, which is partly why I
don't even log that information.<br>
<br>
Cheers,<br>
Jules.<o:p></o:p></p>
<div>
<p class="MsoNormal">On 01/04/2020 23:11, Kevin Miller
via ZendTo wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<pre>I have a user wanting a daily report via email on the previous day's drop-offs. He says "We would need the Who, What and When. This is just to document so and so officer dropped of files x,y,z at whatever time. "<o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre>I looked in zendto.log but it will note that Joe Blow dropped off 5 files, but not the specifics my user is looking for. Thought maybe it might be a nice addition to a future release.<o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre>...Kevin<o:p></o:p></pre>
<pre>--<o:p></o:p></pre>
<pre>Kevin Miller<o:p></o:p></pre>
<pre>Network/email Administrator, CBJ MIS Dept.<o:p></o:p></pre>
<pre>155 South Seward Street<o:p></o:p></pre>
<pre>Juneau, Alaska 99801<o:p></o:p></pre>
<pre>Phone: (907) 586-0242, Fax: (907) 586-4588 Registered Linux User No: 307357<o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>ZendTo mailing list<o:p></o:p></pre>
<pre><a href="mailto:ZendTo@zend.to" moz-do-not-send="true">ZendTo@zend.to</a><o:p></o:p></pre>
<pre><a href="http://jul.es/mailman/listinfo/zendto" moz-do-not-send="true">http://jul.es/mailman/listinfo/zendto</a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><br>
<br>
<br>
<o:p></o:p></p>
<pre>Jules<o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre>-- <o:p></o:p></pre>
<pre>Julian Field MEng CEng CITP MBCS MIEEE MACM<o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre>'In Flanders fields the poppies blow<o:p></o:p></pre>
<pre> Between the crosses, row on row,<o:p></o:p></pre>
<pre> That mark our place: and in the sky<o:p></o:p></pre>
<pre> The larks still bravely singing fly<o:p></o:p></pre>
<pre> Scarce heard amid the guns below.<o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre> We are the dead: Short days ago,<o:p></o:p></pre>
<pre> We lived, felt dawn, saw sunset glow,<o:p></o:p></pre>
<pre> Loved and were loved: and now we lie<o:p></o:p></pre>
<pre> In Flanders fields!<o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre> Take up our quarrel with the foe<o:p></o:p></pre>
<pre> To you, from failing hands, we throw<o:p></o:p></pre>
<pre> The torch: be yours to hold it high<o:p></o:p></pre>
<pre> If ye break faith with us who die,<o:p></o:p></pre>
<pre> We shall not sleep, though poppies grow<o:p></o:p></pre>
<pre> In Flanders fields.' Lieutenant Colonel John McCrae<o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre>Composed at the battlefront on May 3, 1915 <o:p></o:p></pre>
<pre>during the second battle of Ypres, Belgium<o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre><a href="http://www.Zend.To" moz-do-not-send="true">www.Zend.To</a><o:p></o:p></pre>
<pre>Twitter: @JulesFM<o:p></o:p></pre>
</div>
<p class="MsoNormal"><br>
<br>
<o:p></o:p></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>ZendTo mailing list<o:p></o:p></pre>
<pre><a href="mailto:ZendTo@zend.to" moz-do-not-send="true">ZendTo@zend.to</a><o:p></o:p></pre>
<pre><a href="http://jul.es/mailman/listinfo/zendto" moz-do-not-send="true">http://jul.es/mailman/listinfo/zendto</a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><br>
<br>
<o:p></o:p></p>
<pre>Jules<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>-- <o:p></o:p></pre>
<pre>Julian Field MEng CEng CITP MBCS MIEEE MACM<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>'One of the deep secrets of life is that all that is really worth<o:p></o:p></pre>
<pre> doing is what we do for others.' - Lewis Carroll<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><a href="http://www.Zend.To" moz-do-not-send="true">www.Zend.To</a><o:p></o:p></pre>
<pre>Twitter: @JulesFM<o:p></o:p></pre>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
ZendTo mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ZendTo@zend.to">ZendTo@zend.to</a>
<a class="moz-txt-link-freetext" href="http://jul.es/mailman/listinfo/zendto">http://jul.es/mailman/listinfo/zendto</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">Jules
--
Julian Field MEng CEng CITP MBCS MIEEE MACM
'Ensanguining the skies
How heavily it dies
Into the west away;
Past touch and sight and sound
Not further to be found,
How hopeless under ground
Falls the remorseful day.' - A.E.Houseman
<a class="moz-txt-link-abbreviated" href="http://www.Zend.To">www.Zend.To</a>
Twitter: @JulesFM
</pre>
</body>
</html>