Skip to content
Snippets Groups Projects
Commit 6dc2ce06 authored by rswindell's avatar rswindell
Browse files

No longer sends messages with the deleted attribute set.

parent f9bf0c3e
No related branches found
No related tags found
No related merge requests found
......@@ -153,6 +153,8 @@ while(client.socket.is_connected) {
hdr=msgbase.get_msg_header(false,i);
if(hdr==null)
continue;
if(hdr.attr&MSG_DELETE) /* marked for deletion */
continue;
writeln(format("%u\t%s\t%s\t%s\t%u\t%u\t%u\t%u"
,i
,hdr.subject
......@@ -184,6 +186,8 @@ while(client.socket.is_connected) {
hdr=msgbase.get_msg_header(false,i);
if(hdr==null)
continue;
if(hdr.attr&MSG_DELETE) /* marked for deletion */
continue;
var field="";
switch(cmd[1].toLowerCase()) { /* header */
case "subject":
......@@ -246,6 +250,10 @@ while(client.socket.is_connected) {
writeln("430 unvalidated message");
break;
}
if(hdr.attr&MSG_DELETE) {
writeln("430 deleted message");
break;
}
if(hdr.attr&MSG_PRIVATE
&& hdr.to.toLowerCase()!=user.alias.toLowerCase()
&& hdr.to.toLowerCase()!=user.name.toLowerCase()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment