Revision 773 src/compose.c
| compose.c (revision 773) | ||
|---|---|---|
| 2677 | 2677 |
/* save message to outbox */ |
| 2678 | 2678 |
if (prefs_common.savemsg) {
|
| 2679 | 2679 |
FolderItem *outbox; |
| 2680 |
gboolean drop_done = FALSE; |
|
| 2680 | 2681 |
|
| 2681 |
outbox = account_get_special_folder |
|
| 2682 |
(compose->account, F_OUTBOX); |
|
| 2683 |
if (procmsg_save_to_outbox(outbox, tmp) < 0) |
|
| 2684 |
alertpanel_error |
|
| 2685 |
(_("Can't save the message to outbox."));
|
|
| 2686 |
else |
|
| 2687 |
folderview_update_item(outbox, TRUE); |
|
| 2688 |
} |
|
| 2689 |
/* filter sent message */ |
|
| 2690 |
if (prefs_common.filter_sent) {
|
|
| 2691 |
FilterInfo *fltinfo; |
|
| 2682 |
/* filter sent message */ |
|
| 2683 |
if (prefs_common.filter_sent) {
|
|
| 2684 |
FilterInfo *fltinfo; |
|
| 2692 | 2685 |
|
| 2693 |
fltinfo = filter_info_new(); |
|
| 2694 |
fltinfo->account = compose->account; |
|
| 2695 |
fltinfo->flags.perm_flags = 0; |
|
| 2696 |
fltinfo->flags.tmp_flags = MSG_RECEIVED; |
|
| 2686 |
fltinfo = filter_info_new();
|
|
| 2687 |
fltinfo->account = compose->account;
|
|
| 2688 |
fltinfo->flags.perm_flags = 0;
|
|
| 2689 |
fltinfo->flags.tmp_flags = MSG_RECEIVED;
|
|
| 2697 | 2690 |
|
| 2698 |
filter_apply(prefs_common.fltlist, tmp, fltinfo); |
|
| 2691 |
filter_apply(prefs_common.fltlist, tmp, |
|
| 2692 |
fltinfo); |
|
| 2699 | 2693 |
|
| 2700 |
folderview_update_all_updated(TRUE); |
|
| 2701 |
filter_info_free(fltinfo); |
|
| 2694 |
drop_done = fltinfo->drop_done; |
|
| 2695 |
folderview_update_all_updated(TRUE); |
|
| 2696 |
filter_info_free(fltinfo); |
|
| 2697 |
} |
|
| 2698 |
|
|
| 2699 |
if (!drop_done) {
|
|
| 2700 |
outbox = account_get_special_folder |
|
| 2701 |
(compose->account, F_OUTBOX); |
|
| 2702 |
if (procmsg_save_to_outbox(outbox, tmp) < 0) |
|
| 2703 |
alertpanel_error |
|
| 2704 |
(_("Can't save the message to outbox."));
|
|
| 2705 |
else |
|
| 2706 |
folderview_update_item(outbox, TRUE); |
|
| 2707 |
} |
|
| 2702 | 2708 |
} |
| 2703 | 2709 |
} |
| 2704 | 2710 |
|
Also available in: Unified diff