X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Fclass_mail-methods-sendmail-cyrus.inc;h=ede415d6259dbdcf40f9a3b366788957fe132780;hb=481c04de98d06047f3a06731c0f9acfc09ba8cb7;hp=f8cb7c3de3b8fe6abedcf29285d6e7cb68f2037f;hpb=c2c6a6e54355a1b67c25bb4d761d847513810d02;p=gosa.git diff --git a/include/class_mail-methods-sendmail-cyrus.inc b/include/class_mail-methods-sendmail-cyrus.inc index f8cb7c3de..ede415d62 100644 --- a/include/class_mail-methods-sendmail-cyrus.inc +++ b/include/class_mail-methods-sendmail-cyrus.inc @@ -24,6 +24,18 @@ class mailMethodSendmailCyrus extends mailMethodCyrus function mailMethodSendmailCyrus($config) { + /* Check if the mail account identification attribute + is overridden in the configuration file + */ + if(isset($config->current['MAIL_ATTRIB']) && !empty($config->current['MAIL_ATTRIB'])){ + $new_uattrib= strtolower($config->current['MAIL_ATTRIB']); + if(in_array($new_uattrib,array("mail","uid"))){ + $this->uattrib = $new_uattrib; + }else{ + trigger_error(sprintf("Unsupported MAIL_ATTRIB in gosa configuration specified, use 'mail' or 'uid', instead of '%s'.",$new_uattrib)); + } + } + $this->config= $config->data['SERVERS']['IMAP']; }