mhonarc-dev

Re: [bug #20142] strip backslash in rfc822 From: field

2007-10-09 22:16:05
Here's an unmangled copy of the patch. I think this works,
but the \" part acts a little weird during testing.  (E.g. if I
run -editidx I can fix an index page, but I can't seem to break it
again if I change the code back)

-Jeff

# diff -u /var/tmp/mhutil.pl /usr/share/mhonarc/mhutil.pl
--- /var/tmp/mhutil.pl  2007-10-09 20:30:36.000000000 -0700
+++ /usr/share/mhonarc/mhutil.pl        2007-10-09 22:05:59.000000000 -0700
@@ -177,6 +177,7 @@
        next  if $skip;
        if ($tok =~ /^"/) {   # Quoted string
            $tok =~ s/^"//;  $tok =~ s/"$//;
+            $tok =~ s/\\(.)/$1/g;  $tok =~ s/\\\"/\"/g;
            return $tok;
        }
        if ($tok =~ /^\(/) {  # Comment

---------------------------------------------------------------------
To sign-off this list, send email to majordomo(_at_)mhonarc(_dot_)org with the
message text UNSUBSCRIBE MHONARC-DEV

<Prev in Thread] Current Thread [Next in Thread>