Skip to content
Snippets Groups Projects
Commit 0081daa9 authored by rswindell's avatar rswindell
Browse files

Remove INTRANSIT flag from all mail

parent 0a13e7ff
No related branches found
No related tags found
No related merge requests found
/* notransit.js */
/* Removes MSG_INTRANSIT attribute from messages in mail database */
load("sbbsdefs.js");
mail = new MsgBase("mail");
if(!mail.open()) {
alert(mail.last_error);
exit();
}
for(i=0;i<mail.total_msgs;i++) {
hdr = mail.get_msg_header(true,i);
printf("#%lu from: %-30s %08lx\r\n",hdr.number,hdr.from,hdr.netattr);
if(hdr && hdr.netattr&MSG_INTRANSIT) {
hdr.netattr&=~MSG_INTRANSIT;
printf("Removing in-transit attribute from message #%lu\r\n",hdr.number);
if(!mail.put_msg_header(true,i,hdr))
alert(mail.last_error);
}
}
mail.close();
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment