Skip to content

sbbsecho stop process inbound files if zero bytes files exists

hi!

My inbound files are not being processed by sbbsecho. I found that there were some files that had zero size, once I deleted them, the rest of the inbound was processed correctly

root@scarlet:/sbbs/fido/inbound# ls -l
total 204
-rw------- 1 root root  2220 jul 23 18:02 0000ffcd.tua
-rw------- 1 root root  1482 jul 23 17:51 0000ffdd.tu3
-rw------- 1 root root   540 jul 23 13:24 0000fff9.TU0
-rw------- 1 root root  1634 jul 15 02:03 4224147a.tic
-rw------- 1 root root  1653 jul 20 15:30 5efd4570.tic
-rw------- 1 root root  1615 jul  5 23:59 7b333ead.tic
-rw------- 1 root root  1906 jul 23 17:38 a014a500.tu0
-rw------- 1 root root  1479 jul 23 17:40 a015b000.tu0
-rw------- 1 root root  1887 jul 23 17:44 a0165900.tu0
-rw------- 1 root root  2145 jul 23 17:49 a0179500.tu0
-rw------- 1 root root  1678 jul 23 17:51 a0184700.tu0
-rw------- 1 root root   834 jul 23 17:53 a018c600.tu0
-rw------- 1 root root  1666 jul 23 17:55 a0192b00.tu0
-rw------- 1 root root  1460 jul 23 17:56 a0197b00.tu0
-rw------- 1 root root  6608 jul 23 17:58 a019d300.tu0
-rw------- 1 root root 50741 jul 23 18:01 a01a4d00.tu0
-rw------- 1 root root   626 jul 23 18:01 a01aa200.tu0
-rw------- 1 root root   821 jul 23 18:03 a01af500.tu0
-rw------- 1 root root   712 jul 23 18:05 a01b8300.tu0
-rw------- 1 root root  5165 jul 23 18:09 a01c8c00.tu0
-rw------- 1 root root  1261 jul 23 18:10 a01cb400.tu0
-rw------- 1 root root  3177 jul 23 18:16 a01de500.tu0
-rw------- 1 root root   752 jul 23 18:20 a01f0100.tu0
-rw------- 1 root root  1401 jul 23 18:20 a01f1700.tu0
-rw------- 1 root root   750 jul 23 18:23 a01fcd00.tu0
-rw------- 1 root root  4871 jul 23 18:24 a01ff800.tu0
-rw------- 1 root root  3438 jul 23 18:33 a0217700.tu0
-rw------- 1 root root  1250 jul 23 18:36 a022a800.tu0
-rw------- 1 root root  1412 jul 23 18:38 a0233400.tu0
-rw------- 1 root root  3162 jul 23 18:41 a023c400.tu0
-rw------- 1 root root   716 jul 23 18:44 a0249300.tu0
-rw------- 1 root root   869 jul 23 18:53 a026be00.tu0
-rw------- 1 root root  5316 jul 23  2024 FCD4FFE7.TUZ
-rw------- 1 root root   428 jul 23 18:12 fffe0051.tu1
-rw------- 1 root root  1653 jul 20 18:07 HOBBYNET.tic

sbbsecho.log before deleting empty files:

2024-07-23 17:55:12 SBBSecho 3.20-Linux master/aabef5821 jun 15 2024 01:38 GCC 10.2.1 (PID 2767523) invoked with options: -lesrby!
2024-07-23 17:55:12 Configured: 2 archivers, 42 linked-nodes, 12 echolists
2024-07-23 17:55:12 NetMail directory: /sbbs/fido/netmail/
2024-07-23 17:55:12 Secure Inbound directory: /sbbs/fido/inbound/
2024-07-23 17:55:12 Non-secure Inbound directory: /sbbs/fido/inbound.nosecure/
2024-07-23 17:55:12 Outbound (BSO root) directory: /sbbs/fido/outbound/
2024-07-23 17:55:12 Read 584 areas from ../data/areas.bbs
2024-07-23 17:55:12 Read 0 areas from ../data/badareas.lst
2024-07-23 17:55:14 Read 621 echo statistics from ../data/echostats.ini
2024-07-23 17:55:14 Ignoring 0-byte file (less than 24-hours old): /sbbs/fido/inbound/FCD4FFE7.MOB
2024-07-23 17:55:14 Ignoring 0-byte file (less than 24-hours old): /sbbs/fido/inbound/FCD4FFE7.MOM
2024-07-23 17:55:14 Writing 0 areas to ../data/badareas.lst
2024-07-23 17:55:14 Deleting /sbbs/ctrl/sbbsecho.bsy (from line 3011)
2024-07-23 17:55:14 SBBSecho (PID 2767523) exiting with error level 0

After deleting these 2 empty files, the inbound was processed ok

root@scarlet:/sbbs/fido# ls -l inbound
total 16
-rw------- 1 root root 1634 jul 15 02:03 4224147a.tic
-rw------- 1 root root 1653 jul 20 15:30 5efd4570.tic
-rw------- 1 root root 1615 jul  5 23:59 7b333ead.tic
-rw------- 1 root root 1653 jul 20 18:07 HOBBYNET.tic