EDataServer.SourceMailIdentity¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/c/en |
Sender’s email address |
||
r/w/c/en |
Sender’s email address aliases |
||
r/w/c/en |
Sender’s name |
||
r/w/c/en |
Sender’s organization |
||
r/w/c/en |
Sender’s reply-to address |
||
r/w/c/en |
|
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class EDataServer.SourceMailIdentity(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Contains only private data that should be read and manipulated using the functions below.
New in version 3.6.
- dup_address()¶
- Returns:
a newly-allocated copy of
EDataServer.SourceMailIdentity
:address
- Return type:
Thread-safe variation of
EDataServer.SourceMailIdentity.get_address
(). Use this function when accessing self from multiple threads.The returned string should be freed with
GLib.free
() when no longer needed.New in version 3.6.
- dup_aliases()¶
- Returns:
a newly-allocated copy of
EDataServer.SourceMailIdentity
:aliases
- Return type:
Thread-safe variation of
EDataServer.SourceMailIdentity.get_aliases
(). Use this function when accessing self from multiple threads.The returned string should be freed with
GLib.free
() when no longer needed.New in version 3.24.
- dup_name()¶
- Returns:
a newly-allocated copy of
EDataServer.SourceMailIdentity
:name
- Return type:
Thread-safe variation of
EDataServer.SourceMailIdentity.get_name
(). Use this function when accessing self from multiple threads.The returned string should be freed with
GLib.free
() when no longer needed.New in version 3.6.
- dup_organization()¶
- Returns:
a newly-allocated copy of
EDataServer.SourceMailIdentity
:organization
- Return type:
Thread-safe variation of
EDataServer.SourceMailIdentity.dup_organization
(). Use this function when accessing self from multiple threads.The returned string should be freed with
GLib.free
() when no longer needed.New in version 3.6.
- dup_reply_to()¶
- Returns:
a newly-allocated copy of
EDataServer.SourceMailIdentity
:reply-to
- Return type:
Thread-safe variation of
EDataServer.SourceMailIdentity.get_reply_to
(). Use this function when accessing self from multiple threads.The returned string should be freed with
GLib.free
() when no longer needed.New in version 3.6.
- dup_signature_uid()¶
- Returns:
a newly-allocated copy of
EDataServer.SourceMailIdentity
:signature-uid
- Return type:
Thread-safe variation of
EDataServer.SourceMailIdentity.get_signature_uid
(). Use this function when accessing self from multiple threads.The returned string should be freed with
GLib.free
() when no longer needed.New in version 3.6.
- get_address()¶
-
Returns the email address for this identity from which to send messages. This may be an empty string but will never be
None
.New in version 3.6.
- get_aliases()¶
-
Returns the email address aliases for this identity. These are comma-separated email addresses which may or may not contain also different name. This may be an empty string, but will never be
None
. There can be usedCamel.Address.decode
() on aCamel.InternetAddress
to decode the list of aliases.New in version 3.24.
- get_aliases_as_hash_table()¶
- Returns:
A newly created
GLib.HashTable
will all the aliases. ReturnsNone
if there are none set. UseGLib.HashTable.destroy
() to free the returned hash table.- Return type:
Returns a set aliases as a hash table with address as key and name as value of the hash table. The name can be sometimes empty or
None
, thus rather useGLib.HashTable.contains
() when checking for particular address. The addresses are compared case insensitively. The same addresses with a different name are included only once, the last variant of it. UseEDataServer.SourceMailIdentity.get_aliases
() if you need more fine-grained control on the list of aliases.New in version 3.24.
- get_name()¶
-
Returns the sender’s name for this identity.
New in version 3.6.
- get_organization()¶
-
Returns the sender’s organization for this identity.
New in version 3.6.
- get_reply_to()¶
-
Returns the email address for this identity to which recipients should send replies.
New in version 3.6.
- get_signature_uid()¶
-
Returns the
EDataServer.Source
:uid
of anEDataServer.Source
describing a mail signature.If the user does not want to use a signature for this identity, the convention is to set the
EDataServer.SourceMailIdentity
:signature-uid
property to “none”.New in version 3.6.
- set_address(address)¶
-
Sets the email address for this identity from which to send messages.
The internal copy of address is automatically stripped of leading and trailing whitespace. If the resulting string is empty,
None
is set instead.New in version 3.6.
- set_aliases(aliases)¶
-
Sets the email address aliases for this identity. These are comma-separated email addresses which may or may not contain also different name.
The internal copy of aliases is automatically stripped of leading and trailing whitespace. If the resulting string is empty,
None
is set instead.New in version 3.24.
- set_name(name)¶
-
Sets the sender’s name for this identity.
The internal copy of name is automatically stripped of leading and trailing whitespace.
New in version 3.6.
- set_organization(organization)¶
-
Sets the sender’s organization for this identity.
The internal copy of organization is automatically stripped of leading and trailing whitespace. If the resulting string is empty,
None
is set instead.New in version 3.6.
- set_reply_to(reply_to)¶
-
Sets the email address for this identity to which recipients should send replies.
The internal copy of reply_to is automatically stripped of leading and trailing whitespace. If the resulting string is empty,
None
is set instead.New in version 3.6.
- set_signature_uid(signature_uid)¶
-
Sets the
EDataServer.Source
:uid
of anEDataServer.Source
describing a mail signature.If the user does not want to use a signature for this identity, the convention is to set the
EDataServer.SourceMailIdentity
:signature-uid
property to “none”. In keeping with that convention, the property will be set to “none” if signature_uid isNone
or an empty string.New in version 3.6.
Property Details¶
- EDataServer.SourceMailIdentity.props.address¶
-
Sender’s email address
- EDataServer.SourceMailIdentity.props.aliases¶
-
Sender’s email address aliases
- EDataServer.SourceMailIdentity.props.name¶
-
Sender’s name
- EDataServer.SourceMailIdentity.props.organization¶
- Name:
organization
- Type:
- Default Value:
- Flags:
Sender’s organization
- EDataServer.SourceMailIdentity.props.reply_to¶
-
Sender’s reply-to address
- EDataServer.SourceMailIdentity.props.signature_uid¶
- Name:
signature-uid
- Type:
- Default Value:
'none'
- Flags:
EDataServer.Source
UID of the sender’s signature