| Class | ActiveLdap::Schema::Syntaxes::OtherMailbox |
| In: |
lib/active_ldap/schema/syntaxes.rb
|
| Parent: | Base |
# File lib/active_ldap/schema/syntaxes.rb, line 320
320: def validate_normalized_value(value, original_value)
321: type, mailbox = value.split('$', 2)
322:
323: if type.empty?
324: return _("%s has no mailbox type") % original_value.inspect
325: end
326:
327: if /(#{UNPRINTABLE_CHARACTER})/i =~ type
328: format = _("%s has unprintable character in mailbox type: '%s'")
329: return format % [original_value.inspect, $1]
330: end
331:
332: if mailbox.blank?
333: return _("%s has no mailbox") % original_value.inspect
334: end
335:
336: nil
337: end