aboutsummaryrefslogtreecommitdiff
path: root/libsylph
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2008-12-11 04:38:51 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2008-12-11 04:38:51 +0000
commit3a94beb958a609c953a03d37b3ecf553c5782803 (patch)
tree93373de73733d2ba8adc1a374298a15c66dd9f46 /libsylph
parent1530b222bda57a53255e31784c0f3357a0af3829 (diff)
renamed/removed MSGBUFSIZE.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2091 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph')
-rw-r--r--libsylph/mbox.c4
-rw-r--r--libsylph/smtp.c14
-rw-r--r--libsylph/smtp.h4
3 files changed, 10 insertions, 12 deletions
diff --git a/libsylph/mbox.c b/libsylph/mbox.c
index 17511697..34aad016 100644
--- a/libsylph/mbox.c
+++ b/libsylph/mbox.c
@@ -42,8 +42,6 @@
#include "account.h"
#include "utils.h"
-#define MSGBUFSIZE 8192
-
#define FPUTS_TO_TMP_ABORT_IF_FAIL(s) \
{ \
if (fputs(s, tmp_fp) == EOF) { \
@@ -69,7 +67,7 @@ gint proc_mbox_full(FolderItem *dest, const gchar *mbox,
gboolean filter_junk)
{
FILE *mbox_fp;
- gchar buf[MSGBUFSIZE], from_line[MSGBUFSIZE];
+ gchar buf[BUFFSIZE], from_line[BUFFSIZE];
gchar *tmp_file;
gint msgs = 0;
diff --git a/libsylph/smtp.c b/libsylph/smtp.c
index 2ee725ee..da41a97a 100644
--- a/libsylph/smtp.c
+++ b/libsylph/smtp.c
@@ -1,6 +1,6 @@
/*
* LibSylph -- E-Mail client library
- * Copyright (C) 1999-2005 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2008 Hiroyuki Yamamoto
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -117,7 +117,7 @@ static void smtp_session_destroy(Session *session)
static gint smtp_from(SMTPSession *session)
{
- gchar buf[MSGBUFSIZE];
+ gchar buf[SMTPBUFSIZE];
g_return_val_if_fail(session->from != NULL, SM_ERROR);
@@ -163,7 +163,7 @@ static gint smtp_auth(SMTPSession *session)
static gint smtp_auth_recv(SMTPSession *session, const gchar *msg)
{
- gchar buf[MSGBUFSIZE];
+ gchar buf[SMTPBUFSIZE];
switch (session->auth_type) {
case SMTPAUTH_LOGIN:
@@ -236,7 +236,7 @@ static gint smtp_auth_recv(SMTPSession *session, const gchar *msg)
static gint smtp_auth_login_user_recv(SMTPSession *session, const gchar *msg)
{
- gchar buf[MSGBUFSIZE];
+ gchar buf[SMTPBUFSIZE];
session->state = SMTP_AUTH_LOGIN_PASS;
@@ -255,7 +255,7 @@ static gint smtp_auth_login_user_recv(SMTPSession *session, const gchar *msg)
static gint smtp_ehlo(SMTPSession *session)
{
- gchar buf[MSGBUFSIZE];
+ gchar buf[SMTPBUFSIZE];
session->state = SMTP_EHLO;
@@ -370,7 +370,7 @@ static gint smtp_auth_login(SMTPSession *session)
static gint smtp_helo(SMTPSession *session)
{
- gchar buf[MSGBUFSIZE];
+ gchar buf[SMTPBUFSIZE];
session->state = SMTP_HELO;
@@ -384,7 +384,7 @@ static gint smtp_helo(SMTPSession *session)
static gint smtp_rcpt(SMTPSession *session)
{
- gchar buf[MSGBUFSIZE];
+ gchar buf[SMTPBUFSIZE];
gchar *to;
g_return_val_if_fail(session->cur_to != NULL, SM_ERROR);
diff --git a/libsylph/smtp.h b/libsylph/smtp.h
index 6a087773..6bf3ce55 100644
--- a/libsylph/smtp.h
+++ b/libsylph/smtp.h
@@ -1,6 +1,6 @@
/*
* LibSylph -- E-Mail client library
- * Copyright (C) 1999-2005 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2008 Hiroyuki Yamamoto
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -33,7 +33,7 @@ typedef struct _SMTPSession SMTPSession;
#define SMTP_SESSION(obj) ((SMTPSession *)obj)
-#define MSGBUFSIZE 8192
+#define SMTPBUFSIZE 8192
typedef enum
{