camel_provider_init ();
priv->camel_session = solipa_camel_session_new (priv->camel_tmpdir);
+ if (!CAMEL_IS_SESSION (priv->camel_session))
+ {
+ g_warning ("Unable to create CamelSession.");
+ g_object_unref (solipa);
+ solipa = NULL;
+ }
return solipa;
}
{
SolipaCamelPrivate *priv;
- g_return_val_if_fail (IS_SOLIPA (solipa), NULL);
+ g_return_val_if_fail (IS_SOLIPA_CAMEL (solipa), NULL);
priv = SOLIPA_CAMEL_GET_PRIVATE (solipa);
GError **error)
{
return (camel_service_authenticate_sync (service, mechanism, cancellable, error) == CAMEL_AUTHENTICATION_ACCEPTED);
-}
\ No newline at end of file
+}
}
G_DEPRECATED
-SolipaCamel
+CamelSession
*solipa_get_camel_session (Solipa *solipa)
{
SolipaPrivate *priv;
priv = SOLIPA_GET_PRIVATE (solipa);
- return priv->camel_session;
+ return solipa_camel_get_camel_session (priv->camel_session);
}
G_DEPRECATED
void solipa_set_from_keyfile (Solipa *solipa, const gchar *filename);
G_DEPRECATED
-SolipaCamel *solipa_get_camel_session (Solipa *solipa);
+CamelSession *solipa_get_camel_session (Solipa *solipa);
G_DEPRECATED
void solipa_set_gdaex (Solipa *solipa, GdaEx *gdaex);