display maximum message size in the log, if too big
authorColin Leroy <colin@colino.net>
Tue, 6 Jul 2004 12:06:26 +0000 (12:06 +0000)
committerColin Leroy <colin@colino.net>
Tue, 6 Jul 2004 12:06:26 +0000 (12:06 +0000)
ChangeLog.claws
configure.ac
src/common/smtp.c

index 1bad588..fdaeacc 100644 (file)
@@ -1,3 +1,8 @@
+2004-07-06 [colin]     0.9.12cvs12
+
+       * src/common/smtp.c [1.16]
+               Display maximum message size in the log
+
 2004-07-06 [paul]      0.9.12cvs11
 
        * src/toolbar.c
index aa98e44..b9d1b34 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=12
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=11
+EXTRA_VERSION=12
 EXTRA_RELEASE=
 
 if test \( $EXTRA_VERSION -eq 0 \) -o \( "x$EXTRA_RELEASE" != "x" \); then
index 7811f96..484f8ef 100644 (file)
@@ -500,7 +500,10 @@ static gint smtp_session_recv_msg(Session *session, const gchar *msg)
                        break;
                if (smtp_session->max_message_size > 0
                && smtp_session->max_message_size < smtp_session->send_data_len) {
-                       log_warning(_("Message is too big\n"));
+                       log_warning(_("Message is too big "
+                                     "(Maximum size is %dKB)\n"), 
+                                     smtp_session->max_message_size / 1024);
+
                        smtp_session->state = SMTP_ERROR;
                        smtp_session->error_val = SM_ERROR;
                        return -1;