Changeset View
Changeset View
Standalone View
Standalone View
pykolab/plugins/sievemgmt/__init__.py
Context not available. | |||||
# You should have received a copy of the GNU General Public License | # You should have received a copy of the GNU General Public License | ||||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||||
# | # | ||||
from six import string_types | |||||
import pykolab | import pykolab | ||||
Context not available. | |||||
if not forward_active == False: | if not forward_active == False: | ||||
forward_address_attr = conf.get('sieve', 'forward_address_attr') | forward_address_attr = conf.get('sieve', 'forward_address_attr') | ||||
if forward_address_attr in user: | if forward_address_attr in user: | ||||
if isinstance(user[forward_address_attr], basestring): | if isinstance(user[forward_address_attr], string_types): | ||||
forward_addresses = [ user[forward_address_attr] ] | forward_addresses = [ user[forward_address_attr] ] | ||||
elif isinstance(user[forward_address_attr], str): | elif isinstance(user[forward_address_attr], str): | ||||
forward_addresses = [ user[forward_address_attr] ] | forward_addresses = [ user[forward_address_attr] ] | ||||
Context not available. |