fixed a comment spelling mistake and removede CAMEL_OBJECT() casting where it was not needed (ref and unref calls)
svn path=/trunk/; revision=22700
This commit is contained in:
parent
e993c193d8
commit
da85df2ff6
@ -276,7 +276,7 @@ connect_to_server (CamelService *service, int try_starttls, CamelException *ex)
|
|||||||
service->url->host, port,
|
service->url->host, port,
|
||||||
g_strerror (errno));
|
g_strerror (errno));
|
||||||
|
|
||||||
camel_object_unref (CAMEL_OBJECT (tcp_stream));
|
camel_object_unref (tcp_stream);
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
@ -312,7 +312,7 @@ connect_to_server (CamelService *service, int try_starttls, CamelException *ex)
|
|||||||
if (!transport->connected)
|
if (!transport->connected)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
/* Okay, apprently this server doesn't support ESMTP */
|
/* Okay, apparently this server doesn't support ESMTP */
|
||||||
camel_exception_clear (ex);
|
camel_exception_clear (ex);
|
||||||
transport->flags &= ~CAMEL_SMTP_TRANSPORT_IS_ESMTP;
|
transport->flags &= ~CAMEL_SMTP_TRANSPORT_IS_ESMTP;
|
||||||
if (!smtp_helo (transport, ex) && !transport->connected)
|
if (!smtp_helo (transport, ex) && !transport->connected)
|
||||||
@ -392,9 +392,9 @@ connect_to_server (CamelService *service, int try_starttls, CamelException *ex)
|
|||||||
|
|
||||||
exception_cleanup:
|
exception_cleanup:
|
||||||
|
|
||||||
camel_object_unref (CAMEL_OBJECT (transport->istream));
|
camel_object_unref (transport->istream);
|
||||||
transport->istream = NULL;
|
transport->istream = NULL;
|
||||||
camel_object_unref (CAMEL_OBJECT (transport->ostream));
|
camel_object_unref (transport->ostream);
|
||||||
transport->ostream = NULL;
|
transport->ostream = NULL;
|
||||||
|
|
||||||
transport->connected = FALSE;
|
transport->connected = FALSE;
|
||||||
@ -451,7 +451,7 @@ smtp_connect (CamelService *service, CamelException *ex)
|
|||||||
truth = camel_sasl_authenticated (sasl);
|
truth = camel_sasl_authenticated (sasl);
|
||||||
if (chal)
|
if (chal)
|
||||||
g_byte_array_free (chal, TRUE);
|
g_byte_array_free (chal, TRUE);
|
||||||
camel_object_unref (CAMEL_OBJECT (sasl));
|
camel_object_unref (sasl);
|
||||||
|
|
||||||
if (!truth)
|
if (!truth)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
@ -579,12 +579,12 @@ smtp_disconnect (CamelService *service, gboolean clean, CamelException *ex)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (transport->istream) {
|
if (transport->istream) {
|
||||||
camel_object_unref (CAMEL_OBJECT (transport->istream));
|
camel_object_unref (transport->istream);
|
||||||
transport->istream = NULL;
|
transport->istream = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (transport->ostream) {
|
if (transport->ostream) {
|
||||||
camel_object_unref (CAMEL_OBJECT (transport->ostream));
|
camel_object_unref (transport->ostream);
|
||||||
transport->ostream = NULL;
|
transport->ostream = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -859,6 +859,7 @@ smtp_helo (CamelSmtpTransport *transport, CamelException *ex)
|
|||||||
{
|
{
|
||||||
/* say hello to the server */
|
/* say hello to the server */
|
||||||
char *name = NULL, *cmdbuf = NULL, *respbuf = NULL;
|
char *name = NULL, *cmdbuf = NULL, *respbuf = NULL;
|
||||||
|
gboolean tried_numeric_host = FALSE;
|
||||||
struct hostent *host;
|
struct hostent *host;
|
||||||
CamelException err;
|
CamelException err;
|
||||||
const char *token;
|
const char *token;
|
||||||
@ -1103,7 +1104,7 @@ smtp_auth (CamelSmtpTransport *transport, const char *mech, CamelException *ex)
|
|||||||
goto lose;
|
goto lose;
|
||||||
}
|
}
|
||||||
|
|
||||||
camel_object_unref (CAMEL_OBJECT (sasl));
|
camel_object_unref (sasl);
|
||||||
camel_operation_end (NULL);
|
camel_operation_end (NULL);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
@ -1121,7 +1122,7 @@ smtp_auth (CamelSmtpTransport *transport, const char *mech, CamelException *ex)
|
|||||||
_("Bad authentication response from server.\n"));
|
_("Bad authentication response from server.\n"));
|
||||||
}
|
}
|
||||||
|
|
||||||
camel_object_unref (CAMEL_OBJECT (sasl));
|
camel_object_unref (sasl);
|
||||||
camel_operation_end (NULL);
|
camel_operation_end (NULL);
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
@ -1280,7 +1281,7 @@ smtp_data (CamelSmtpTransport *transport, CamelMimeMessage *message, CamelExcept
|
|||||||
crlffilter = camel_mime_filter_crlf_new (CAMEL_MIME_FILTER_CRLF_ENCODE, CAMEL_MIME_FILTER_CRLF_MODE_CRLF_DOTS);
|
crlffilter = camel_mime_filter_crlf_new (CAMEL_MIME_FILTER_CRLF_ENCODE, CAMEL_MIME_FILTER_CRLF_MODE_CRLF_DOTS);
|
||||||
filtered_stream = camel_stream_filter_new_with_stream (transport->ostream);
|
filtered_stream = camel_stream_filter_new_with_stream (transport->ostream);
|
||||||
camel_stream_filter_add (filtered_stream, CAMEL_MIME_FILTER (crlffilter));
|
camel_stream_filter_add (filtered_stream, CAMEL_MIME_FILTER (crlffilter));
|
||||||
camel_object_unref (CAMEL_OBJECT (crlffilter));
|
camel_object_unref (crlffilter);
|
||||||
|
|
||||||
/* unlink the bcc headers */
|
/* unlink the bcc headers */
|
||||||
savedbcc = NULL;
|
savedbcc = NULL;
|
||||||
@ -1313,7 +1314,7 @@ smtp_data (CamelSmtpTransport *transport, CamelMimeMessage *message, CamelExcept
|
|||||||
"%s: mail not sent"),
|
"%s: mail not sent"),
|
||||||
g_strerror (errno));
|
g_strerror (errno));
|
||||||
|
|
||||||
camel_object_unref (CAMEL_OBJECT (filtered_stream));
|
camel_object_unref (filtered_stream);
|
||||||
|
|
||||||
camel_object_unref (transport->istream);
|
camel_object_unref (transport->istream);
|
||||||
transport->istream = NULL;
|
transport->istream = NULL;
|
||||||
@ -1324,7 +1325,7 @@ smtp_data (CamelSmtpTransport *transport, CamelMimeMessage *message, CamelExcept
|
|||||||
}
|
}
|
||||||
|
|
||||||
camel_stream_flush (CAMEL_STREAM (filtered_stream));
|
camel_stream_flush (CAMEL_STREAM (filtered_stream));
|
||||||
camel_object_unref (CAMEL_OBJECT (filtered_stream));
|
camel_object_unref (filtered_stream);
|
||||||
|
|
||||||
/* terminate the message body */
|
/* terminate the message body */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user