<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Sorry, called totally the wrong function. That one's for handling
URIs, I meant to use the one for text. Try this line instead:<br>
<br>
$smarty->assign('filename',
htmlentities($fileList[0]['basename'], ENT_NOQUOTES, 'UTF-8'));<br>
<br>
(all the above on 1 line in case your mailer wrapped it)<br>
<br>
<div class="moz-cite-prefix">On 30/07/2012 15:15, Marlon R Deerr
wrote:<br>
</div>
<blockquote
cite="mid:A08EE36822E7184AA48B7F0B031BB51905BCBD03@TGF-Exch2.TGF.local"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 12 (filtered
medium)">
<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:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 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:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
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.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.5pt;
        font-family:Consolas;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:Consolas;}
.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="color:#1F497D">Hello Julian,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Perfect...it
works as stated, however I noticed that when a file being
dropped off has spaces in the name, it will replace the
spaces with a plus (+) sign. For instance, in the
notification email sent back, it would say something like
this:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoPlainText"><b><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif"">The
file Name+of+dropoff+file.pdf.pdf was picked up<o:p></o:p></span></b></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">This
is a little hard on the eyes to follow, especially if the
name of file has many spaces. Any way of fixing this so
spaces are shown as expected.<o:p></o:p></span></p>
<p class="MsoPlainText"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Thanks,<o:p></o:p></span></p>
<p class="MsoPlainText"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Marlon<o:p></o:p></span></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext"
lang="EN-US">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext"
lang="EN-US"> <a class="moz-txt-link-abbreviated" href="mailto:zendto-bounces@zend.to">zendto-bounces@zend.to</a>
[<a class="moz-txt-link-freetext" href="mailto:zendto-bounces@zend.to">mailto:zendto-bounces@zend.to</a>] <b>On Behalf Of </b>Julian
Field<br>
<b>Sent:</b> July-30-12 4:47 AM<br>
<b>To:</b> ZendTo Users<br>
<b>Subject:</b> [ZendTo] Re: Is is possible to identify
what file was picked up?<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">This one's
remarkably easy actually, very good idea!<br>
Edit /opt/zendto/lib/NSSDropoff.php and around line 662 you'll
see this code<br>
<br>
$smarty->assign('whoWasIt', $whoWasIt);<br>
$smarty->assign('claimID', $this->_claimID);<br>
$smarty->assign('remoteAddr',
$_SERVER['REMOTE_ADDR']);<br>
$smarty->assign('hostname',
gethostbyaddr($_SERVER['REMOTE_ADDR']));<br>
<br>
Add this line in the middle of that lot (I put it just after
the claimID line:<br>
$smarty->assign('filename',
urlencode($fileList[0]['basename']));<br>
and then edit /opt/zendto/templates/pickup_email.tpl and edit
the text to tell them about the filename which you can get by
using the string<br>
{$filename}<br>
in that file. I just added the line<br>
The file {$filename} was picked up.<br>
to pickup_email.tpl.<br>
<br>
Let me know if it works okay for you!<br>
<br>
<o:p></o:p></p>
<div>
<p class="MsoNormal">On 28/07/2012 19:42, Marlon R Deerr
wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span lang="EN-US">I have a user who
sends out drop-offs for external recipient however her
drop-off often times contains several attachments for that
one drop-off. When an external recipient picks up some
(but not all) of the files in the drop-off, the
confirmation email sent back to the sender identifies that
the drop-off was picked up (and from what source IP
address) but it doesn’t identify exactly which file in the
drop-off was picked up.</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">Is there a way to have
this identified as well in the confirmation email sent
back to the sender of the drop-off?</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif""><br>
<br>
<br>
<o:p></o:p></span></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>ZendTo mailing list<o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="mailto:ZendTo@zend.to">ZendTo@zend.to</a><o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto">http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto</a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif""><br>
<br>
<o:p></o:p></span></p>
<pre>Jules<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>-- <o:p></o:p></pre>
<pre>Julian Field MEng MBCS CITP CEng<o:p></o:p></pre>
<pre>email+iMessage: <a moz-do-not-send="true" href="mailto:Jules@ecs.soton.ac.uk">Jules@ecs.soton.ac.uk</a><o:p></o:p></pre>
<pre>Senior Tutor, Postmaster<o:p></o:p></pre>
<pre>Electronics and Computer Science<o:p></o:p></pre>
<pre>University of Southampton SO17 1BJ, UK<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Follow me at twitter.com/JulesFM<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>'The paths we take sometimes lead us away from people we know and<o:p></o:p></pre>
<pre>love. But in the end what matters is that we affect the lives of<o:p></o:p></pre>
<pre>others for the better somehow, whomever we are, whatever our story.<o:p></o:p></pre>
<pre>Obsession always destroys what it intended to nurture: but if<o:p></o:p></pre>
<pre>you're able to let yourself love honestly and without fear, maybe<o:p></o:p></pre>
<pre>that huge heart you have will somehow set you free.' - Eve Lockhart<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>'That is the land of lost content,<o:p></o:p></pre>
<pre> I see it shining plain,<o:p></o:p></pre>
<pre> The happy highways where I went,<o:p></o:p></pre>
<pre> And cannot come again.' - A.E. Houseman<o:p></o:p></pre>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<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://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto">http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto</a></pre>
<br>
<pre class="moz-signature" cols="72">Jules
--
Julian Field MEng CITP CEng
<a class="moz-txt-link-abbreviated" href="http://www.Zend.To">www.Zend.To</a>
Follow me at twitter.com/JulesFM
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
'It's okay to live without all the answers' - Charlie Eppes, 2011
'All programs have a desire to be useful' - Tron, 1982
'That is the land of lost content,
I see it shining plain,
The happy highways where I went,
And cannot come again.' - A.E. Houseman
</pre>
</blockquote>
</body>
</html>