Revision 2886 src/compose.c

View differences:

compose.c
3444 3444
{
3445 3445
	gchar tmp[MAXPATHLEN + 1];
3446 3446
	gint ok = 0;
3447
	gboolean ack = TRUE;
3447 3448

  
3448 3449
	if (compose->lock_count > 0)
3449 3450
		return 1;
......
3490 3491
		g_warning(_("can't get recipient list."));
3491 3492
		g_unlink(tmp);
3492 3493
		compose_unlock(compose);
3494
		return 1;
3495
	}
3496

  
3497
	syl_plugin_signal_emit("compose-send", compose, compose->mode, 0,
3498
			       tmp, compose->to_list, &ack);
3499
	if (ack == FALSE) {
3500
		g_unlink(tmp);
3501
		compose_unlock(compose);
3493 3502
		return -1;
3494 3503
	}
3495 3504

  
......
7204 7213
	Compose *compose = (Compose *)data;
7205 7214
	FolderItem *queue;
7206 7215
	gchar tmp[MAXPATHLEN + 1];
7216
	gboolean ack = TRUE;
7207 7217

  
7208 7218
	if (compose_check_entries(compose) == FALSE)
7209 7219
		return;
......
7236 7246
		}
7237 7247
	}
7238 7248

  
7249
	if (!compose->to_list && !compose->newsgroup_list) {
7250
		g_warning("can't get recipient list.");
7251
		g_unlink(tmp);
7252
		return;
7253
	}
7254

  
7255
	syl_plugin_signal_emit("compose-send", compose, compose->mode, 1,
7256
			       tmp, compose->to_list, &ack);
7257
	if (ack == FALSE) {
7258
		g_unlink(tmp);
7259
		return;
7260
	}
7261

  
7239 7262
	if (compose_queue(compose, tmp) < 0) {
7240 7263
		alertpanel_error(_("Can't queue the message."));
7264
		g_unlink(tmp);
7241 7265
		return;
7242 7266
	}
7243 7267

  

Also available in: Unified diff