/** * i18n text */ _text = {}; _text[ 'button.delete' ] = "Delete"; _text[ 'button.download' ] = "Download"; _text[ 'button.download_copy' ] = "Download copy"; _text[ 'button.preview' ] = "Preview"; _text[ 'button.properties' ] = "Properties"; _text[ 'button.release' ] = "Release"; _text[ 'button.release_again' ] = "Release again"; _text[ 'button.reply' ] = "Reply"; _text[ 'button.resend_copy' ] = "Resend copy"; _text[ 'button.show_route' ] = "Show route"; _text[ 'button.spam_analysis' ] = "Spam analysis"; _text[ 'button.view' ] = "View"; _text[ 'label.unflagged_flag' ] = "No flag"; _text[ 'label.blue_flag' ] = "Blue flag"; _text[ 'label.green_flag' ] = "Green flag"; _text[ 'label.red_flag' ] = "Red flag"; _text[ 'info.error_occurred' ] = "An error has occurred"; _text[ 'error.validation.h1' ] = "Message"; _text[ 'quarantine.delete.emails.confirm' ] = "Do you wish to delete the selected emails? Once you press OK the messages will be deleted."; _text[ 'archive.delete.emails.confirm' ] = "Do you wish to delete the selected emails? Once you press OK the messages will be deleted."; _text[ 'email_queue.list.flush.success' ] = "Your incoming queued emails is being flushed. This will be completed within 5-10 minutes depending on the size of the queue."; _text[ 'email_search.criteria_message_id' ] = "Please add a Message ID (e.g. msg.1143198249.458823.22552)"; _text[ 'email_search.criteria_value' ] = "Please specify a value"; _text[ 'email_search.criteria_dublet' ] = "A criteria of the same type has already been added"; _text[ 'error.PRIVACY_ACCESS_VIOLATION.exception' ] = "Privacy option on selected domain does not allow other than general statistics to be viewed"; _text[ 'error.STATISTIC_DOES_NOT_SUPPORT_ALL_DOMAINS.exception' ] = "The selected report type does not support all domains"; _text[ 'validation.date_interval.fromDate_before_90_days_back_email_statistics' ] = "The start date is more than 90 days ago. Please try again."; _text[ 'validation.date_interval.fromDate_before_minDate' ] = "The from date is further in the past than allowed. Please try again "; _text[ 'validation.date_interval.toDate_before_minDate' ] = "The to date is further in the past than allowed. Please try again"; _text[ 'validation.date_interval.fromDate_after_maxDate' ] = "The from date is in the future. Please try again"; _text[ 'validation.date_interval.toDate_after_maxDate' ] = "The to date is in the future. Please try again"; _text[ 'validation.date_interval.toDate_before_fromDate' ] = "The to date is before the from date. Please try again"; _text[ 'validation.date_interval.fromDate_not_valid' ] = "The entered from date is not valid"; _text[ 'validation.date_interval.toDate_not_valid' ] = "The entered to date is not valid"; _text[ 'validation.date_interval.all_domain_date_interval_week' ] = "You cannot search in intervals larger than a week when searching for all domains"; _text[ 'validation.date_interval.subject_date_interval_week' ] = "You cannot search in intervals larger than a week when searching for a subject"; /** * Regular expressions */ _regex = {}; _regex[ 'IPv4' ] = /^([1-9]?\d|1\d\d|2[0-4]\d|25[0-4])\.([1-9]?\d|1\d\d|2[0-4]\d|25[0-5])\.([1-9]?\d|1\d\d|2[0-4]\d|25[0-5])\.([1-9]\d?|1\d\d|2[0-4]\d|25[0-4])$/; function isIPv4(s) { return Common.validators.isMatching(_regex[ 'IPv4' ],s); } _regex[ 'IPv4CRange' ] = /^([1-9]\d?|1\d\d|2[0-4]\d|25[0-4])\.([1-9]?\d|1\d\d|2[0-4]\d|25[0-5])\.([1-9]?\d|1\d\d|2[0-4]\d|25[0-5])\.$/; function isIPv4CRange(s) { return Common.validators.isMatching(_regex[ 'IPv4CRange' ],s); } _regex[ 'LoopbackIPv4' ] = /^127\./; function isLoopbackIPv4(s) { return Common.validators.isMatching(_regex[ 'LoopbackIPv4' ],s); } _regex[ 'DHCPFallbackRange' ] = /^169\.254\./; function isDHCPFallbackRange(s) { return Common.validators.isMatching(_regex[ 'DHCPFallbackRange' ],s); } _regex[ 'SMSNumber' ] = /^\+\d{4,49}$/; function isSMSNumber(s) { return Common.validators.isMatching(_regex[ 'SMSNumber' ],s); } _regex[ 'PureWildcards' ] = /^\**(\P{M}\p{M}*)?\**$/; function isPureWildcards(s) { return Common.validators.isMatching(_regex[ 'PureWildcards' ],s); } /** * Flag Enum */ Flag = { ALL : 4 , UNFLAGGED : 0 , RED : 2 , GREEN : 1 , BLUE : 3 }; /** * SearchField Enum */ SearchField = { MESSAGE_ID : 0 , RECIPIENT : 1 , RECIPIENTS : 2 , SENDER : 3 , ACTION : 4 , VIRUS_NAME : 5 , USERNAME : 6 , EMAIL_ADDRESS : 7 , GROUP_NAME : 8 , SUBJECT : 9 };