Skip to content
Snippets Groups Projects
Commit 0b2d6ab2 authored by rswindell's avatar rswindell
Browse files

Still pack the QWK packet (i.e. with messages from sub-boards) even if the

mail base can't be opened (e.g. it's locked for maintenance).
parent cd57c421
No related branches found
No related tags found
No related merge requests found
......@@ -332,21 +332,8 @@ bool sbbs_t::pack_qwk(char *packet, ulong *msgcnt, bool prepack)
else
personal=NULL;
if(useron.qwk&(QWK_EMAIL|QWK_ALLMAIL) /* && !prepack */) {
SAFEPRINTF(smb.file,"%smail",cfg.data_dir);
smb.retry_time=cfg.smb_retry_time;
smb.subnum=INVALID_SUB;
if((i=smb_open(&smb))!=0) {
fclose(qwk);
if(hdrs!=NULL)
fclose(hdrs);
if(voting!=NULL)
fclose(voting);
if(personal)
fclose(personal);
errormsg(WHERE,ERR_OPEN,smb.file,i,smb.last_error);
return(false);
}
if(useron.qwk&(QWK_EMAIL|QWK_ALLMAIL)
&& smb_open_sub(&cfg, &smb, INVALID_SUB) == SMB_SUCCESS) {
/***********************/
/* Pack E-mail, if any */
......@@ -425,7 +412,7 @@ bool sbbs_t::pack_qwk(char *packet, ulong *msgcnt, bool prepack)
smb_close(&smb); /* Close the e-mail */
if(mailmsgs)
free(mail);
}
}
/*********************/
/* Pack new messages */
......
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