TesseractOcr Settings

TOCR enable - tocr_enable
Whether to use TesseractOcr. TesseractOcr parses text from images within the body of an email and passes any content found back to the parent SpamAssassin process. This allows for the content to be tested against standard SpamAssasin les.
Default: 1

TOCR message timeout - tocr_msg_timeout
Timeout duration for an entire message.
Default: 15

TOCR image timeout - tocr_img_timeout
Timeout duration for a single image. Used once when converting the image and once when scanning the image.
Default: 5

TOCR skip .jpg - tocr_skip_jpg
Disable scanning of .jpg image types.
Default: 0

TOCR skip .png - tocr_skip_png
Disable scanning of .png image types.
Default: 0

TOCR skip .gif - tocr_skip_gif
Disable scanning of .gif image types.
Default: 0

TOCR skip .bmp - tocr_skip_bmp
Disable scanning of .bmp image types.
Default: 0

TOCR skip .tif - tocr_skip_tif
Disable scanning of .tif image types.
Default: 0

TOCR skip .pdf - tocr_skip_pdf
Disable scanning of .pdf image types.
Default: 0

TOCR min size - tocr_min_size
Minimum image size (bytes). Small images are unlikely to contain OCR-friendly text
Default: 1024

TOCR max size - tocr_max_size
Maximum image size (bytes). Large images can take a long time to OCR and are also somewhat less likely to contain text.
Default: 4096000

TOCR min width - tocr_min_x
Minimum width of an image (pixels). Narrow images are unlikely to contain OCR-friendly text.
Default: 16

TOCR min height - tocr_min_y
Minimum height of an image (pixels). Narrow images are unlikely to contain OCR-friendly text.
Default: 16

TOCR max width - tocr_max_x
Maximum image width (pixels). Large images can take a long time to OCR and are also somewhat less likely to contain text.
Default: 2048

TOCR max height - tocr_max_y
Maximum image height (pixels). Large images can take a long time to OCR and are also somewhat less likely to contain text.
Default: 2048

TOCR min area - tocr_min_area
Minimum image area (pixels). Small images are unlikely to contain OCR-friendly text.
Default: 512

TOCR max area - tocr_max_area
Maximum image area (pixels). Large images can take a long time to OCR and are also somewhat less likely to contain text.
Default: 2073600

Related Pages