exists <header-names: test-list>
The "exists" test is true if the headers listed in the header-names argument exist within the message. All of the headers must exist or the test is false.
The following example throws out mail that doesn't have a From header and a Date header.
if not exists ["From","Date"] {
discard;
}
Core : Requires no import statement
RFC3028