aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2001-03-14 01:26:56 +0800
committerDan Winship <danw@src.gnome.org>2001-03-14 01:26:56 +0800
commit368cd30655ffcfdc79f6298b90d41ce33ddeed35 (patch)
tree3ccab6ac29de716049a02196a9756fd0600d3b3f /camel/providers
parent14538bdee1f3838d944ac3f6945f0cfb3122965e (diff)
downloadgsoc2013-evolution-368cd30655ffcfdc79f6298b90d41ce33ddeed35.tar
gsoc2013-evolution-368cd30655ffcfdc79f6298b90d41ce33ddeed35.tar.gz
gsoc2013-evolution-368cd30655ffcfdc79f6298b90d41ce33ddeed35.tar.bz2
gsoc2013-evolution-368cd30655ffcfdc79f6298b90d41ce33ddeed35.tar.lz
gsoc2013-evolution-368cd30655ffcfdc79f6298b90d41ce33ddeed35.tar.xz
gsoc2013-evolution-368cd30655ffcfdc79f6298b90d41ce33ddeed35.tar.zst
gsoc2013-evolution-368cd30655ffcfdc79f6298b90d41ce33ddeed35.zip
More fixing for exim: It can't deal with "-tif", you need to say "-t -i
* providers/sendmail/camel-sendmail-transport.c (sendmail_send_to, sendmail_send): More fixing for exim: It can't deal with "-tif", you need to say "-t -i -f". svn path=/trunk/; revision=8674
Diffstat (limited to 'camel/providers')
-rw-r--r--camel/providers/sendmail/camel-sendmail-transport.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/camel/providers/sendmail/camel-sendmail-transport.c b/camel/providers/sendmail/camel-sendmail-transport.c
index 577dcc4610..71595ca218 100644
--- a/camel/providers/sendmail/camel-sendmail-transport.c
+++ b/camel/providers/sendmail/camel-sendmail-transport.c
@@ -209,15 +209,16 @@ sendmail_send_to (CamelTransport *transport, CamelMedium *message,
return FALSE;
len = g_list_length (recipients);
- argv = g_malloc ((len + 5) * sizeof (char *));
+ argv = g_malloc ((len + 6) * sizeof (char *));
argv[0] = "sendmail";
- argv[1] = "-if";
- argv[2] = from;
- argv[3] = "--";
+ argv[1] = "-i";
+ argv[2] = "-f";
+ argv[3] = from;
+ argv[4] = "--";
for (i = 1, r = recipients; i <= len; i++, r = r->next)
- argv[i + 3] = r->data;
- argv[i + 3] = NULL;
+ argv[i + 4] = r->data;
+ argv[i + 4] = NULL;
status = sendmail_send_internal (message, argv, ex);
g_free (argv);
@@ -228,10 +229,10 @@ static gboolean
sendmail_send (CamelTransport *transport, CamelMedium *message,
CamelException *ex)
{
- const char *argv[4] = { "sendmail", "-tif", NULL, NULL };
-
- argv[2] = get_from (message, ex);
- if (!argv[2])
+ const char *argv[6] = { "sendmail", "-t", "-i", "-f", NULL, NULL };
+
+ argv[4] = get_from (message, ex);
+ if (!argv[4])
return FALSE;
return sendmail_send_internal (message, argv, ex);