Sorry thi is coming sd an attachment.
I sent this with the wrong from address
so it didn't reach the list the first time.

--
Andrew C. Aitchison                      Kendal, UK
                   and...@aitchison.me.uk
--- Begin Message ---
On Mon, 13 Feb 2023, newcomer01 via clamav-users wrote:

this is hilarious, why this won't work?
                nice -n -20 clamscan \
--include-dir="^/home/$SUDO_USER/.thunderbird/Marc/Mail/" \
                --recursive="yes" \
                --quiet \
                --infected \
                --alert-broken-media="no" \
                --database="/var/lib/clamav" \
                --log="/var/log/clamav/clamscan.log"
                #--move="/etc/clamav/virusevent.d/Mail"
this should scan only the included path recursive

--include-dir is a pattern which directories must match, but
it doesn't mean ""search these". You still need to give it a starting
point for the recursive search, eg

   clamscan ~/.thunderbird --recursive \e
        --include-dir="^/home/$SUDO_USER/.thunderbird/Marc/Mail/" \
                ...

I think --include and --include-dir are intended to include items that would otherwise be excluded by exclude or --exclude-dir.

But when i do this:
                nice -n -20 clamscan \
                "/home/$SUDO_USER/.thunderbird/Marc/Mail" \
                --recursive="yes" \
                --quiet \
                --infected \
                --alert-broken-media="no" \
                --database="/var/lib/clamav" \
                --log="/var/log/clamav/clamscan.log"
                #--move="/etc/clamav/virusevent.d/Mail"
it worked well.
Can someone explain what's the reason for this?
Oh and the var SUDO_USER is the whoami

regards,
Marc

_______________________________________________

Manage your clamav-users mailing list subscription / unsubscribe:
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/Cisco-Talos/clamav-documentation

https://docs.clamav.net/#mailing-lists-and-chat


--
Andrew C. Aitchison                      Kendal, UK
                   and...@aitchison.me.uk

--- End Message ---
_______________________________________________

Manage your clamav-users mailing list subscription / unsubscribe:
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/Cisco-Talos/clamav-documentation

https://docs.clamav.net/#mailing-lists-and-chat

Reply via email to