• New Perl Utilities

    From Michael Dukelsky@2:5020/1042 to All on Tue Nov 24 20:53:22 2020
    Hello All,

    The following new utilities were published.

    rmLinkMail.pl - remove netmail, echomail and files of a link.
    rmLink.pl - remove a link.
    fixOutbound.pl - remove from outbound the echomail bundles not referred by any flow file.

    They use Fidoconfig::Token and Husky::Rmfiles packages (i.e. libraries) which should be installed before using the utilities.

    A new subproject huskyproject/util was created on GitHub: https://github.com/huskyproject/util

    Besides that the reworked utility showold.pl was moved here from hpt/misc. It now also uses the packages mentioned above.

    showold.pl - prints out to STDOUT how much netmail, echomail and files are stored for every link in the outbound and fileboxes and for how long they are stored.

    You may learn from README.md file how to get short help or full documentation for each of the utilities and how to install Fidoconfig::Token and Husky::Rmfiles packages.

    You may download the files in one archive here: https://github.com/huskyproject/util/archive/v1.0.zip

    Michael

    ... node (at) f1042 (dot) ru
    --- GoldED+/LNX 1.1.5-b20170303
    * Origin: Moscow, Russia (2:5020/1042)
  • From Fabio Bizzi@2:335/364.1 to Michael Dukelsky on Wed Nov 25 09:29:14 2020
    Hello Michael!

    24 Nov 20 20:53, you wrote to All:

    Hello All,

    The following new utilities were published.
    [...]

    Thank you Michael, Husky is really a great piece of software, I think it's, at the moment, really the most powerful FTN suite available. :)

    Ciao!
    Fabio

    --- GoldED+/LNX 1.1.5-b20180707
    * Origin: ]\/[imac Rebirth Boss Point (2:335/364.1)
  • From Michael Dukelsky@2:5020/1042 to All on Wed Nov 25 18:45:36 2020
    Hello All,

    Tuesday November 24 2020, Michael Dukelsky wrote to All:

    You may download the files in one archive here: https://github.com/huskyproject/util/archive/v1.0.zip

    It is better to use a different URL which always points to the latest release https://github.com/huskyproject/util/releases/latest
    It is already v1.1 now :)

    Michael

    ... node (at) f1042 (dot) ru
    --- GoldED+/LNX 1.1.5-b20170303
    * Origin: Moscow, Russia (2:5020/1042)
  • From Angel Ripoll@2:341/66 to Michael Dukelsky on Sat Nov 28 18:57:28 2020
    Hola Michael!

    25 Nov 20 18:45, Michael Dukelsky escribió a All:

    https://github.com/huskyproject/util/releases/latest
    It is already v1.1 now :)

    Thanks a lot.

    I have used fixOutbound.pl and I think it does not do what is expected.


    *********************************************************
    root@bbs:~# fixOutbound.pl --dry-run
    ### It is a dry-run, no actual changes will be made ###
    Deleting orphan files from outbound
    /srv/fido/var/spool/outbound/44e18401.tu0 deleted /srv/fido/var/spool/outbound/45601a01.tu0 deleted /srv/fido/var/spool/outbound/459aab00.we0 deleted /srv/fido/var/spool/outbound/46278906.we0 deleted /srv/fido/var/spool/outbound/46a62c06.we0 deleted /srv/fido/var/spool/outbound/46ec2d02.th0 deleted /srv/fido/var/spool/outbound/4786de00.th0 deleted /srv/fido/var/spool/outbound/47f7a605.th0 deleted
    [...]

    *********************************************************

    If I look at the file 015500ca.clo:

    ********************************************************* root@bbs:/var/spool/ftn/outbound# cat 015500ca.clo ^/var/spool/ftn/outbound/44e18401.tu0
    ^/var/spool/ftn/outbound/45601a01.tu0
    ^/var/spool/ftn/outbound/459aab00.we0
    ^/var/spool/ftn/outbound/46278906.we0
    ^/var/spool/ftn/outbound/46a62c06.we0
    ^/var/spool/ftn/outbound/46ec2d02.th0
    ^/var/spool/ftn/outbound/4786de00.th0
    ^/var/spool/ftn/outbound/47f7a605.th0
    [...]
    *********************************************************

    As you can see, the files are in a flow file.

    Un saludo,
    Angel Ripoll
    aripoll @ zruspas.org

    --- GoldED+/LNX 1.1.5-b20180707 + HPT 1.9 + Binkd 1.1 en Debian
    * Origin: Synchronet - bbs.zruspas.org - Zruspa's BBS - (2:341/66)
  • From Kai Richter@2:240/77 to Angel Ripoll on Sat Nov 28 21:19:28 2020
    Hello Angel!

    28 Nov 20, Angel Ripoll wrote to Michael Dukelsky:

    Deleting orphan files from outbound /srv/fido/var/spool/outbound/44e18401.tu0 deleted
    ^/var/spool/ftn/outbound/44e18401.tu0

    As you can see, the files are in a flow file.

    Same names but different locations = not same files.

    Regards

    Kai

    --- GoldED+/LNX 1.1.4.7
    * Origin: Monobox (2:240/77)
  • From Angel Ripoll@2:341/66 to Kai Richter on Sun Nov 29 01:12:34 2020
    Hola Kai!

    28 Nov 20 21:19, Kai Richter escribió a Angel Ripoll:

    Hello Angel!

    28 Nov 20, Angel Ripoll wrote to Michael Dukelsky:

    Deleting orphan files from outbound
    /srv/fido/var/spool/outbound/44e18401.tu0 deleted
    ^/var/spool/ftn/outbound/44e18401.tu0

    As you can see, the files are in a flow file.

    Same names but different locations = not same files.

    /var/spool/ftn is a symlink of /srv/fido/var/spool. They are the same files.

    Un saludo,
    Angel Ripoll
    aripoll @ zruspas.org

    --- GoldED+/LNX 1.1.5-b20180707 + HPT 1.9 + Binkd 1.1 en Debian
    * Origin: Synchronet - bbs.zruspas.org - Zruspa's BBS - (2:341/66)
  • From Michael Dukelsky@2:5020/1042 to Angel Ripoll on Sun Nov 29 17:03:16 2020
    Hello Angel,

    Saturday November 28 2020, Angel Ripoll wrote to Michael Dukelsky:

    I have used fixOutbound.pl and I think it does not do what is
    expected.

    Could you please send me your fidoconfig to the email below?

    Michael

    ... node (at) f1042 (dot) ru
    --- GoldED+/LNX 1.1.5-b20170303
    * Origin: Moscow, Russia (2:5020/1042)
  • From Kai Richter@2:240/77 to Angel Ripoll on Sun Nov 29 20:56:28 2020
    Hello Angel!

    29 Nov 20, Angel Ripoll wrote to Kai Richter:

    Deleting orphan files from outbound
    /srv/fido/var/spool/outbound/44e18401.tu0 deleted
    ^/var/spool/ftn/outbound/44e18401.tu0

    As you can see, the files are in a flow file.

    Same names but different locations = not same files.

    /var/spool/ftn is a symlink of /srv/fido/var/spool.
    They are the same files.

    There is no refernce to same files in the description: fixOutbound.pl - remove from outbound the echomail bundles not referred by any flow file.

    I see some husky config examples with /var/spool/ftn but normally there is no need to use that. Less complex configurations are easier to handle. I presume that you have different path definitions in your configuration. One use the symlink and one use the absolute pathname. Thats why the tool can't match the pathnames.

    I recommend to use no symlinks in the configuation. I have symlinks for quick access if i do manual maintenance work but they are nothing that husky knows about.

    Regards

    Kai

    --- GoldED+/LNX 1.1.4.7
    * Origin: Monobox (2:240/77)
  • From Michael Dukelsky@2:5020/1042 to Angel Ripoll on Sat Dec 5 11:36:06 2020
    Hello Angel,

    Saturday November 28 2020, Angel Ripoll wrote to Michael Dukelsky:

    I have used fixOutbound.pl and I think it does not do what is
    expected.


    *********************************************************
    root@bbs:~# fixOutbound.pl --dry-run
    ### It is a dry-run, no actual changes will be made ###
    Deleting orphan files from outbound /srv/fido/var/spool/outbound/44e18401.tu0 deleted
    [...]

    *********************************************************

    If I look at the file 015500ca.clo:

    ********************************************************* root@bbs:/var/spool/ftn/outbound# cat 015500ca.clo ^/var/spool/ftn/outbound/44e18401.tu0
    [...]
    *********************************************************

    As you can see, the files are in a flow file.

    I've received the config you sent me, thank you. There is no such a directory as /srv/fido/var/spool/outbound in your config. The config states that the outbound is in /var/spool/ftn/outbound. It is very strange to place a symlink in your config but it is up to you.

    Apart of this I see that fixOutbound.pl worked as expected. You used the --dry-run option. The documentation which you can view by running `perldoc fixOutbound.pl` says:
    --dry-run
    --nodry-run
    If "--dry-run" is used, perform a trial run with no changes made.
    Nothing is deleted, but the same output is produced as in a real run
    except the error messages that may appear during the actual run.

    So nothing was deleted as you asked.

    Michael

    ... node (at) f1042 (dot) ru
    --- GoldED+/LNX 1.1.5-b20170303
    * Origin: Moscow, Russia (2:5020/1042)
  • From Angel Ripoll@2:341/66 to Kai Richter on Mon Dec 7 17:43:42 2020
    Hola Kai!

    29 Nov 20 20:56, Kai Richter escribió a Angel Ripoll:

    I see some husky config examples with /var/spool/ftn but normally there
    is
    no need to use that. Less complex configurations are easier to handle. I presume that you have different path definitions in your configuration. One use the symlink and one use the absolute pathname. Thats why the tool can't match the pathnames.

    They are all with the symbolic links. I have changed it to the real paths and it works. But I don't understand why it doesn't work if everything is with the symbolic links

    Un saludo,
    Angel Ripoll
    aripoll @ zruspas.org

    --- GoldED+/LNX 1.1.5-b20180707 + HPT 1.9 + Binkd 1.1 en Debian
    * Origin: Synchronet - bbs.zruspas.org - Zruspa's BBS - (2:341/66)
  • From Angel Ripoll@2:341/66 to Michael Dukelsky on Mon Dec 7 17:44:20 2020
    Hola Michael!

    05 Dec 20 11:36, Michael Dukelsky escribió a Angel Ripoll:

    I've received the config you sent me, thank you. There is no such a directory as /srv/fido/var/spool/outbound in your config. The config states that the outbound is in /var/spool/ftn/outbound. It is very
    strange
    to place a symlink in your config but it is up to you.

    I've already changed it :)

    Un saludo,
    Angel Ripoll
    aripoll @ zruspas.org

    --- GoldED+/LNX 1.1.5-b20180707 + HPT 1.9 + Binkd 1.1 en Debian
    * Origin: Synchronet - bbs.zruspas.org - Zruspa's BBS - (2:341/66)
  • From Kai Richter@2:240/77 to Angel Ripoll on Mon Dec 7 20:31:30 2020
    Hello Angel!

    07 Dec 20, Angel Ripoll wrote to Kai Richter:

    They are all with the symbolic links. I have changed it to the real
    paths and it works. But I don't understand why it doesn't work if everything is with the symbolic links

    I've the same problem with some windows desktop links. They're files that have an *.lnk extension and some tools can detect them while others can't. Maybe some tools expand the link to absolute path internally?

    Regards

    Kai

    --- GoldED+/LNX 1.1.4.7
    * Origin: Monobox (2:240/77)
  • From Michael Dukelsky@2:5020/1042 to All on Mon Jan 18 20:35:50 2021
    Hello All,

    Version 1.8 of the Husky Perl toolkit was published. It contains:

    * rmLinkMail.pl - remove netmail, echomail and files of a link.
    * rmLink.pl - remove a link.
    * fixOutbound.pl - remove from outbound the echomail bundles not referred by any flow file.
    * showold.pl - prints out to STDOUT how much netmail, echomail and files are stored for every link in the outbound and fileboxes and for how long they are stored.

    The utilities use Fidoconfig::Token and Husky::Rmfiles packages which are also present in the toolkit.

    What's new.
    1. If htick is not installed, then tests with file echos are not started.
    2. If hpt is not in the PATH, you can define the directory with hpt.
    3. Publication of the report in an echo or in netmail was added in fixOutbound.pl.
    4. .spec files for building in rpm-based Linux distributions were added.
    5. A script for building in Fedora, RHEL and related Linux distributions using the mock utility was added.
    6. Minor fixes and improvements.

    This toolkit can be found here: https://github.com/huskyproject/util/releases/latest

    Michael

    ... node (at) f1042 (dot) ru
    --- GoldED+/LNX 1.1.5-b20170303
    * Origin: Moscow, Russia (2:5020/1042)