Class | ActiveLdap::Schema::Syntaxes::OtherMailbox |
In: |
lib/active_ldap/schema/syntaxes.rb
|
Parent: | Base |
# File lib/active_ldap/schema/syntaxes.rb, line 349 349: def validate_normalized_value(value, original_value) 350: type, mailbox = value.split('$', 2) 351: 352: if type.empty? 353: return _("%s has no mailbox type") % original_value.inspect 354: end 355: 356: if /(#{UNPRINTABLE_CHARACTER})/i =~ type 357: format = _("%s has unprintable character in mailbox type: '%s'") 358: return format % [original_value.inspect, $1] 359: end 360: 361: if mailbox.blank? 362: return _("%s has no mailbox") % original_value.inspect 363: end 364: 365: nil 366: end