//FIXME: please document why it is we have to check the first char of the flag but we then go ahead and do a full string comparison anyway. Is this a speed enhancement? If not, let's keep it simple and just compare the full string and forget the switch block.
* Previously the links for downloading and unsafe images were printed
* under the mail. By putting the links in a global variable we can
* print it in the toolbar where it belongs. Since the original code was
* in this place it's left here. It might be possible to move it to some
* other place if that makes sense. The possibility to do so has not
* been evaluated yet.
*/
// Initialize the global variable to an empty string.
// FIXME: To have $download_and_unsafe_link as a global variable might not be needed since the use of separate variables ($download_href, $unsafe_image_toggle_href, and $unsafe_image_toggle_text) for the templates was introduced.
$download_and_unsafe_link = '';
// Prepare and build a link for downloading the mail.
{ /* no-op... there was no closing tag for this RCDATA/RAWTEXT tag - we could probably set $curpos to the end of $body, but this HTML is malformed anyway and should just fall apart on its own */ }