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 8bb298fe authored by deuce's avatar deuce

Don't strip CTRL-A codes except when replying.

parent f20a7e69
......@@ -24,7 +24,7 @@ hdr=msgbase.get_msg_header(false,id);
if(hdr==undefined) {
error("No such message!");
}
body=msgbase.get_msg_body(false,id,true,true);
body=msgbase.get_msg_body(false,id);
if(path==undefined) {
error("Can not read message body!");
}
......
......@@ -24,7 +24,7 @@ hdr=msgbase.get_msg_header(false,id);
if(hdr==undefined) {
error("No such message!");
}
body=msgbase.get_msg_body(false,id,true,true);
body=msgbase.get_msg_body(false,id);
if(path==undefined) {
error("Can not read message body!");
}
......
......@@ -30,7 +30,7 @@ template.idx=msgbase.get_msg_index(false,m);
if(sub=='mail' && template.idx.to!=user.number)
error("You can only read e-mail messages addressed to yourself!");
template.hdr=msgbase.get_msg_header(false,m);
template.body=msgbase.get_msg_body(false,m,true,true);
template.body=msgbase.get_msg_body(false,m);
msg=mime_decode(template.hdr,template.body);
template.body=msg.body;
......
......@@ -38,7 +38,7 @@ else {
}
template.hdr=msgbase.get_msg_header(false,id);
template.body=msgbase.get_msg_body(false,id,true,true);
template.body=msgbase.get_msg_body(false,id);
msg=mime_decode(template.hdr,template.body);
template.body=msg.body;
......
......@@ -113,7 +113,7 @@ for(displayed=0;displayed<max_messages && last_offset >= 0;last_offset--) {
if(hdr.subject=='')
hdr.subject="-- No Subject --";
template.messages[displayed.toString()]=hdr;
template.messages[displayed.toString()].attachments=count_attachments(msgarray[last_offset].hdr,msgbase.get_msg_body(true,msgarray[last_offset].offset,true,true));
template.messages[displayed.toString()].attachments=count_attachments(msgarray[last_offset].hdr,msgbase.get_msg_body(true,msgarray[last_offset].offset));
template.messages[displayed.toString()].offset=msgarray[last_offset].offset;
displayed++;
}
......
......@@ -36,7 +36,7 @@ else
template.number=hdr.number;
template.body=msgbase.get_msg_body(false,parseInt(http_request.query.reply_to),true,true);
template.body=msgbase.get_msg_body(false,parseInt(http_request.query.reply_to),true);
if(this.word_wrap != undefined) {
template.body=quote_msg(word_wrap(template.body,79),79);
}
......
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