On 17/12/2022 10:00, martin f krafft wrote:
Regarding the following, written by "Jeff" on 2022-12-16 at 16:44 Uhr +0000:I think that this is this bug in unpaper: https://github.com/unpaper/unpaper/issues/113 <https://github.com/unpaper/unpaper/issues/113>Okay, but gscan2pdf makes it an error, and I do wonder if it's possible to hide them…
Yup. This patch fixes things:diff --git a/lib/Gscan2pdf/Dialog/MultipleMessage.pm b/lib/Gscan2pdf/Dialog/MultipleMessage.pm
index f74779b1..862c7c50 100644 --- a/lib/Gscan2pdf/Dialog/MultipleMessage.pm +++ b/lib/Gscan2pdf/Dialog/MultipleMessage.pm @@ -23,6 +23,10 @@ my $INTREGEX = qr{^(.*) # start of message \b[[:digit:]]+\b # integer (.*)$ # rest of message }xsm; +my $TEMPFILEREGEX = qr{^(.*) # start of message + gscan2pdf[-][[:alnum:]]+/[[:alnum:]]+ # temp filename + (.*)$ # rest of message + }xsm; sub INIT_INSTANCE { my $self = shift; @@ -266,6 +270,9 @@ sub munge_message { sub filter_message { my ($message) = @_; $message =~ s/\s+$//xsm; + while ( $message =~ /$TEMPFILEREGEX/xsmo ) { + $message =~ s/$TEMPFILEREGEX/$1%%t$2/xsmo; + } while ( $message =~ /$HEXREGEX/xsmo ) { $message =~ s/$HEXREGEX/$1%%x$2/xsmo; } It will be in the next release.
OpenPGP_signature
Description: OpenPGP digital signature