<div dir="ltr">Greetings -<div><br></div><div>There are a number of small but annoying problems with the content of templates/dropoff_email.tpl file that I've been wrestling into submission.</div><div><br></div><div>Most stem from stray spaces at the end of lines. Sounds daft I know, but the message is composed and sent as "format-flowed", which tells the recipient's email program to look for any lines ending "space<CR><LF>" and join them with the next then reflow the result.</div>
<div><br></div><div>This means that some on the lines of the dropoff email join onto previous ones and look weird.</div><div><br></div><div>To fix edit the standard config/dropoff_email.tpl as follows:</div><div><ul style>
<li style>Line 2: (after the line beginning "This is an…"<br>Delete all the spaces that are present on this meant-to-be-blank line.<br><br></li><li style>Line 9:<br>Says "If you wish to contact the sender, just reply to this email." but our messages get sent out from a "do-not-reply" address as set with EmailSenderAddress in conf/zendto.conf. I think I read recently that ZendTo no longer forges the sender's email address for messages it sends out, so presumably this statement should no longer be present?<br>
<br></li><li style>Line 27: (the one before the line beginning "-- File…"<br>Delete all the spaces that are present on this meant-to-be-blank line.<br><br></li><li style>Line 31: (The "Description" of a file)<br>
When no description text is entered then this leaves the message's line ending with "space<CR><LF>", which causes the next line (Size) to be joined to the Description line and reflowed. A (not ideal) fix is to change<br>
Description: {$f.description}<br>to<br>Description: {if $f.description ne ""}"{$f.description}"{else}(None){/if}.<br><br>Note: the final ".", seems to be needed to stop the parser from swallowing the newline after the "{/if}" and joining with the next line anyway.</li>
</ul><div style>I wish I could improve on the final edit to avoid the need for the final "." but I'm not familiar enough with the idiosyncrasies of whatever parses the templates. Any offers…? :-)</div><div style>
<br></div><div style>Cheers,</div><div style>Mike B-)</div><div style><br></div>-- <br><font size="1"><font face="'arial narrow', sans-serif"><span style="font-size:small">IT Services, The University of York, Heslington, York YO10 5DD, UK<br>
Tel: +44-1904-323811</span><span style="font-size:small"><br>Disclaimer: <</span><a href="http://www.york.ac.uk/docs/disclaimer/email.htm" target="_blank"><span style="font-size:small">http://www.york.ac.uk/docs/disclaimer/email.htm</span></a><span style="font-size:small">></span></font><br>
</font>
</div></div>