Skip to content

Simscan does not scan entire directory #1

@cystein

Description

@cystein

Simscan does not scan the entire directory, it only scans the file at /var/qmail/simscan/1748940909.842816.21124/spamc.msg.1748940909.842816.21124

simscan: clamdscan: /var/qmail/simscan/1748940909.842816.21124/spamc.msg.1748940909.842816.21124: OK

Clamdscan cannot always scan this file successfully. I did some research and it turns out that older versions of simscan scan the workdir directory. I made a small change to the simscan.c code to make it work this way.

The line I changed in the simscan.c;

107 char *viri_args[] = { "clamdscan", "--stdout", message_name, NULL };

I corrected this line as follows;

107 char *viri_args[] = { "clamdscan", "--stdout", workdir, NULL };

And now the entire directory is scanned;

simscan: clamdscan: /var/qmail/simscan/1748940909.842816.21124: OK

I hope you will make the necessary corrections to the code. Best regards..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions