- if (Attr == "mailSpamOptOut" and NewValue != "true" and NewValue != "false"):
- if (NewValue == "1"): NewValue = "true"
- else:
- if (NewValue == "0"): NewValue = "false"
+ if (Attr == "mailSpamOptOut" or Attr == "mailGreylisting" or Attr == "mailCallout"):
+ if (NewValue.lower() != "true" and NewValue.lower() != "false"):
+ if (NewValue == "1"): NewValue = "true"