| Class | ActiveLdap::Schema::Syntaxes::OtherMailbox |
| In: |
lib/active_ldap/schema/syntaxes.rb
|
| Parent: | Base |
# File lib/active_ldap/schema/syntaxes.rb, line 337
337: def validate_normalized_value(value, original_value)
338: type, mailbox = value.split('$', 2)
339:
340: if type.empty?
341: return _("%s has no mailbox type") % original_value.inspect
342: end
343:
344: if /(#{UNPRINTABLE_CHARACTER})/i =~ type
345: format = _("%s has unprintable character in mailbox type: '%s'")
346: return format % [original_value.inspect, $1]
347: end
348:
349: if mailbox.blank?
350: return _("%s has no mailbox") % original_value.inspect
351: end
352:
353: nil
354: end