1998-12-15 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
* msgbase.c: remove extra call to alias() which was causing
Citadel-to-Citadel mail to fall into the bit bucket.
+ * msgbase.c: fixed tempfile naming problem that could cause a new
+ outgoing netmail message to overwrite another if netproc had not been
+ run in between
1998-12-14 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
* More session table stability nonsense
char movecmd[256];
get_config();
- snprintf(tempbase,sizeof tempbase,"ap.%d",getpid());
- snprintf(temptmp,sizeof temptmp,"/tmp/%s", tempbase);
+ snprintf(tempbase, sizeof tempbase,"ap.%d", getpid());
+ snprintf(temptmp, sizeof temptmp,"/tmp/%s", tempbase);
snprintf(tempspool,sizeof tempspool,"./network/spoolin/%s", tempbase);
make_message(temptmp);
FILE *fp;
struct usersupp userbuf;
int a;
+ static int seqnum = 0;
lprintf(9, "save_message(%s,%s,%d,%d,%d)\n",
mtmp, rec, mtsflag, mailtype, generate_id);
/* Network mail - send a copy to the network program. */
if ( (strlen(recipient)>0) && (mailtype != M_LOCAL) ) {
- sprintf(aaa,"./network/spoolin/nm.%d",getpid());
+ sprintf(aaa,"./network/spoolin/netmail.%04x.%04x.%04x",
+ getpid(), CC->cs_pid, ++seqnum);
copy_file(mtmp,aaa);
system("exec nohup ./netproc >/dev/null 2>&1 &");
}