Zeile |
Code |
|---|---|
01 |
# Begin: Custom commands for incoming e-mails BEFORE decryption |
02 |
log(1,'Begin: Custom commands for incoming e-mails BEFORE decryption'); |
|
|
03 |
# Begin: Special processing for EDIFACT |
04 |
log(1,'Begin: Special processing for EDIFACT'); |
05 |
if (rmatch('$edifact_mailbox_regex')) { |
|
if (!compareattr('SENDER','equal','<>')) { |
06 |
setvar('direction','inbound'); |
07 |
$EDIFACT_address_check; |
08 |
$EDIFACT_file_type_check; |
09 |
$EDIFACT_subject_check; |
10 |
$EDIFACT_encryption_check; |
11 |
$EDIFACT_signature_check; |
12 |
if(flag('drop',0)) { |
13 |
setvar('result','F A I L E D'); |
14 |
notify('$clearing_mailbox','EDIFACT_report_attachmail'); |
15 |
drop('553','Requested action not taken: $reason'); |
16 |
} else { |
17 |
setvar('signature_result','OK'); |
18 |
setvar('encryption_result','OK'); |
19 |
setvar('result',' O K '); |
20 |
notify('$clearing_mailbox','EDIFACT_report'); |
21 |
deliver(); |
22 |
} |
23 |
} |
|
} |
24 |
log(1,'End: Special processing for EDIFACT'); |
25 |
# End: Special processing for EDIFACT |
26 |
|
27 |
log(1,'End: Custom commands for incoming e-mails BEFORE decryption'); |
28 |
# End: Custom commands for incoming e-mails BEFORE decryption |