Commit a85a4c35 authored by deuce's avatar deuce
Browse files

Handle an uncommon error a bit better... maybe.

parent 97e305dd
......@@ -191,7 +191,7 @@ function tagged(tag, msg, desc)
function untagged(msg)
{
client.socket.send("* "+msg+"\r\n");
debug_log("Send: * "+msg, false);
debug_log("Send: * "+msg.length+": "+msg, false);
}
......@@ -380,8 +380,12 @@ function send_fetch_response(msgnum, fmat, uid)
function add_part(mime) {
var i;
var ret='(';
var ret='(NIL) ';
if (mime.mime.parsed == undefined) {
log(LOG_WARNING, "MIME part was not actually parsed!");
return '';
}
if(mime.mime.parts != undefined) {
for(i in mime.mime.parts)
ret += add_part(mime.mime.parts[i]);
......
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