[ZendTo] Re: Is is possible to identify what file was picked up?

Julian Field Jules at ecs.soton.ac.uk
Mon Jul 30 09:47:01 BST 2012


This one's remarkably easy actually, very good idea!
Edit /opt/zendto/lib/NSSDropoff.php and around line 662 you'll see this code

             $smarty->assign('whoWasIt', $whoWasIt);
             $smarty->assign('claimID', $this->_claimID);
             $smarty->assign('remoteAddr', $_SERVER['REMOTE_ADDR']);
             $smarty->assign('hostname', 
gethostbyaddr($_SERVER['REMOTE_ADDR']));

Add this line in the middle of that lot (I put it just after the claimID 
line:
             $smarty->assign('filename', 
urlencode($fileList[0]['basename']));
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
     {$filename}
in that file. I just added the line
     The file {$filename} was picked up.
to pickup_email.tpl.

Let me know if it works okay for you!


On 28/07/2012 19:42, Marlon R Deerr wrote:
>
> 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.
>
> Is there a way to have this identified as well in the confirmation 
> email sent back to the sender of the drop-off?
>
>
>
> _______________________________________________
> ZendTo mailing list
> ZendTo at zend.to
> http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto

Jules

-- 
Julian Field MEng MBCS CITP CEng
email+iMessage: Jules at ecs.soton.ac.uk
Senior Tutor, Postmaster
Electronics and Computer Science
University of Southampton SO17 1BJ, UK

Follow me at twitter.com/JulesFM

'The paths we take sometimes lead us away from people we know and
love. But in the end what matters is that we affect the lives of
others for the better somehow, whomever we are, whatever our story.
Obsession always destroys what it intended to nurture: but if
you're able to let yourself love honestly and without fear, maybe
that huge heart you have will somehow set you free.' - Eve Lockhart

'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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/zendto/attachments/20120730/c8d0daab/attachment.html 


More information about the ZendTo mailing list