home bbs files messages ]

Just a sample of the Echomail archive

<< oldest | < older | list | newer > | newest >> ]

 Message 1593 
 Vince Coen to mark lewis 
 makenl msgids 
 29 Jul 19 12:55:39 
 
REPLY: 1:3634/12.73 5d3e7718
MSGID: 2:250/1@fidonet 5d3edeef
CHRS: UTF-8 2
TZUTC: 0100
TID: MBSE-FIDO 1.0.7.12 (GNU/Linux-x86_64)
Hello mark!

Monday July 29 2019 00:21, you wrote to all:

I am now really confused - I use 3.5.0 compiled on a X64 system and it 
produces
8 char sequence numbers.


 >  On 2019 Jul 28 14:14:20, I wrote to you:

 ml>> has anyone else noticed that makenl is generating 10 character
 ml>> serial numbers?

 > the problem is here... specifically, %08lx does not set the maximum
 > length... only the minimum...

 >     fprintf(MailFILE, "\x01MSGID: %d:%d/%d %08lx\r\n",
 > MyAddress[A_ZONE],
 >             MyAddress[A_NET], MyAddress[A_NODE], GetSequence());

 > something like this should work but i'm not a C coder and haven't
 > tried to actually compile something to test this with...

 >     char* serialnum = printf("%08lx", GetSequence());
 >     if (strlen(serialnum) > 8)
 >     {
 >       serialnum = serialnum + strlen(serialnum) - 8;
 >     }
 >     fprintf(MailFILE, "\x01MSGID: %d:%d/%d %s\r\n", MyAddress[A_ZONE],
 >             MyAddress[A_NET], MyAddress[A_NODE], serialnum);


 > )\/(ark

 > Once men turned their thinking over to machines in the hope that this
 > would set them free. But that only permitted other men with machines
 > to enslave them.
 > ... Why do croutons come in airtight packages? It's just stale bread.


Vince

--- Mageia Linux v6 X64/Mbse v1.0.7.12/GoldED+/LNX 1.1.501-b20150715
 * Origin: Air Applewood, The Linux Gateway to the UK & Eire (2:250/1)
SEEN-BY: 1/19 123 14/5 15/0 2 16/0 19/36 34/999 90/1 104/57 106/201
SEEN-BY: 116/18 120/331 544 123/130 131 140 132/174 153/7715 154/10
SEEN-BY: 203/0 124 218/700 221/0 1 226/17 227/114 229/354 426 1014
SEEN-BY: 230/0 150 152 240/1120 5832 249/206 317 250/1 261/38 100
SEEN-BY: 261/1466 266/512 267/155 275/100 280/464 5003 5555 282/1031
SEEN-BY: 282/1056 291/1 292/854 310/31 317/3 320/119 219 322/0 757
SEEN-BY: 340/400 342/13 200 396/45 423/81 120 633/280 712/848 770/1
SEEN-BY: 801/161 189 3634/12 5020/1042
PATH: 250/1 261/38 320/219 203/0 280/464 229/426


<< oldest | < older | list | newer > | newest >> ]

(c) 1994,  bbs@darkrealms.ca