rar archives

korsar182 at gmail.com korsar182 at gmail.com
Thu Aug 8 09:44:46 CEST 2019


Patrick Ben Koetter <p at sys4.de> писал(а) в своём письме Wed, 07 Aug 2019  
23:36:17 +0300:

> * korsar182 at gmail.com <korsar182 at gmail.com>:
>> Patrick Ben Koetter <p at sys4.de> писал(а) в своём письме Wed, 07 Aug 2019
>> 21:56:09 +0300:
>>
>> > * korsar182 at gmail.com <korsar182 at gmail.com>:
>> > > Patrick Ben Koetter <p at sys4.de> писал(а) в своём письме Wed, 07 Aug  
>> 2019
>> > > 20:55:57 +0300:
>> > >
>> > > > * korsar182 at gmail.com <korsar182 at gmail.com>:
>> > > > > I'm using latest amavis 2.11.0 on Debian 10 and it doesn't  
>> unpack
>> > > > > any rar.
>> > > > > With unrar-nonfree 5.6.6-1 mail passes unchecked, with 7z it  
>> passes
>> > > > > clean.
>> > > > > What I do wrong?
>> > > >
>> > > > Which RAR version is the archive?
>> > > >
>> > >
>> > > rar 4
>> >
>> > The rar unpackers on Debian *should* be able to unpack RAR version 4
>> > archives.
>> > Did you try to unpack it manually – outside of amavis?
>> >
>> > p at rick
>> >
>> > P.S.
>> > Please do not reply offlist. The support is a community effort and it
>> > should
>> > stay onlist so everbody can add knowledge or receive some. Thanks.
>> >
>> Sorry for offlist reply - misclick.
>
> :-)
>
>> Unpacking manually working fine, but amavis marks it like Passed  
>> UNCHECKED,
>> no idea why. unrar-nonfree version 5.6.6-2.
>>
>> If I'll try unar or 7z I should modify amavis source code to fix wrong
>> options -idcdp?
>
> Copy the @decoders section from the amavisd-new binary and modify the  
> command
> that should be used to unpack rar.
>
> p at rick
>
>
>
So I've looked into amavis debug mode to see how unrar deals with rar5  
archive. Seems everything is fine, no idea what's wrong with amavis...
There is a log:

(04523-01) result line from file(1): p003: RAR archive data, v5\n
(04523-01) lookup_re("RAR archive data, v5") matches key "(?^i:^RAR  
archive\\b)", result="rar"
(04523-01) lookup [map_full_type_to_short_type] => true,  "RAR archive  
data, v5" matches, result="rar", matching_key="(?^i:^RAR archive\\b)"
(04523-01) File-type of p003: RAR archive data, v5; (rar)
(04523-01) decompose_part: p001 - atomic
(04523-01) decompose_part: p002 - atomic
(04523-01) Expanding RAR archive p003
(04523-01) get_deadline do_unrar_pre - deadline in 479.9 s, set to 288.000  
s
(04523-01) prolong_timer do_unrar_pre: timer 288, was 288, deadline in  
479.9 s
(04523-01) run_command: [4526] /usr/bin/unrar v -c- -p- -idcdp --  
/var/lib/amavis/tmp/amavis-20190808T091537-04523-pjIqEvPH/parts/p003  
</dev/null 2>&1
(04523-01) open_on_specific_fd: target fd0 closing, to become < /dev/null
(04523-01) open_on_specific_fd: target fd1 closing, to become (65) &=15
(04523-01) open_on_specific_fd: target fd1 dup2 from fd15 (65) &=15
(04523-01) open_on_specific_fd: source fd15 closed
(04523-01) open_on_specific_fd: target fd2 closing, to become (65) &1
(04523-01) open_on_specific_fd: target fd2 dup2 from fd1 (65) &1
(04523-01) do_unrar: member: "script.js\n", size: 7
(04523-01) Charging 7 bytes to remaining quota 1673344 (out of 1675000,  
(0%)) - by do_unrar-pre
(04523-01) run_command: [4527] /usr/bin/unrar x -inul -ver -o- -kb -c- -p-  
-idcdp --  
/var/lib/amavis/tmp/amavis-20190808T091537-04523-pjIqEvPH/parts/p003  
/var/lib/amavis/tmp/amavi
s-20190808T091537-04523-pjIqEvPH/parts/rar/ </dev/null 2>&1
(04523-01) open_on_specific_fd: target fd0 closing, to become < /dev/null
(04523-01) open_on_specific_fd: target fd1 closing, to become (65) &=15
(04523-01) open_on_specific_fd: target fd1 dup2 from fd15 (65) &=15
(04523-01) open_on_specific_fd: source fd15 closed
(04523-01) open_on_specific_fd: target fd2 closing, to become (65) &1
(04523-01) open_on_specific_fd: target fd2 dup2 from fd1 (65) &1
(04523-01) collect_results from [4527] (/usr/bin/unrar), 0 bytes, (limit  
16384)
(04523-01) (!!)collect_results from [4527] (/usr/bin/unrar): exit 10
(04523-01) flatten_and_tidy_dir: processing directory  
"/var/lib/amavis/tmp/amavis-20190808T091537-04523-pjIqEvPH/parts/rar"
(04523-01) Charging 0 bytes to remaining quota 1673344 (out of 1675000,  
(0%)) - by do_unrar
(04523-01) get_deadline do_unrar - deadline in 479.9 s, set to 288.000 s
(04523-01) prolong_timer do_unrar: timer 288, was 288, deadline in 479.9 s
(04523-01) lookup_re("RAR archive data, v5"), no matches
(04523-01) lookup [keep_decoded_original] => undef, "RAR archive data, v5"  
does not match
(04523-01) decompose_part: deleting  
/var/lib/amavis/tmp/amavis-20190808T091537-04523-pjIqEvPH/parts/p003
(04523-01) decompose_part: p003 - archive, unpacked


More information about the amavis-users mailing list