YaST2 Developers Documentation: Configuration of mail

Configuration of mail

include/mail/widgets.ycp
Widget definitions.

This module has an unstable interface.

Imports

  • Address
  • Hostname
  • Label
  • Ldap
  • Mail
  • MailAliases
  • Popup
  • Users
  • UsersCache

Structures

Local Variables

Local Functions

local check_mail_local_part (string address) -> boolean

See RFC 2822, 3.4 But for now, nonempty, no-spaces.

Parameters:
address an address to check
Return value:
valid?
local local_users -> list<string>

A list to check entered user names against. It is initialized on first use.

local GetLocalUsers () -> list<string>

Read user names from passwd. It does not get the NIS entries, that's why one combo is editable. "+" is filtered out.

Return value:
user name list
local listToString (list<string> alist) -> string

Formats a list for a TextEntry, separating the elements by ", "

Parameters:
alist a list
Return value:
a string
local stringToList (string astring) -> list<string>

Splits a TextEntry string into a list of strings separated by spaces, commas or semicolons. Empty strings are removed.

Parameters:
astring a string
Return value:
a list of strings
local finish_button -> term

A replacement for the Next button: "Finish", `next

local fetchmail_item -> map

Structure fetchmail

	$[server:, protocol:, remote_user:, local_user:, password:, ...]
local Get_foo () -> string

(sample)

Return value:
a variable to be used by a widget
local Set_foo (symbol id) -> void

(sample) Set a variable acording to widget value

Parameters:
id widget id
local Validate_foo (symbol id) -> boolean

(sample) Validate widget value

Parameters:
id widget id
Return value:
valid?
local Get_outgoing_mail_server () -> string

Return value:
a variable to be used by a widget
local Set_outgoing_mail_server (symbol id) -> void

Set a variable acording to widget value

Parameters:
id widget id
local Validate_outgoing_mail_server (symbol id) -> boolean

Validate widget value

Parameters:
id widget id
Return value:
valid?
local Get_from_header () -> string

Return value:
a variable to be used by a widget
local Set_from_header (symbol id) -> void

Set a variable acording to widget value

Parameters:
id widget id
local Get_local_domains () -> string

Return value:
a variable to be used by a widget
local Set_local_domains (symbol id) -> void

Set a variable acording to widget value

Parameters:
id widget id
local Validate_local_domains (symbol id) -> boolean

Validate widget value

Parameters:
id widget id
Return value:
valid?
local Get_listen_remote () -> boolean

Return value:
a variable to be used by a widget
local Set_listen_remote (symbol id) -> void

Set a variable acording to widget value

Parameters:
id widget id
local Get_use_amavis () -> boolean

Return value:
a variable to be used by a widget
local Set_use_amavis (symbol id) -> void

Set a variable acording to widget value

Parameters:
id widget id
local Get_fm_server () -> string

Return value:
a variable to be used by a widget
local Set_fm_server (symbol id) -> void

Set a variable acording to widget value

Parameters:
id widget id
local Validate_fm_server (symbol id) -> boolean

also used for smtp_auth server Validate widget value

Parameters:
id widget id
Return value:
valid?
local Get_fm_protocol () -> string

Return value:
a variable to be used by a widget
local Set_fm_protocol (symbol id) -> void

Set a variable acording to widget value

Parameters:
id widget id
local Get_fm_remote_user () -> string

Return value:
a variable to be used by a widget
local Set_fm_remote_user (symbol id) -> void

Set a variable acording to widget value

Parameters:
id widget id
local Validate_fm_remote_user (symbol id) -> boolean

also used for smtp_auth user Validate widget value

Parameters:
id widget id
Return value:
valid?
local Get_fm_password () -> string

Return value:
a variable to be used by a widget
local Set_fm_password (symbol id) -> void

Set a variable acording to widget value

Parameters:
id widget id
local Get_fm_local_user () -> string

Return value:
a variable to be used by a widget
local Set_fm_local_user (symbol id) -> void

Set a variable acording to widget value

Parameters:
id widget id
local Validate_fm_local_user (symbol id) -> boolean

Validate widget value

Parameters:
id widget id
Return value:
valid?
local Get_root_alias () -> string

Return value:
a variable to be used by a widget
local Set_root_alias (symbol id) -> void

Set a variable acording to widget value

Parameters:
id widget id
local Validate_root_alias (symbol id) -> boolean

Validate widget value

Parameters:
id widget id
Return value:
valid?
local Get_delivery_mode () -> symbol

Return value:
a variable to be used by a widget
local Set_delivery_mode (symbol id) -> void

Set a variable acording to widget value

Parameters:
id widget id
local Validate_delivery_mode (symbol id) -> boolean

Validate widget value

Parameters:
id widget id
Return value:
valid?
local Choices_protocol () -> list

Return value:
of choides for a combo box
local Choices_local_user () -> list

Return value:
of choides for a combo box
local Choices_delivery_mode () -> list

Return value:
of choides for a combo box
local Widgets -> map

widget_def