Zeile |
Code |
|---|---|
01 |
# Begin: Custom commands for outgoing e-mails BEFORE encryption |
02 |
log(1,'Begin: Custom commands for outgoing e-mails BEFORE encryption'); |
|
|
03 |
# Begin: Special processing for EDIFACT |
04 |
log(1,'Begin: Special processing for EDIFACT'); |
05 |
if (compare('from','match','$edifact_mailbox_regex')) { |
06 |
setvar('direction','outbound'); |
07 |
$EDIFACT_address_check; |
08 |
$EDIFACT_file_type_check; |
09 |
$EDIFACT_subject_check; |
10 |
$EDIFACT_sign; |
11 |
$EDIFACT_signature_subcheck; |
12 |
$EDIFACT_encrypt; |
13 |
$EDIFACT_encryption_subcheck; |
14 |
if(flag('drop',0)) { |
15 |
setvar('result','F A I L E D'); |
16 |
notify('$clearing_mailbox','EDIFACT_report_attachmail'); |
17 |
bounce('EDIFACT_report_attachmail'); |
18 |
} else { |
19 |
setvar('signature_result','OK'); |
20 |
setvar('encryption_result','OK'); |
21 |
setvar('result',' O K '); |
22 |
notify('$clearing_mailbox','EDIFACT_report'); |
23 |
deliver(); |
|
} |
|
} |
24 |
log(1,'End: Special processing for EDIFACT'); |
25 |
# End: Special processing for EDIFACT |
26 |
|
27 |
log(1,'End: Custom commands for outgoing e-mails BEFORE encryption'); |
28 |
# End: Custom commands for outgoing e-mails BEFORE encryption |