-2002-03-10 [paul]
+2002-03-10 [hoa] 0.7.3claws5
+
+ * src/account.c
+ * src/inc.c
+ * src/prefs_account.c
+ * src/procmsg.c
+ * src/send.[ch]
+ fixed the local account.
+ you have to change the default "/usr/sbin/sendmail"
+ to "/usr/sbin/sendmail -t" in the preferences of
+ the local account.
+
+ * src/procmime.c
+ removed some debug display for renderer
+
+2002-03-10 [paul] 0.7.3claws4
* faq/en/sylpheed-faq-1.html
faq/en/sylpheed-faq-2.html
MICRO_VERSION=3
INTERFACE_AGE=0
BINARY_AGE=0
-EXTRA_VERSION=claws3
+EXTRA_VERSION=claws5
VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
dnl set $target
ac = gtk_clist_get_row_data(clist, row);
if (ac->protocol == A_POP3 || ac->protocol == A_APOP ||
- ac->protocol == A_IMAP4 || ac->protocol == A_NNTP) {
+ ac->protocol == A_IMAP4 || ac->protocol == A_NNTP ||
+ ac->protocol == A_LOCAL) {
ac->recv_at_getall ^= TRUE;
account_clist_set_row(ac, row);
}
has_getallbox = (ac_prefs->protocol == A_POP3 ||
ac_prefs->protocol == A_APOP ||
ac_prefs->protocol == A_IMAP4 ||
- ac_prefs->protocol == A_NNTP);
+ ac_prefs->protocol == A_NNTP ||
+ ac_prefs->protocol == A_LOCAL);
getall = has_getallbox && ac_prefs->recv_at_getall;
if (ac_prefs->is_default)
static gint get_spool (FolderItem *dest,
const gchar *mbox);
+static void inc_spool_account(PrefsAccount *account);
static void inc_all_spool(void);
static void inc_autocheck_timer_set_interval (guint interval);
static gint inc_autocheck_func (gpointer data);
IncSession *session;
gchar *text[3];
- if (account->protocol == A_IMAP4 || account->protocol == A_NNTP) {
+ switch (account->protocol) {
+ case A_IMAP4:
+ case A_NNTP:
folderview_check_new(FOLDER(account->folder));
return 1;
- }
-
- session = inc_session_new(account);
- if (!session) return 0;
-
- inc_dialog = inc_progress_dialog_create();
- inc_dialog->queue_list = g_list_append(inc_dialog->queue_list, session);
- inc_dialog->mainwin = mainwin;
- session->data = inc_dialog;
-
- text[0] = NULL;
- text[1] = account->account_name;
- text[2] = _("Standby");
- gtk_clist_append(GTK_CLIST(inc_dialog->dialog->clist), text);
-
- main_window_set_toolbar_sensitive(mainwin);
- main_window_set_menu_sensitive(mainwin);
- return inc_start(inc_dialog);
+ case A_POP3:
+ case A_APOP:
+ session = inc_session_new(account);
+ if (!session) return 0;
+
+ inc_dialog = inc_progress_dialog_create();
+ inc_dialog->queue_list = g_list_append(inc_dialog->queue_list,
+ session);
+ inc_dialog->mainwin = mainwin;
+ session->data = inc_dialog;
+
+ text[0] = NULL;
+ text[1] = account->account_name;
+ text[2] = _("Standby");
+ gtk_clist_append(GTK_CLIST(inc_dialog->dialog->clist), text);
+
+ main_window_set_toolbar_sensitive(mainwin);
+ main_window_set_menu_sensitive(mainwin);
+
+ return inc_start(inc_dialog);
+
+ case A_LOCAL:
+ inc_spool_account(account);
+ return 1;
+ }
}
void inc_all_account_mail(MainWindow *mainwin, gboolean notify)
return;
}
+ /* check local folders */
+ inc_all_spool();
+
/* check IMAP4 folders */
for (; list != NULL; list = list->next) {
PrefsAccount *account = list->data;
IncSession *session;
PrefsAccount *account = list->data;
- if (account->protocol == A_LOCAL)
+ if ((account->protocol == A_LOCAL) &&
+ (account->recv_at_getall))
inc_spool_account(account);
}
}
{"use_mail_command", "FALSE", &tmp_ac_prefs.use_mail_command, P_BOOL,
&basic.mailcmd_chkbtn, prefs_set_data_from_toggle, prefs_set_toggle},
- {"mail_command", "/usr/sbin/sendmail", &tmp_ac_prefs.mail_command, P_STRING,
+ {"mail_command", "/usr/sbin/sendmail -t", &tmp_ac_prefs.mail_command, P_STRING,
&basic.mailcmd_entry, prefs_set_data_from_entry, prefs_set_entry},
{"use_nntp_auth", "FALSE", &tmp_ac_prefs.use_nntp_auth, P_BOOL,
if (cr == NULL)
continue;
- printf("%s %s\n", cr->content_type, cr->renderer);
-
renderer_list = g_list_append(renderer_list, cr);
}
if(!from) {
g_warning(_("Queued message header is broken.\n"));
mailval = -1;
+ } else if (mailac && mailac->use_mail_command &&
+ mailac->mail_command && (* mailac->mail_command)) {
+ mailval = send_message_local(mailac->mail_command, fp);
} else if (prefs_common.use_extsend && prefs_common.extsend_cmd) {
mailval = send_message_local(prefs_common.extsend_cmd, fp);
} else {
return -1;
}
- if (prefs_common.use_extsend && prefs_common.extsend_cmd) {
+ printf("account: %p\n", ac_prefs);
+
+ if (ac_prefs->use_mail_command && ac_prefs->mail_command &&
+ (*ac_prefs->mail_command)) {
+ val = send_message_local(ac_prefs->mail_command, fp);
+ fclose(fp);
+ return val;
+ }
+ else if (prefs_common.use_extsend && prefs_common.extsend_cmd) {
val = send_message_local(prefs_common.extsend_cmd, fp);
fclose(fp);
return val;
}
-
- val = send_message_smtp(ac_prefs, to_list, fp);
-
- fclose(fp);
- return val;
+ else {
+ val = send_message_smtp(ac_prefs, to_list, fp);
+
+ fclose(fp);
+ return val;
+ }
}
enum
Q_ACCOUNT_ID = 3
};
+#if 0
gint send_message_queue(const gchar *file)
{
static HeaderEntry qentry[] = {{"S:", NULL, FALSE},
if (!to_list || !from) {
g_warning(_("Queued message header is broken.\n"));
val = -1;
+ } else if (ac && ac->use_mail_command && ac->mail_command &&
+ (*ac->mail_command)) {
+ val = send_message_local(ac->mail_command, fp);
} else if (prefs_common.use_extsend && prefs_common.extsend_cmd) {
val = send_message_local(prefs_common.extsend_cmd, fp);
} else {
return val;
}
+#endif
gint send_message_local(const gchar *command, FILE *fp)
{
FILE *pipefp;
gchar buf[BUFFSIZE];
+ int r;
g_return_val_if_fail(command != NULL, -1);
g_return_val_if_fail(fp != NULL, -1);
fputc('\n', pipefp);
}
- pclose(pipefp);
+ r = pclose(pipefp);
+ if (r != 0) {
+ g_warning(_("external command failed: %s\n"), command);
+ return -1;
+ }
return 0;
}
gint send_message (const gchar *file,
PrefsAccount *ac_prefs,
GSList *to_list);
+#if 0
gint send_message_queue (const gchar *file);
+#endif
gint send_message_local (const gchar *command,
FILE *fp);
gint send_message_smtp (PrefsAccount *ac_prefs,