diff options
author | Dan Winship <danw@src.gnome.org> | 2001-10-09 00:21:41 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2001-10-09 00:21:41 +0800 |
commit | f8476f77b7330532b5439f2c7f7163bc9d845437 (patch) | |
tree | 2c8a67e4ec700077b32a32049b640997b3665d0c /mail/mail-tools.c | |
parent | 502d7fb2f2cd203e25e5a390ac8d797cba12a68d (diff) | |
download | gsoc2013-evolution-f8476f77b7330532b5439f2c7f7163bc9d845437.tar.gz gsoc2013-evolution-f8476f77b7330532b5439f2c7f7163bc9d845437.tar.zst gsoc2013-evolution-f8476f77b7330532b5439f2c7f7163bc9d845437.zip |
Remove #ifndef MOVEMAIL_PATH code, since the setting of that variable has
* mail-tools.c (mail_tool_do_movemail): Remove #ifndef
MOVEMAIL_PATH code, since the setting of that variable has been
meaningless for a while now, and the rest of the code DTRT whether
that code executes or not.
svn path=/trunk/; revision=13500
Diffstat (limited to 'mail/mail-tools.c')
-rw-r--r-- | mail/mail-tools.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/mail/mail-tools.c b/mail/mail-tools.c index d134bfd4ca..96ef278567 100644 --- a/mail/mail-tools.c +++ b/mail/mail-tools.c @@ -115,30 +115,12 @@ mail_tool_do_movemail (const gchar *source_url, CamelException *ex) gchar *dest_path; const gchar *source; struct stat sb; -#ifndef MOVEMAIL_PATH - int tmpfd; -#endif + g_return_val_if_fail (strncmp (source_url, "mbox:", 5) == 0, NULL); /* Set up our destination. */ dest_path = mail_tool_get_local_movemail_path(); - /* Create a new movemail mailbox file of 0 size */ - -#ifndef MOVEMAIL_PATH - tmpfd = open (dest_path, O_RDWR | O_CREAT | O_APPEND, S_IRUSR | S_IWUSR); - - if (tmpfd == -1) { - camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM, - _("Couldn't create temporary mbox `%s': %s"), - dest_path, g_strerror (errno)); - g_free (dest_path); - return NULL; - } - - close (tmpfd); -#endif - /* Skip over "mbox:" plus host part (if any) of url. */ source = source_url + 5; if (!strncmp (source, "//", 2)) |