Menu

#57 -log still can't be used without a filename

open
nobody
None
5
2023-04-10
2013-05-23
lwc
No

The following does NOT work (both just -log & -log "" fail):

2.7.1
[*] Allow -log to be used without a filename. When no filename was specified
before, this could have caused problems with Blat.

It throws back error code 1.

Discussion

  • Chip

    Chip - 2014-06-21

    Have you tried using any newer versions, such as the current version 3.2.1, to find out if your request is working?

     
  • lwc

    lwc - 2014-07-11

    I've just tried it in v3.2.1. It seems like -log is enabled by default.
    You see, there should be 3 modes:

    1. Not using -log at all
    2. Using -log without a filename
    3. Using -log filename

    But currently, mode 1. behaves like mode 2. That is, mode 1. shows an on-screen log.
    Actually, the only way not to show an on-screen log is using mode 3.

    Can you please fix this?

     
  • Chip

    Chip - 2023-04-10

    I just ran Blat v3.2.24 three times. The first time was without the -log option. The second time was with -log, but no filename. The third time was -log "" (empty string). Here are my results:

    F:\BLAT\BLAT3224>x64\Release\blat.exe - -body "1" -base64 -u me -pw me -to myself -s "testing base64 on message body" -p smtp4dev
    Blat v3.2.24 (build : Feb 9 2022 21:19:39)
    64-bit Windows, Full, Unicode
    
    Sending stdin.txt to me@localhost
    Subject: testing base64 on message body
    Login name is me@localhost
    
    F:\BLAT\BLAT3224>x64\Release\blat.exe - -body "1" -base64 -u me -pw me -to myself -s "testing base64 on message body" -p smtp4dev -log
    Blat v3.2.24 (build : Feb  9 2022 21:19:39)
    64-bit Windows, Full, Unicode
    
    
    2023.04.10 00:34:02 (Mon)------------Start of Session-----------------
    Blat v3.2.24 (build : Feb  9 2022 21:19:39)
    64-bit Windows, Full, Unicode
    Sending stdin.txt to me@localhost
    Subject: testing base64 on message body
    Login name is me@localhost
    2023.04.10 00:34:02 (Mon)-------------End of Session------------------
    
    F:\BLAT\BLAT3224>x64\Release\blat.exe - -body "1" -base64 -u me -pw me -to myself -s "testing base64 on message body" -p smtp4dev -log ""
    Blat v3.2.24 (build : Feb  9 2022 21:19:39)
    64-bit Windows, Full, Unicode
    
    
    2023.04.10 00:34:12 (Mon)------------Start of Session-----------------
    Blat v3.2.24 (build : Feb  9 2022 21:19:39)
    64-bit Windows, Full, Unicode
    Sending stdin.txt to me@localhost
    Subject: testing base64 on message body
    Login name is me@localhost
    2023.04.10 00:34:12 (Mon)-------------End of Session------------------
    
     
    • lwc

      lwc - 2023-04-10

      Thanks, but I've never claimed -log and -log "" are different.
      What you should compare to is running -log filename which prints to the screen even less than not using -log at all. I claim -log (or -log "") should at the very least print to the screen just as little as -log filename, and certainly not more.

       

Log in to post a comment.