[evolution-data-server] Bug 730438 - camel_movemail: Treat no source	file as no mail to copy
- From: Milan Crha <mcrha src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [evolution-data-server] Bug 730438 - camel_movemail: Treat no source	file as no mail to copy
 
- Date: Tue,  9 Sep 2014 07:34:40 +0000 (UTC)
 
commit 7edb33f7680f3df0f60b0a440059cd3f5a79efe8
Author: Philip Withnall <philip withnall collabora co uk>
Date:   Tue Sep 9 09:32:15 2014 +0200
    Bug 730438 - camel_movemail: Treat no source file as no mail to copy
    
    Previously -1 would be returned if the file did not exist, which
    I think was incorrect - according to a comment in the file,
    missing mail files should be considered as empty, and the function
    returns 0 (success) in that case. It has now been changed to also return
    0 if the source file doesn't exist.
 camel/camel-movemail.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/camel/camel-movemail.c b/camel/camel-movemail.c
index 7a643fa..6067f4e 100644
--- a/camel/camel-movemail.c
+++ b/camel/camel-movemail.c
@@ -103,7 +103,7 @@ camel_movemail (const gchar *source,
                return -1;
        } else if (sfd == -1) {
                /* No mail. */
-               return -1;
+               return 0;
        }
 
        /* Stat the spool file. If it doesn't exist or
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]