Menu

#88 m_filter error to stdout kills forward session

7.0.12
accepted
2025-04-09
2025-04-08
Chris
No

I get the following error that gets injected into a forwarding session:

m_filter : file '/usr/local/var/ax25/fbb/mail/mail4/m_009604.mes' openedm_filter : message file '/usr/local/var/ax25/fbb/mail/mail4/m_009604.mes' appended to 'm_filter.fwd'FF

and since this is not part of the FBB forwarding command set, the session terminates before forwarding is finished.

-Thanks
Chris KQ6UP

Related

Tickets: #88

Discussion

  • Chris

    Chris - 2025-04-08

    Here is a patch:

    --- m_filter.c.dist 2025-04-08 05:25:34.045019283 -0700
    +++ m_filter.c 2025-04-08 05:32:23.175029662 -0700
    @@ -50,13 +50,13 @@
    hptr_m = open (av[1], O_RDONLY, S_IREAD|S_IWRITE);
    if (hptr_m == -1) {
    / DEBUG F6BVP /
    - printf ("m_filter : could not open file '%s'\n", av[1]);
    + fprintf(stderr, "m_filter : could not open file '%s'\n", av[1]);

                return (0);
        }
    

    / DEBUG F6BVP /
    - printf ("m_filter : file '%s' opened\n", av[1]);
    + fprintf(stderr, "m_filter : file '%s' opened\n", av[1]);

        nb = 0;
        match = 0;
    

    @@ -88,13 +88,13 @@
    if (found)
    {
    / DEBUG F6BVP /
    - printf ("m_filter : file '%s' is a 7+ file\n", av[1]);
    + fprintf(stderr, "m_filter : file '%s' is a 7+ file\n", av[1]);

                /* The pattern has been found. This is a 7+ file */
                hptr_d = open ("m_filter.fwd", O_APPEND|O_CREAT|O_WRONLY, S_IREAD|S_IWRITE);
                if (hptr_d == -1) {
    

    / DEBUG F6BVP /
    - printf ("m_filter : did not find or could not open file 'm_filter.fwd'\n");
    + fprintf(stderr, "m_filter : did not find or could not open file 'm_filter.fwd'\n");

                        return (0);
                }
    

    @@ -118,7 +118,7 @@
    }

    / DEBUG F6BVP /
    - printf ("m_filter : message file '%s' appended to 'm_filter.fwd'\n", av[1]);
    + fprintf(stderr, "m_filter : message file '%s' appended to 'm_filter.fwd'\n", av[1]);

        close (hptr_m);
        return (0);
    
     
  • Dave van der Locht

    I thought message filters aren't part of the LinFBB package itself as they're external tools invoked by LinFBB.

    For which message filter is this patch intended? I can't find a packaged m_filter.c.

     
    • Chris

      Chris - 2025-04-08

      It is a separate package here on the sourceforge site:

      https://sourceforge.net/projects/linfbb/files/7plus/7plus.tar.bz2/download

      This is to provide 7plus compression in the file server.

      One sends a message like this 7pserv@km6jtd Subject:gtjbios.com
      and you get 7plus message in return. If it is big, it is
      automatically broken into parts.

       

      Last edit: Dave van der Locht 2025-04-09
      • Dave van der Locht

        Ah, it's regarding the M_FILTER example in the 7plus 'addon' in the files section.

        I'll repackage that one with your patch applied. Sourceforge is stripping stuff (no code block used?) but that's fine. I see the issue and your suggestion to fix it seems to be good too.

         
  • Dave van der Locht

    • labels: --> 7plus m_filter example addon
    • status: open --> accepted
    • assigned_to: Dave van der Locht
     
  • Dave van der Locht

    • labels: 7plus m_filter example addon --> 7plus
     
  • Dave van der Locht

    • labels: 7plus --> 7plus, m_filter
     
    • Chris

      Chris - 2025-04-09

      I can send the patch to you directly. It did fix the issue.

      Thanks,
      Chris Maness
      -Sent from my iPhone

      On Wed, Apr 9, 2025 at 2:19 AM Dave van der Locht davevdl@users.sourceforge.net wrote:

      • labels: 7plus --> 7plus, m_filter

      [tickets:#88] https://sourceforge.net/p/linfbb/tickets/88/ m_filter
      error to stdout kills forward session

      Status: accepted
      Milestone: 7.0.12
      Labels: 7plus m_filter
      Created: Tue Apr 08, 2025 12:15 PM UTC by Chris
      Last Updated: Wed Apr 09, 2025 09:18 AM UTC
      Owner: Dave van der Locht

      I get the following error that gets injected into a forwarding session:

      m_filter : file '/usr/local/var/ax25/fbb/mail/mail4/m_009604.mes'
      openedm_filter : message file
      '/usr/local/var/ax25/fbb/mail/mail4/m_009604.mes' appended to
      'm_filter.fwd'FF

      and since this is not part of the FBB forwarding command set, the session
      terminates before forwarding is finished.

      -Thanks
      Chris KQ6UP


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/linfbb/tickets/88/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Tickets: #88


Log in to post a comment.