Chapter 15 Unified Threat Management for FortiOS 5.0 : AntiVirus : Enable antivirus scanning : Configuring archive scan depth
  
Configuring archive scan depth
The antivirus scanner will open archives and scan the files inside. Archives within other archives, or nested archives, are also scanned to a default depth of twelve nestings. You can adjust the number of nested archives to which the FortiGate unit will scan with the uncompnestlimit CLI command. Further, the limit is configured separately for each traffic type.
For example, this CLI command sets the archive scan depth for SMTP traffic to 5. That is, archives within archives will be scanned five levels deep.
config antivirus service smtp
set uncompnestlimit 5
end
You can set the nesting limit from 2 to 100.