summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 521a3f6)
raw | patch | inline | side by side (parent: 521a3f6)
author | Mike McCormack <mike@codeweavers.com> | |
Wed, 5 Apr 2006 14:22:52 +0000 (23:22 +0900) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 5 Apr 2006 20:00:03 +0000 (13:00 -0700) |
Signed-off-by: Junio C Hamano <junkio@cox.net>
imap-send.c | patch | blob | history |
diff --git a/imap-send.c b/imap-send.c
index f3cb79b1f8ea6fb2e21c89d6b1dba35e975aca30..ea56dc9ae5e2110c88a3538a9559a6e6d0adb23c 100644 (file)
--- a/imap-send.c
+++ b/imap-send.c
return 1;
}
+ total = count_messages( &all_msgs );
+ if (!total) {
+ fprintf(stderr,"no messages to send\n");
+ return 1;
+ }
+
/* write it to the imap server */
ctx = imap_open_store( &server );
if (!ctx) {
return 1;
}
- total = count_messages( &all_msgs );
fprintf( stderr, "sending %d message%s\n", total, (total!=1)?"s":"" );
ctx->name = imap_folder;
while (1) {