• qwkmail.out created after importing QWK mail?

    From Björn Wiberg@2:201/137 to g00r00 on Sat Aug 28 19:45:56 2021
    Hello g00r00!

    One thing that I have noticed for some time now, but forgot to ask about earlier, is that qwkpoll appears to create a qwkmail.out semaphore after *importing* QWK mail.

    Here's an example flow from my system (combined/interleaved excerpts from mis.log and qwkpoll.log):

    + 2021.08.28 15:43:28 EVENT Running event: CUSTOM: Poll QWK networks
    + 2021.08.28 15:43:28 EVENT Cmd: touch /home/bbs/mystic/semaphore/qwkpoll.now + 2021.08.28 15:43:28 EVENT Res: 0

    + 2021.08.28 15:43:38 EVENT Removing: /home/bbs/mystic/semaphore/qwkpoll.now
    + 2021.08.28 15:43:38 EVENT Removing: /home/bbs/mystic/semaphore/qwkpoll.finished
    + 2021.08.28 15:43:38 EVENT Running event: CUSTOM: Poll QWK networks
    + 2021.08.28 15:43:38 EVENT Cmd: timeout -k 300 --preserve-status -v 300 ./qwkpoll all

    Aug 28 15:43:38 QWKPOLL Startup (v1.12 A47 Linux/64 Compiled 2021/08/22 07:33:20)
    Aug 28 15:43:38 Exchanging Mail for DOVE-Net
    Aug 28 15:43:39 Exported @VERT.rep -> 0 msgs
    Aug 28 15:43:39 Connecting via FTP to dove.synchro.net
    Aug 28 15:43:39 R:220-Vertrauen (cvs.synchro.net)
    Aug 28 15:43:39 Connected
    Aug 28 15:43:39 Local IP is 188.149.138.116
    Aug 28 15:43:39 S:USER SCBBS
    Aug 28 15:43:39 R:331 User name okay, need password.
    Aug 28 15:43:39 S:PASS <not shown>
    Aug 28 15:43:40 R:230-Welcome!
    Aug 28 15:43:40 S:TYPE I
    Aug 28 15:43:40 R:200 All files sent in BINARY mode.
    Aug 28 15:43:40 S:MODE S
    Aug 28 15:43:40 R:200 STREAM mode.
    Aug 28 15:43:40 Logged in as SCBBS
    Aug 28 15:43:40 Downloading QWK packet
    Aug 28 15:43:40 S:PASV
    Aug 28 15:43:40 R:227 Entering Passive Mode (71,95,196,36,4,5)
    Aug 28 15:43:40 S:RETR VERT.qwk
    Aug 28 15:43:45 R:150 Opening BINARY mode data connection for file transfer. Aug 28 15:43:45 R:226 Download complete (14828 cps).
    Aug 28 15:43:45 OK: VERT.qwk (7,414 bytes)
    Aug 28 15:43:45 Importing QWK packet:
    Aug 28 15:43:45 Imported 6 messages (0 failed)

    + 2021.08.28 15:43:45 EVENT Res: 0
    + 2021.08.28 15:43:45 EVENT Cmd: touch /home/bbs/mystic/semaphore/qwkpoll.finished
    + 2021.08.28 15:43:45 EVENT Res: 0

    + 2021.08.28 15:43:48 EVENT Removing: /home/bbs/mystic/semaphore/qwkmail.out
    + 2021.08.28 15:43:48 EVENT Removing: /home/bbs/mystic/semaphore/qwkmail.finished
    + 2021.08.28 15:43:48 EVENT Running event: CUSTOM: Send QWK network mail
    + 2021.08.28 15:43:48 EVENT Cmd: timeout -k 300 --preserve-status -v 300 ./qwkpoll all

    Aug 28 15:43:48 QWKPOLL Startup (v1.12 A47 Linux/64 Compiled 2021/08/22 07:33:20)
    Aug 28 15:43:48 Exchanging Mail for DOVE-Net
    Aug 28 15:43:49 Exported @VERT.rep -> 0 msgs
    Aug 28 15:43:49 Connecting via FTP to dove.synchro.net
    Aug 28 15:43:49 R:220-Vertrauen (vert.synchro.net)
    Aug 28 15:43:49 Connected
    Aug 28 15:43:49 Local IP is 188.149.138.116
    Aug 28 15:43:49 S:USER SCBBS
    Aug 28 15:43:50 R:331 User name okay, need password.
    Aug 28 15:43:50 S:PASS <not shown>
    Aug 28 15:43:50 R:230-Welcome!
    Aug 28 15:43:50 S:TYPE I
    Aug 28 15:43:50 R:200 All files sent in BINARY mode.
    Aug 28 15:43:50 S:MODE S
    Aug 28 15:43:50 R:200 STREAM mode.
    Aug 28 15:43:50 Logged in as SCBBS
    Aug 28 15:43:50 Downloading QWK packet
    Aug 28 15:43:50 S:PASV
    Aug 28 15:43:51 R:227 Entering Passive Mode (71,95,196,34,7,208)
    Aug 28 15:43:51 S:RETR VERT.qwk
    Aug 28 15:44:01 R:550 No QWK packet created (no new messages)
    Aug 28 15:44:01 Packet does not exist on remote: VERT.qwk
    Aug 28 15:44:01 Response: 550 No QWK packet created (no new messages)

    + 2021.08.28 15:44:01 EVENT Res: 0
    + 2021.08.28 15:44:01 EVENT Cmd: touch /home/bbs/mystic/semaphore/qwkmail.finished
    + 2021.08.28 15:44:01 EVENT Res: 0

    This appears to cause an extraneous (unnecessary) poll to the QWK server.
    Is this expected (perhaps I am missing something)?

    Many thanks in advance!

    Best regards
    Bj”rn
    --- Mystic BBS v1.12 A47 2021/08/22 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (2:201/137)
  • From g00r00@1:129/215 to Björn Wiberg on Sun Aug 29 09:52:54 2021
    One thing that I have noticed for some time now, but forgot to ask about earlier, is that qwkpoll appears to create a qwkmail.out semaphore after *importing* QWK mail.

    QwkPoll is not supposed to be creating any semaphore, so that is absolutely a bug if its happening. I'll take a look and see if I can get it fixed up in the next build.

    Thanks!

    ... The dog ate my .REP packet

    --- Mystic BBS v1.12 A47 2021/08/22 (Windows/64)
    * Origin: Sector 7 * Mystic WHQ (1:129/215)
  • From Björn Wiberg@2:201/137 to g00r00 on Sun Aug 29 18:24:51 2021
    Hello g00r00!

    Thank you for your reply!

    On 29 Aug 2021, g00r00 said the following...
    QwkPoll is not supposed to be creating any semaphore, so that is absolutely a bug if its happening. I'll take a look and see if I can
    get it fixed up in the next build.

    Thanks a lot!

    (I'll be happy to test it out for you!)

    Best regards
    Bj”rn

    --- Mystic BBS v1.12 A47 2021/08/22 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (2:201/137)
  • From Björn Wiberg@2:201/137 to g00r00 on Sat Dec 11 11:33:54 2021
    Hello g00r00!

    On 29 Aug 2021, Bj”rn Wiberg said the following...
    QwkPoll is not supposed to be creating any semaphore, so that is absolutely a bug if its happening. I'll take a look and see if I can get it fixed up in the next build.

    Just wanted to check -- did you find any references in the source code to qwkpoll creating the qwkmail.out semaphore on QWK mail imports?

    I tried running strings on the qwkpoll binary and it seems that there is some kind of reference there:

    bbs@glimmer:~/mystic$ strings qwkpoll | grep qwkmail
    qwkmail.out

    This shows up in my qwkpoll.log as:

    Dec 11 11:03:05 QWKPOLL Startup (v1.12 A47 Linux/64 Compiled 2021/12/10 13:40:27)
    Dec 11 11:03:05 Exchanging Mail for DOVE-Net
    Dec 11 11:03:06 Exported @VERT.rep -> 0 msgs
    Dec 11 11:03:06 Connecting via FTP to dove.synchro.net
    Dec 11 11:03:11 R:220-Vertrauen (vert.synchro.net)
    Dec 11 11:03:11 Connected
    Dec 11 11:03:11 Local IP is 188.149.138.116
    Dec 11 11:03:11 S:USER SCBBS
    Dec 11 11:03:11 R:331 User name okay, need password.
    Dec 11 11:03:11 S:PASS <not shown>
    Dec 11 11:03:12 R:230-Welcome!
    Dec 11 11:03:12 S:TYPE I
    Dec 11 11:03:12 R:200 All files sent in BINARY mode.
    Dec 11 11:03:12 S:MODE S
    Dec 11 11:03:12 R:200 STREAM mode.
    Dec 11 11:03:12 Logged in as SCBBS
    Dec 11 11:03:12 Downloading QWK packet
    Dec 11 11:03:12 S:PASV
    Dec 11 11:03:12 R:227 Entering Passive Mode (71,95,196,34,7,208)
    Dec 11 11:03:13 S:RETR VERT.qwk
    Dec 11 11:03:23 R:150 Opening BINARY mode data connection for file transfer. Dec 11 11:03:23 R:226 Download complete (13580 cps).
    Dec 11 11:03:23 OK: VERT.qwk (6,790 bytes)
    Dec 11 11:03:23 Importing QWK packet:
    Dec 11 11:03:23 Imported 4 messages (0 failed)

    ...immediately followed by:

    Dec 11 11:03:25 QWKPOLL Startup (v1.12 A47 Linux/64 Compiled 2021/12/10 13:40:27)
    Dec 11 11:03:25 Exchanging Mail for DOVE-Net
    Dec 11 11:03:25 Exported @VERT.rep -> 0 msgs
    Dec 11 11:03:25 Connecting via FTP to dove.synchro.net
    Dec 11 11:03:26 R:220-Vertrauen (cvs.synchro.net)
    Dec 11 11:03:26 Connected
    Dec 11 11:03:26 Local IP is 188.149.138.116
    Dec 11 11:03:26 S:USER SCBBS
    Dec 11 11:03:26 R:331 User name okay, need password.
    Dec 11 11:03:26 S:PASS <not shown>
    Dec 11 11:03:26 R:230-Welcome!
    Dec 11 11:03:26 S:TYPE I
    Dec 11 11:03:26 R:200 All files sent in BINARY mode.
    Dec 11 11:03:26 S:MODE S
    Dec 11 11:03:27 R:200 STREAM mode.
    Dec 11 11:03:27 Logged in as SCBBS
    Dec 11 11:03:27 Downloading QWK packet
    Dec 11 11:03:27 S:PASV
    Dec 11 11:03:27 R:227 Entering Passive Mode (71,95,196,36,4,1)
    Dec 11 11:03:27 S:RETR VERT.qwk
    Dec 11 11:03:31 R:550 No QWK packet created (no new messages)
    Dec 11 11:03:31 Packet does not exist on remote: VERT.qwk
    Dec 11 11:03:31 Response: 550 No QWK packet created (no new messages)

    The first qwkpoll run is performed by a semaphore event looking for a qwkpoll.now semaphore (created manually by me to trigger a poll).

    The second qwkpoll run is performed by a semaphore event looking for a qwkmail.out semaphore (which appears to be created by the previous qwkpoll run).

    Many thanks in advance!

    Best regards
    Bj”rn

    --- Mystic BBS v1.12 A47 2021/12/10 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (2:201/137)
  • From g00r00@1:129/215 to Björn Wiberg on Mon Dec 13 11:36:51 2021
    Just wanted to check -- did you find any references in the source code to qwkpoll creating the qwkmail.out semaphore on QWK mail imports?

    Sorry I must have forgot about this one for some reason I didn't remember this as an issue.

    I just looked into it and you are right there is a bug there. I think it should be fixed up in the next prealpha build.

    ... The seminar on time travel will be held two weeks ago

    --- Mystic BBS v1.12 A47 2021/12/10 (Windows/64)
    * Origin: Sector 7 * Mystic WHQ (1:129/215)
  • From Björn Wiberg@2:201/137 to g00r00 on Mon Dec 13 20:49:26 2021
    Hello g00r00!

    Thank you for your reply!

    On 13 Dec 2021, g00r00 said the following...
    qwkpoll creating the qwkmail.out semaphore on QWK mail imports?

    Sorry I must have forgot about this one for some reason I didn't
    remember this as an issue.

    No problem!

    I just looked into it and you are right there is a bug there. I think it should be fixed up in the next prealpha build.

    Sounds great! Thanks a lot!

    Best regards
    Bj”rn

    --- Mystic BBS v1.12 A47 2021/12/10 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (2:201/137)