Session
Class
constructor
parent_
class
reserved_
methods
reserved_
signals
name
add_
service
addressbook_
contains_
sync
authenticate_
sync
forget_
password
forward_
to_
sync
get_
filter_
driver
get_
oauth2_
access_
token_
sync
get_
password
get_
recipient_
certificates_
sync
job_
finished
job_
started
lookup_
addressbook
remove_
service
trust_
prompt
user_
alert
GJS API Reference
Camel-1.2
Camel
SessionClass
Class SessionClass
Hierarchy
SessionClass
Index
Constructors
constructor
Properties
parent_
class
reserved_
methods
reserved_
signals
name
Methods
add_
service
addressbook_
contains_
sync
authenticate_
sync
forget_
password
forward_
to_
sync
get_
filter_
driver
get_
oauth2_
access_
token_
sync
get_
password
get_
recipient_
certificates_
sync
job_
finished
job_
started
lookup_
addressbook
remove_
service
trust_
prompt
user_
alert
Constructors
constructor
new
Session
Class
(
)
:
Camel
.
SessionClass
Returns
Camel
.
SessionClass
Properties
parent_
class
parent_
class
:
GObject
.
ObjectClass
reserved_
methods
reserved_
methods
:
object
[]
reserved_
signals
reserved_
signals
:
object
[]
Static
name
name
:
string
Methods
add_
service
add_
service
(
session
:
Camel
.
Session
, uid
:
string
, protocol
:
string
, type
:
ProviderType
)
:
Camel
.
Service
Parameters
session:
Camel
.
Session
uid:
string
protocol:
string
type:
ProviderType
Returns
Camel
.
Service
addressbook_
contains_
sync
addressbook_
contains_
sync
(
session
:
Camel
.
Session
, book_uid
:
string
, email_address
:
string
, cancellable
:
Gio
.
Cancellable
)
:
boolean
Parameters
session:
Camel
.
Session
book_uid:
string
email_address:
string
cancellable:
Gio
.
Cancellable
Returns
boolean
authenticate_
sync
authenticate_
sync
(
session
:
Camel
.
Session
, service
:
Camel
.
Service
, mechanism
:
string
, cancellable
:
Gio
.
Cancellable
)
:
boolean
Parameters
session:
Camel
.
Session
service:
Camel
.
Service
mechanism:
string
cancellable:
Gio
.
Cancellable
Returns
boolean
forget_
password
forget_
password
(
session
:
Camel
.
Session
, service
:
Camel
.
Service
, item
:
string
)
:
boolean
Parameters
session:
Camel
.
Session
service:
Camel
.
Service
item:
string
Returns
boolean
forward_
to_
sync
forward_
to_
sync
(
session
:
Camel
.
Session
, folder
:
Camel
.
Folder
, message
:
MimeMessage
, address
:
string
, cancellable
:
Gio
.
Cancellable
)
:
boolean
Parameters
session:
Camel
.
Session
folder:
Camel
.
Folder
message:
MimeMessage
address:
string
cancellable:
Gio
.
Cancellable
Returns
boolean
get_
filter_
driver
get_
filter_
driver
(
session
:
Camel
.
Session
, type
:
string
, for_folder
:
Camel
.
Folder
)
:
FilterDriver
Parameters
session:
Camel
.
Session
type:
string
for_folder:
Camel
.
Folder
Returns
FilterDriver
get_
oauth2_
access_
token_
sync
get_
oauth2_
access_
token_
sync
(
session
:
Camel
.
Session
, service
:
Camel
.
Service
, cancellable
:
Gio
.
Cancellable
)
:
[
boolean
,
string
,
number
]
Parameters
session:
Camel
.
Session
service:
Camel
.
Service
cancellable:
Gio
.
Cancellable
Returns
[
boolean
,
string
,
number
]
get_
password
get_
password
(
session
:
Camel
.
Session
, service
:
Camel
.
Service
, prompt
:
string
, item
:
string
, flags
:
number
)
:
string
Parameters
session:
Camel
.
Session
service:
Camel
.
Service
prompt:
string
item:
string
flags:
number
Returns
string
get_
recipient_
certificates_
sync
get_
recipient_
certificates_
sync
(
session
:
Camel
.
Session
, flags
:
number
, recipients
:
string
[]
, cancellable
:
Gio
.
Cancellable
)
:
[
boolean
,
string
[]
]
Parameters
session:
Camel
.
Session
flags:
number
recipients:
string
[]
cancellable:
Gio
.
Cancellable
Returns
[
boolean
,
string
[]
]
job_
finished
job_
finished
(
session
:
Camel
.
Session
, cancellable
:
Gio
.
Cancellable
, error
:
GLib
.
Error
)
:
void
Parameters
session:
Camel
.
Session
cancellable:
Gio
.
Cancellable
error:
GLib
.
Error
Returns
void
job_
started
job_
started
(
session
:
Camel
.
Session
, cancellable
:
Gio
.
Cancellable
)
:
void
Parameters
session:
Camel
.
Session
cancellable:
Gio
.
Cancellable
Returns
void
lookup_
addressbook
lookup_
addressbook
(
session
:
Camel
.
Session
, name
:
string
)
:
boolean
Parameters
session:
Camel
.
Session
name:
string
Returns
boolean
remove_
service
remove_
service
(
session
:
Camel
.
Session
, service
:
Camel
.
Service
)
:
void
Parameters
session:
Camel
.
Session
service:
Camel
.
Service
Returns
void
trust_
prompt
trust_
prompt
(
session
:
Camel
.
Session
, service
:
Camel
.
Service
, certificate
:
TlsCertificate
, errors
:
TlsCertificateFlags
)
:
CertTrust
Parameters
session:
Camel
.
Session
service:
Camel
.
Service
certificate:
TlsCertificate
errors:
TlsCertificateFlags
Returns
CertTrust
user_
alert
user_
alert
(
session
:
Camel
.
Session
, service
:
Camel
.
Service
, type
:
SessionAlertType
, message
:
string
)
:
void
Parameters
session:
Camel
.
Session
service:
Camel
.
Service
type:
SessionAlertType
message:
string
Returns
void
Session
Class
constructor
parent_
class
reserved_
methods
reserved_
signals
name
add_
service
addressbook_
contains_
sync
authenticate_
sync
forget_
password
forward_
to_
sync
get_
filter_
driver
get_
oauth2_
access_
token_
sync
get_
password
get_
recipient_
certificates_
sync
job_
finished
job_
started
lookup_
addressbook
remove_
service
trust_
prompt
user_
alert
base64:eyJwYWdlTmF2aWdhdGlvbiI6W3siY2xhc3NOYW1lcyI6InRzZC1raW5kLWNvbnN0cnVjdG9yIHRzZC1wYXJlbnQta2luZC1jbGFzcyIsImhyZWYiOiJDYW1lbF8xXzIuQ2FtZWwuU2Vzc2lvbkNsYXNzLmh0bWwjY29uc3RydWN0b3IiLCJuYW1lIjoiY29uc3RydWN0b3IiLCJjaGlsZHJlbiI6W10sImlzRXh0ZXJuIjpmYWxzZSwiaXNJbnRlcm4iOnRydWV9LHsiY2xhc3NOYW1lcyI6InRzZC1raW5kLXByb3BlcnR5IHRzZC1wYXJlbnQta2luZC1jbGFzcyIsImhyZWYiOiJDYW1lbF8xXzIuQ2FtZWwuU2Vzc2lvbkNsYXNzLmh0bWwjcGFyZW50X2NsYXNzIiwibmFtZSI6InBhcmVudF9jbGFzcyIsImNoaWxkcmVuIjpbXSwiaXN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