Revision 2091

libsylph/mbox.c (revision 2091)
42 42
#include "account.h"
43 43
#include "utils.h"
44 44

  
45
#define MSGBUFSIZE	8192
46

  
47 45
#define FPUTS_TO_TMP_ABORT_IF_FAIL(s) \
48 46
{ \
49 47
	if (fputs(s, tmp_fp) == EOF) { \
......
69 67
		    gboolean filter_junk)
70 68
{
71 69
	FILE *mbox_fp;
72
	gchar buf[MSGBUFSIZE], from_line[MSGBUFSIZE];
70
	gchar buf[BUFFSIZE], from_line[BUFFSIZE];
73 71
	gchar *tmp_file;
74 72
	gint msgs = 0;
75 73

  
libsylph/smtp.c (revision 2091)
1 1
/*
2 2
 * LibSylph -- E-Mail client library
3
 * Copyright (C) 1999-2005 Hiroyuki Yamamoto
3
 * Copyright (C) 1999-2008 Hiroyuki Yamamoto
4 4
 *
5 5
 * This library is free software; you can redistribute it and/or
6 6
 * modify it under the terms of the GNU Lesser General Public
......
117 117

  
118 118
static gint smtp_from(SMTPSession *session)
119 119
{
120
	gchar buf[MSGBUFSIZE];
120
	gchar buf[SMTPBUFSIZE];
121 121

  
122 122
	g_return_val_if_fail(session->from != NULL, SM_ERROR);
123 123

  
......
163 163

  
164 164
static gint smtp_auth_recv(SMTPSession *session, const gchar *msg)
165 165
{
166
	gchar buf[MSGBUFSIZE];
166
	gchar buf[SMTPBUFSIZE];
167 167

  
168 168
	switch (session->auth_type) {
169 169
	case SMTPAUTH_LOGIN:
......
236 236

  
237 237
static gint smtp_auth_login_user_recv(SMTPSession *session, const gchar *msg)
238 238
{
239
	gchar buf[MSGBUFSIZE];
239
	gchar buf[SMTPBUFSIZE];
240 240

  
241 241
	session->state = SMTP_AUTH_LOGIN_PASS;
242 242

  
......
255 255

  
256 256
static gint smtp_ehlo(SMTPSession *session)
257 257
{
258
	gchar buf[MSGBUFSIZE];
258
	gchar buf[SMTPBUFSIZE];
259 259

  
260 260
	session->state = SMTP_EHLO;
261 261

  
......
370 370

  
371 371
static gint smtp_helo(SMTPSession *session)
372 372
{
373
	gchar buf[MSGBUFSIZE];
373
	gchar buf[SMTPBUFSIZE];
374 374

  
375 375
	session->state = SMTP_HELO;
376 376

  
......
384 384

  
385 385
static gint smtp_rcpt(SMTPSession *session)
386 386
{
387
	gchar buf[MSGBUFSIZE];
387
	gchar buf[SMTPBUFSIZE];
388 388
	gchar *to;
389 389

  
390 390
	g_return_val_if_fail(session->cur_to != NULL, SM_ERROR);
libsylph/smtp.h (revision 2091)
1 1
/*
2 2
 * LibSylph -- E-Mail client library
3
 * Copyright (C) 1999-2005 Hiroyuki Yamamoto
3
 * Copyright (C) 1999-2008 Hiroyuki Yamamoto
4 4
 *
5 5
 * This library is free software; you can redistribute it and/or
6 6
 * modify it under the terms of the GNU Lesser General Public
......
33 33

  
34 34
#define SMTP_SESSION(obj)	((SMTPSession *)obj)
35 35

  
36
#define MSGBUFSIZE		8192
36
#define SMTPBUFSIZE		8192
37 37

  
38 38
typedef enum
39 39
{
src/inc.c (revision 2091)
68 68
static GdkPixbuf *error_pixbuf;
69 69
static GdkPixbuf *ok_pixbuf;
70 70

  
71
#define MSGBUFSIZE	8192
72

  
73 71
static void inc_finished		(MainWindow		*mainwin,
74 72
					 gint			 new_messages);
75 73

  
......
958 956
#if 0
959 957
		if (session->msg[session->cur_msg].recv_time <
960 958
			session->current_time) {
961
			gchar buf[MSGBUFSIZE];
959
			gchar buf[BUFFSIZE];
962 960
			g_snprintf(buf, sizeof(buf), _("Deleting message %d"),
963 961
				   session->cur_msg);
964 962
			progress_dialog_set_label(dialog, buf);
......
976 974
static void inc_progress_dialog_set_progress(IncProgressDialog *inc_dialog,
977 975
					     IncSession *inc_session)
978 976
{
979
	gchar buf[MSGBUFSIZE];
977
	gchar buf[BUFFSIZE];
980 978
	Pop3Session *pop3_session = POP3_SESSION(inc_session->session);
981 979
	gchar *total_size_str;
982 980
	gint64 cur_total;
ChangeLog.ja (revision 2091)
1 1
2008-12-11
2 2

  
3
	* libsylph/mbox.c
4
	  libsylph/smtp.[ch]
5
	  src/inc.c: MSGBUFSIZE ????̾?ޤ??Ϻ???(OpenBSD ?Υإå??ե???????
6
	  ???ͤ??뤿??)??
7

  
8
2008-12-11
9

  
3 10
	* libsylph/procmime.c: procmime_parse_mime_parameter(): ?? JIS
4 11
	  ?ե?????̾?ؤ??к????Ԥä?(Eudora ??)??
5 12

  
ChangeLog (revision 2091)
1 1
2008-12-11
2 2

  
3
	* libsylph/mbox.c
4
	  libsylph/smtp.[ch]
5
	  src/inc.c: renamed/removed MSGBUFSIZE since it conflicts with
6
	  OpenBSD's header file.
7

  
8
2008-12-11
9

  
3 10
	* libsylph/procmime.c: procmime_parse_mime_parameter(): made a
4 11
	  workaround for raw-JIS filename (Eudora etc.).
5 12

  

Also available in: Unified diff