Re: Missing subroutine tolower

Jason Haar <[email protected]> Fri, 22 Jan 2021 09:55:59 +1300
Newsgroups gmane.mail.qmail.scanner
Message-ID <CAFChrgKXXg8uTLSwjyhFFuDbZzGxd61Bs3UQnfWwn0AXsGJhMg@mail.gmail.com>
--===============1416504584437099865==
Content-Type: multipart/alternative; boundary="0000000000002d2f8705b96f4d63"

--0000000000002d2f8705b96f4d63
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

I've seen the same segfault on Fedora - really implies reformime is broken
- probably unmaintained (at least at the distro level). Try using ripmime
instead - that is also supported (see "./configure --help")

On Fri, Jan 22, 2021 at 8:56 AM Robert A Wooldridge <
[email protected]> wrote:

> When you install maildrop 3.x it needs the pcre library.  I cannot seem t=
o
> find a Debian package for that.  Do you know of one or did you install pc=
re
> from source?
>
>
> On 1/20/21 12:06 PM, Kimmo Sinkko wrote:
>
> My message earlier this year did not make it to the mailing list, but it
> gives some clues:
>
> *L=C3=A4hett=C3=A4j=C3=A4: *Kimmo Sinkko <[email protected]>
> *Aihe: Debian 10 (buster) and qmail-scanner-queue.pl
> <http://qmail-scanner-queue.pl>*
> *P=C3=A4iv=C3=A4m=C3=A4=C3=A4r=C3=A4: *28. helmikuuta 2020 klo 13.56.52 U=
TC+2
> *Vastaanottaja: *[email protected]
>
> Hi!
>
> Not sure if there are too many users for qmail and qmail-scanner-queue
> anymore, but I am. I run into trouble when upgrading from Debian 9
> (Stretch) to Debian 10 (Buster). Just wanted to let you know that these
> were the problems and some workarounds:
>
> 1) Since perl5.26 POSIX::tolower is depricated (removed)
>
> Possible fix is to use perl lc() function instead
>
> Simply substitute 25 occurances of tolower with lc.
>
> 2) Reformime -x broken with the Buster maildrop version
> (maildrop 2.9.3-2+b1)
>
> Reformime will segfault with command line option -x without -s.
>
> Possible fix is to user latest maildrop version 3.0.0.
>
> Note that maildrop installation from the source goes into /usr/local/bin,
> so remember to update your $mimeunpacker_binary variable
>
> Cheers,
>
> Kimmo Sinkko
> [email protected]
>
> Robert A Wooldridge <[email protected]> kirjoitti 20.1.2021
> kello 18.52:
>
> On 1/20/21 1:45 AM, Kimmo Sinkko wrote:
>
> If I remember correctly, tolower() is deprecated as of Perl 5.26.0. Use
> function lc() instead:
>
> Example:
>
> $qsmsgid=3Dtolower("$V_HEADER-message-id");
> =3D>
> $qsmsgid=3Dlc("$V_HEADER-message-id");
>
> Ok, got that to work but now I'm getting a strange message when it begins
> scanning:
>
> error_condition: X-Qmail-Scanner-2.11: d_m: output spotted from
> /usr/bin/reformime  -x/var/spool/qscan/tmp/mail2161116140158812663/
> (Segmentation fault
> ) - that shouldn't happen!
>
> Any ideas on what's causing this?  I have plenty of disc space.
>
>
>
> --
> Bob Wooldridge EDM Incorporated
> _______________________________________________
> Qmail-scanner-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general
>
>
> --
> Bob Wooldridge EDM Incorporated
>
> _______________________________________________
> Qmail-scanner-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general
>


--=20
Cheers

Jason Haar
Information Security Manager, Trimble Navigation Ltd.
Phone: +1 408 481 8171
PGP Fingerprint: 7A2E 0407 C9A6 CAF6 2B9F 8422 C063 5EBB FE1D 66D1

--0000000000002d2f8705b96f4d63
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I&#39;ve seen the same segfault on Fedora - really implies=
 reformime is broken - probably unmaintained (at least at the distro level)=
. Try using ripmime instead - that is also supported (see &quot;./configure=
 --help&quot;)</div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=
=3D"gmail_attr">On Fri, Jan 22, 2021 at 8:56 AM Robert A Wooldridge &lt;<a =
href=3D"mailto:[email protected]">[email protected]</a>&g=
t; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0p=
x 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
 =20
   =20
 =20
  <div>
    <p>When you install maildrop 3.x it needs the pcre library.=C2=A0 I
      cannot seem to find a Debian package for that.=C2=A0 Do you know of o=
ne
      or did you install pcre from source?</p>
    <p><br>
    </p>
    <div>On 1/20/21 12:06 PM, Kimmo Sinkko
      wrote:<br>
    </div>
    <blockquote type=3D"cite">
     =20
      My message earlier this year did not make it to the mailing list,
      but it gives some clues:
      <div><br>
      </div>
      <div>
        <div style=3D"margin:0px;font-stretch:normal;line-height:normal;fon=
t-family:&quot;Helvetica Neue&quot;;color:rgb(69,60,204)"><span style=3D"fo=
nt-kerning:none"><b>L=C3=A4hett=C3=A4j=C3=A4: </b>Kimmo Sinkko &lt;<a href=
=3D"mailto:[email protected]" target=3D"_blank">[email protected]</a>&g=
t;</span></div>
        <div style=3D"margin:0px;font-stretch:normal;line-height:normal;fon=
t-family:&quot;Helvetica Neue&quot;;color:rgb(69,60,204)"><span style=3D"fo=
nt-kerning:none"><b>Aihe: Debian 10 (buster) and
              <a href=3D"http://qmail-scanner-queue.pl" target=3D"_blank">q=
mail-scanner-queue.pl</a></b></span></div>
        <div style=3D"margin:0px;font-stretch:normal;line-height:normal;fon=
t-family:&quot;Helvetica Neue&quot;;color:rgb(69,60,204)"><span style=3D"fo=
nt-kerning:none"><b>P=C3=A4iv=C3=A4m=C3=A4=C3=A4r=C3=A4: </b>28. helmikuuta=
 2020
            klo 13.56.52 UTC+2</span></div>
        <div style=3D"margin:0px;font-stretch:normal;line-height:normal;fon=
t-family:&quot;Helvetica Neue&quot;;color:rgb(69,60,204)"><span style=3D"fo=
nt-kerning:none"><b>Vastaanottaja: </b><a href=3D"mailto:qmail-scanner-gene=
[email protected]" target=3D"_blank">[email protected]=
urceforge.net</a></span></div>
      </div>
      <div><span style=3D"font-kerning:none"><br>
        </span></div>
      <div>Hi!
        <div><br>
        </div>
        <div>Not sure if there are too many users for qmail and
          qmail-scanner-queue anymore, but I am. I run into trouble when
          upgrading from Debian 9 (Stretch) to Debian 10 (Buster). Just
          wanted to let you know that these were the problems and some
          workarounds:</div>
        <div><br>
        </div>
        <div>1) Since perl5.26 POSIX::tolower is depricated
          (removed)</div>
        <div><br>
        </div>
        <div>Possible fix is to use perl lc() function instead</div>
        <div><br>
        </div>
        <div>Simply substitute 25 occurances of tolower with
          lc.</div>
        <div><br>
        </div>
        <div>2) Reformime -x broken with the Buster maildrop
          version (maildrop=C2=A02.9.3-2+b1)</div>
        <div><br>
        </div>
        <div>Reformime will segfault with command line option
          -x without -s.</div>
        <div><br>
        </div>
        <div>Possible fix is to user latest maildrop version
          3.0.0.</div>
        <div><br>
        </div>
        <div>Note that maildrop installation from the source
          goes into /usr/local/bin, so remember to update
          your=C2=A0$mimeunpacker_binary variable</div>
        <div><br>
        </div>
        <div>Cheers,</div>
        <div><br>
        </div>
        <div>Kimmo Sinkko</div>
        <div><a href=3D"mailto:[email protected]" target=3D"_blank">kimmo@si=
nkko.org</a></div>
        <div><br>
          <blockquote type=3D"cite">
            <div>Robert A Wooldridge &lt;<a href=3D"mailto:bob.wooldridge@e=
dm-inc.com" target=3D"_blank">[email protected]</a>&gt;
              kirjoitti 20.1.2021 kello 18.52:</div>
            <br>
            <div>
             =20
              <div>
                <div>On 1/20/21 1:45 AM, Kimmo
                  Sinkko wrote:<br>
                </div>
                <blockquote type=3D"cite">
                 =20
                  If I remember correctly, tolower() is deprecated as of
                  Perl 5.26.0. Use function lc() instead:
                  <div><br>
                  </div>
                  <div>Example:</div>
                  <div><br>
                  </div>
                  <div>
                    <div style=3D"margin:0px;font-stretch:normal;font-size:=
11px;line-height:normal;font-family:Menlo"><span style=3D"font-variant-liga=
tures:no-common-ligatures">$qsmsgid=3Dtolower(&quot;$V_HEADER-message-id&qu=
ot;);</span></div>
                    <div style=3D"margin:0px;font-stretch:normal;font-size:=
11px;line-height:normal;font-family:Menlo"><span style=3D"font-variant-liga=
tures:no-common-ligatures">=3D&gt;</span></div>
                    <div style=3D"margin:0px;font-stretch:normal;font-size:=
11px;line-height:normal;font-family:Menlo"><span style=3D"font-variant-liga=
tures:no-common-ligatures">$qsmsgid=3Dlc(&quot;$V_HEADER-message-id&quot;);=
</span></div>
                  </div>
                </blockquote>
                <p>Ok, got that to work but now I&#39;m getting a
                  strange message when it begins scanning:</p>
                <p>error_condition: X-Qmail-Scanner-2.11: d_m:
                  output spotted from /usr/bin/reformime=C2=A0
                  -x/var/spool/qscan/tmp/mail2161116140158812663/
                  (Segmentation fault<br>
                  ) - that shouldn&#39;t happen!<br>
                </p>
                <p>Any ideas on what&#39;s causing this?=C2=A0 I have
                  plenty of disc space.</p>
                <p><br>
                </p>
                <p><br>
                </p>
                --
                <div>Bob Wooldridge EDM
                  Incorporated </div>
              </div>
              _______________________________________________<br>
              Qmail-scanner-general mailing list<br>
              <a href=3D"mailto:[email protected]=
" target=3D"_blank">[email protected]</a><br>
<a href=3D"https://lists.sourceforge.net/lists/listinfo/qmail-scanner-gener=
al" target=3D"_blank">https://lists.sourceforge.net/lists/listinfo/qmail-sc=
anner-general</a><br>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <div>-- <br>
        Bob Wooldridge
        EDM Incorporated
      </div>
    </blockquote>
  </div>

_______________________________________________<br>
Qmail-scanner-general mailing list<br>
<a href=3D"mailto:[email protected]" target=3D"_b=
lank">[email protected]</a><br>
<a href=3D"https://lists.sourceforge.net/lists/listinfo/qmail-scanner-gener=
al" rel=3D"noreferrer" target=3D"_blank">https://lists.sourceforge.net/list=
s/listinfo/qmail-scanner-general</a><br>
</blockquote></div><br clear=3D"all"><div><br></div>-- <br><div dir=3D"ltr"=
 class=3D"gmail_signature"><div dir=3D"ltr"><div>Cheers</div><div><br></div=
><div>Jason Haar</div><div>Information Security Manager, Trimble Navigation=
 Ltd.</div><div>Phone: +1 408 481 8171</div><div>PGP Fingerprint: 7A2E 0407=
 C9A6 CAF6 2B9F 8422 C063 5EBB FE1D 66D1</div></div></div>

--0000000000002d2f8705b96f4d63--


--===============1416504584437099865==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============1416504584437099865==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Qmail-scanner-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general

--===============1416504584437099865==--