GMime.InternetAddress¶
- Subclasses:
 
Methods¶
- Inherited:
 - Structs:
 
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
- Inherited:
 
  | 
Properties¶
None
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
changed  | 
r  | 
||
charset  | 
r  | 
the charset used for encoding the name  | 
|
name  | 
r  | 
display name  | 
|
parent_object  | 
r  | 
parent   | 
Class Details¶
- class GMime.InternetAddress(**kwargs)¶
 - Bases:
 - Abstract:
 Yes
- Structure:
 
An RFC 2822 Address object.
- get_charset()¶
 - Returns:
 the charset to be used when encoding the name of the mailbox or group if available or
Noneotherwise.- Return type:
 
Gets the charset to be used when encoding the name of the mailbox or group.
- get_name()¶
 - Returns:
 the name of the mailbox or group in a form suitable for display if available or
Noneotherwise. If the name is available, the returned string will be in UTF-8.- Return type:
 
Gets the display name of the
GMime.InternetAddress.
- set_charset(charset)¶
 - Parameters:
 charset (
strorNone) – the charset to use when encoding the name orNoneto use the defaults
Set the charset to use for encoding the name of the mailbox or group.
- set_name(name)¶
 - Parameters:
 name (
str) – the display name for the address group or mailbox
Set the display name of the
GMime.InternetAddress.Note: The name string should be in UTF-8.
- to_string(options, encode)¶
 - Parameters:
 options (
GMime.FormatOptionsorNone) – aGMime.FormatOptionsorNoneencode (
bool) –Trueif the address should be rfc2047 encoded
- Returns:
 the
GMime.InternetAddressobject as an allocated string in rfc822 format.- Return type:
 
Allocates a string containing the contents of the
GMime.InternetAddressobject.
- do_to_string(options, flags, linelen, str) virtual¶
 - Parameters:
 options (
GMime.FormatOptions) –flags (
int) –linelen (
int) –str (
GLib.String) –