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

...
 
Commits (1)
...@@ -448,6 +448,10 @@ function view_msg(msgbase, msg, lines, total_msgs, grp_name, sub_name, is_operat ...@@ -448,6 +448,10 @@ function view_msg(msgbase, msg, lines, total_msgs, grp_name, sub_name, is_operat
, sub_name , sub_name
, msg.num , msg.num
, total_msgs)); , total_msgs));
if((msgbase.attributes & SMB_EMAIL) && !(msg.attr&MSG_READ) && (msg.to_ext == user.number)) {
if(!update_msg_attr(msgbase, msg, msg.attr |= MSG_READ))
alert("failed to add read attribute");
}
// Only message text nav keys are handled here // Only message text nav keys are handled here
var key = console.getkeys(total_msgs, K_UPPER|K_NOCRLF); var key = console.getkeys(total_msgs, K_UPPER|K_NOCRLF);
switch(key) { switch(key) {
...@@ -1129,14 +1133,6 @@ function list_msgs(msgbase, list, current, preview, grp_name, sub_name) ...@@ -1129,14 +1133,6 @@ function list_msgs(msgbase, list, current, preview, grp_name, sub_name)
viewed_msg = current; viewed_msg = current;
} }
} }
if(list[current]) {
var msg = list[current];
if(mail && msg.to_ext == user.number) {
if(!update_msg_attr(msgbase, msg, msg.attr | MSG_READ))
alert("failed to add read attribute");
}
}
break; break;
case 'D': case 'D':
console.clearline(); console.clearline();
......