Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 7203eb80 authored by echicken's avatar echicken 🐔

For local mail, to/from_net_type may be 0 or undefined as per

Synchronet's whims. Check for falsiness instead of NET_NONE.

Just display to/from_net_addr without prefixing with to + @. Not
sure why I was doing this, but if there was a reason, I'll need
to make an per-net-type address formatting thing.
parent 3fed3417
......@@ -25,8 +25,8 @@
<div class="col-sm-11" style="cursor:pointer;" onclick="getMailBody(<? write(header.number); ?>)">
<? write(_mail_tab == 'sent' ? locale.strings.page_mail.label_message_to : locale.strings.page_mail.label_message_from); ?>:
<strong><? write(_mail_tab == 'sent' ? header.to : header.from); ?></strong>
<? if (header.from_net_type != NET_NONE) { ?>
&lt;<? write(_mail_tab == 'sent' ? (header.to + '@' + header.to_net_addr) : (header.from + '@' + header.from_net_addr)); ?>&gt;
<? if (_mail_tab == 'sent' ? header.to_net_type : header.from_net_type) { ?>
&lt;<? write(_mail_tab == 'sent' ? header.to_net_addr : header.from_net_addr); ?>&gt;
<? } ?>
<? write(locale.strings.page_mail.label_message_date); ?>
<? write((new Date(header.when_written_time * 1000)).toLocaleString()); ?>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment