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

Marlon R Deerr MDeerr at tgf.ca
Mon Jul 30 15:15:45 BST 2012


Hello Julian,

 

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:

 

The file Name+of+dropoff+file.pdf.pdf was picked up

 

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.

 

Thanks,

Marlon

 

 

 

From: zendto-bounces at zend.to [mailto:zendto-bounces at zend.to] On Behalf
Of Julian Field
Sent: July-30-12 4:47 AM
To: ZendTo Users
Subject: [ZendTo] Re: Is is possible to identify what file was picked
up?

 

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/86ffd4a1/attachment.html 


More information about the ZendTo mailing list