How do I view the current email forwarding configuration programmatically?
To view the current email forwarding configuration, you need to access the Zimbra web home page with an authenticated `ZM_AUTH_TOKEN` cookie and parse the response for the string `zimbraPrefMailForwardingAddress`. If present, you can extract the forwarding address using a regular expression. This method is covered in the Zimbra SOAP API Development Guide 5 - Email Forwarding and builds on previous techniques from Zimbra SOAP API Development Guide.
email forwarding configurationZimbra SOAP APIregular expressionZM_AUTH_TOKEN