Depending on your use case you could also simply change the whitelist for your local mailcow installation.
You can add a
data/web/inc/vars.local.inc.php file, copy the
$IMAPSYNC_OPTIONS part from
vars.inc.php and add the parameters you need.
I guess the original whitelist is there for a reason, I remember reading about possible security issues with some of the imapsync parameters.