Skip to content
Snippets Groups Projects
Commit 280ad580 authored by rswindell's avatar rswindell
Browse files

Bug fix: when updating a sent netmail message's index and header records,

it would always update the message at index offset 0, thus not correctly
marking the sent message as deleted and sending dupes later. This also led
to mild mail database corruption (duplicate message numbers and index
header offsets).
parent 64bef381
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* *
* Copyright 2000 Rob Swindell - http://www.synchro.net/copyright.html *
* Copyright 2003 Rob Swindell - http://www.synchro.net/copyright.html *
* *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
......@@ -276,7 +276,7 @@ bool sbbs_t::pack_rep(uint hubnum)
if(mail[l].number>qwkmail_last)
continue;
memset(&msg,0,sizeof(msg));
msg.idx=mail[l];
/* !IMPORTANT: search by number (do not initialize msg.idx.offset) */
if(!loadmsg(&msg,mail[l].number))
continue;
......
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