+2002-05-23 [paul] 0.7.6claws13
+
+ * src/compose.[ch]
+ src/filtering.c
+ src/mainwindow.c
+ src/matcher.[ch]
+ src/matcher_parser_lex.l
+ src/matcher_parser_parse.y
+ src/prefs_common.[ch]
+ src/prefs_filtering.c
+ src/summaryview.c
+ rename 'Bounce' to 'Redirect'
+
2002-05-23 [paul] 0.7.6claws12
* more sync with 0.7.6cvs13
MICRO_VERSION=6
INTERFACE_AGE=0
BINARY_AGE=0
-EXTRA_VERSION=claws12
+EXTRA_VERSION=claws13
VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
dnl set $target
return compose_generic_new(account, NULL, NULL);
}
-Compose *compose_bounce(PrefsAccount *account, MsgInfo *msginfo)
+Compose *compose_redirect(PrefsAccount *account, MsgInfo *msginfo)
{
Compose *c;
gchar *filename;
if (filename == NULL)
return NULL;
- c->bounce_filename = filename;
+ c->redirect_filename = filename;
if (msginfo->subject)
gtk_entry_set_text(GTK_ENTRY(c->subject_entry),
return(gtk_clist_get_row_data(GTK_CLIST(compose->attach_clist), 0) != NULL);
}
-static gint compose_bounce_write_headers_from_headerlist(Compose *compose,
- FILE *fp)
+static gint compose_redirect_write_headers_from_headerlist(Compose *compose,
+ FILE *fp)
{
gchar buf[BUFFSIZE];
gchar *str;
gchar *cc_hdr;
gchar *to_hdr;
- debug_print(_("Writing bounce header\n"));
+ debug_print(_("Writing redirect header\n"));
header_w_colon = g_strconcat("To:", NULL);
to_hdr = (prefs_common.trans_hdr ? gettext(header_w_colon) : header_w_colon);
return(0);
}
-static gint compose_bounce_write_headers(Compose *compose, FILE *fp)
+static gint compose_redirect_write_headers(Compose *compose, FILE *fp)
{
gchar buf[BUFFSIZE];
gchar *str;
fprintf(fp, "Resent-From: %s\n", compose->account->address);
/* To */
- compose_bounce_write_headers_from_headerlist(compose, fp);
+ compose_redirect_write_headers_from_headerlist(compose, fp);
/* separator between header and body */
fputs("\n", fp);
return 0;
}
-static gint compose_bounce_write_to_file(Compose *compose, const gchar *file)
+static gint compose_redirect_write_to_file(Compose *compose, const gchar *file)
{
FILE *fp;
FILE *fdest;
size_t len;
gchar buf[BUFFSIZE];
- if ((fp = fopen(compose->bounce_filename, "rb")) == NULL) {
+ if ((fp = fopen(compose->redirect_filename, "rb")) == NULL) {
FILE_OP_ERROR(file, "fopen");
return -1;
}
if (fputs(buf, fdest) == -1)
goto error;
- if (!prefs_common.bounce_keep_from) {
+ if (!prefs_common.redirect_keep_from) {
if (g_strncasecmp(buf, "From:",
strlen("From:")) == 0) {
fputs(" (by way of ", fdest);
goto error;
}
- compose_bounce_write_headers(compose, fdest);
+ compose_redirect_write_headers(compose, fdest);
while ((len = fread(buf, sizeof(gchar), sizeof(buf), fp)) > 0) {
if (fwrite(buf, sizeof(gchar), len, fdest) != len) {
tmp2 = g_strdup_printf("%s%ctmp%d", g_get_tmp_dir(),
G_DIR_SEPARATOR, (gint)compose);
- if (compose->bounce_filename != NULL) {
- if (compose_bounce_write_to_file(compose, tmp2) < 0) {
+ if (compose->redirect_filename != NULL) {
+ if (compose_redirect_write_to_file(compose, tmp2) < 0) {
unlink(tmp2);
lock = FALSE;
return -1;
compose->exteditor_readdes = -1;
compose->exteditor_tag = -1;
- compose->bounce_filename = NULL;
+ compose->redirect_filename = NULL;
compose->undostruct = undostruct;
#if USE_PSPELL
g_free(compose->msgid);
g_free(compose->boundary);
- if (compose->bounce_filename)
- g_free(compose->bounce_filename);
+ if (compose->redirect_filename)
+ g_free(compose->redirect_filename);
g_free(compose->exteditor_file);
Compose *compose = (Compose *)data;
GList *file_list;
- if (compose->bounce_filename != NULL)
+ if (compose->redirect_filename != NULL)
return;
file_list = filesel_select_multiple_files(_("Select file"), NULL);
COMPOSE_FORWARD,
COMPOSE_FORWARD_AS_ATTACH,
COMPOSE_FORWARD_INLINE,
- COMPOSE_BOUNCE,
+ COMPOSE_REDIRECT,
COMPOSE_NEW,
COMPOSE_REEDIT
} ComposeMode;
/* Priority */
gint priority;
- gchar *bounce_filename;
+ gchar *redirect_filename;
};
struct _AttachInfo
const gchar *body);
Compose *compose_forward_multiple (PrefsAccount *account,
GSList *msginfo_list);
-Compose *compose_bounce (PrefsAccount *account,
+Compose *compose_redirect (PrefsAccount *account,
MsgInfo *msginfo);
void compose_reedit (MsgInfo *msginfo);
gtk_widget_destroy(compose->window);
return FALSE;
- case MATCHACTION_BOUNCE:
+ case MATCHACTION_REDIRECT:
account = account_find_from_id(action->account_id);
- compose = compose_bounce(account, info);
+ compose = compose_redirect(account, info);
if (compose->account->protocol == A_NNTP)
break;
else
case MATCHACTION_MARK_AS_UNREAD:
case MATCHACTION_FORWARD:
case MATCHACTION_FORWARD_AS_ATTACHMENT:
- case MATCHACTION_BOUNCE:
+ case MATCHACTION_REDIRECT:
return FALSE; /* MsgInfo still valid for message */
default:
return FALSE;
g_snprintf(dest, destlen, "%s", command_str);
return dest;
- case MATCHACTION_BOUNCE:
+ case MATCHACTION_REDIRECT:
case MATCHACTION_FORWARD:
case MATCHACTION_FORWARD_AS_ATTACHMENT:
g_snprintf(dest, destlen, "%s %d \"%s\"", command_str, action->account_id, action->destination);
{N_("/_Message/Follow-up and reply to"), NULL, reply_cb, COMPOSE_FOLLOWUP_AND_REPLY_TO, NULL},
{N_("/_Message/Reply to a_ll"), "<shift><control>R", reply_cb, COMPOSE_REPLY_TO_ALL, NULL},
{N_("/_Message/_Forward"), "<control><alt>F", reply_cb, COMPOSE_FORWARD, NULL},
- {N_("/_Message/Bounce"), NULL, reply_cb, COMPOSE_BOUNCE, NULL},
+ {N_("/_Message/Redirect"), NULL, reply_cb, COMPOSE_REDIRECT, NULL},
{N_("/_Message/---"), NULL, NULL, 0, "<Separator>"},
{N_("/_Message/Re-_edit"), NULL, reedit_cb, 0, NULL},
{N_("/_Message/---"), NULL, NULL, 0, "<Separator>"},
{"/Message/Reply to all" , M_HAVE_ACCOUNT|M_SINGLE_TARGET_EXIST},
{"/Message/Follow-up and reply to", M_HAVE_ACCOUNT|M_SINGLE_TARGET_EXIST|M_NEWS},
{"/Message/Forward" , M_HAVE_ACCOUNT|M_TARGET_EXIST},
- {"/Message/Bounce" , M_HAVE_ACCOUNT|M_SINGLE_TARGET_EXIST},
+ {"/Message/Redirect" , M_HAVE_ACCOUNT|M_SINGLE_TARGET_EXIST},
{"/Message/Re-edit" , M_HAVE_ACCOUNT|M_ALLOW_REEDIT},
{"/Message/Move..." , M_TARGET_EXIST|M_ALLOW_DELETE|M_UNLOCKED},
{"/Message/Copy..." , M_TARGET_EXIST|M_EXEC|M_UNLOCKED},
{MATCHACTION_FORWARD_AS_ATTACHMENT, "forward_as_attachment"},
{MATCHACTION_EXECUTE, "execute"},
{MATCHACTION_COLOR, "color"},
- {MATCHACTION_BOUNCE, "bounce"},
+ {MATCHACTION_REDIRECT, "redirect"},
{MATCHACTION_DELETE_ON_SERVER, "delete_on_server"}
};
MATCHACTION_FORWARD,
MATCHACTION_FORWARD_AS_ATTACHMENT,
MATCHACTION_COLOR,
- MATCHACTION_BOUNCE,
+ MATCHACTION_REDIRECT,
MATCHACTION_DELETE_ON_SERVER,
/* boolean operations */
MATCHERBOOL_OR,
"forward" return MATCHER_FORWARD;
"forward_as_attachment" return MATCHER_FORWARD_AS_ATTACHMENT;
"color" return MATCHER_COLOR;
-"bounce" return MATCHER_BOUNCE;
+"redirect" return MATCHER_REDIRECT;
"delete_on_server" return MATCHER_DELETE_ON_SERVER;
[ \t]+
"\n" return MATCHER_EOL;
%token MATCHER_MARK_AS_READ MATCHER_MARK_AS_UNREAD MATCHER_FORWARD
%token MATCHER_FORWARD_AS_ATTACHMENT MATCHER_EOL MATCHER_STRING
%token MATCHER_OR MATCHER_AND
-%token MATCHER_COLOR MATCHER_SCORE_EQUAL MATCHER_BOUNCE MATCHER_DELETE_ON_SERVER
+%token MATCHER_COLOR MATCHER_SCORE_EQUAL MATCHER_REDIRECT MATCHER_DELETE_ON_SERVER
%token MATCHER_SIZE_GREATER MATCHER_SIZE_SMALLER MATCHER_SIZE_EQUAL
%start file
destination = $3;
action = filteringaction_new(action_type, account_id, destination, 0);
}
-| MATCHER_BOUNCE MATCHER_INTEGER MATCHER_STRING
+| MATCHER_REDIRECT MATCHER_INTEGER MATCHER_STRING
{
gchar * destination = NULL;
gint action_type = 0;
gint account_id = 0;
- action_type = MATCHACTION_BOUNCE;
+ action_type = MATCHACTION_REDIRECT;
account_id = atoi($2);
destination = $3;
action = filteringaction_new(action_type, account_id, destination, 0);
GtkWidget *checkbtn_quote;
GtkWidget *checkbtn_forward_as_attachment;
- GtkWidget *checkbtn_bounce_keep_from;
+ GtkWidget *checkbtn_redirect_keep_from;
GtkWidget *checkbtn_smart_wrapping;
GtkWidget *checkbtn_block_cursor;
GtkWidget *checkbtn_reply_with_quote;
{"forward_as_attachment", "FALSE", &prefs_common.forward_as_attachment,
P_BOOL, &compose.checkbtn_forward_as_attachment,
prefs_set_data_from_toggle, prefs_set_toggle},
- {"bounce_keep_from", "FALSE",
- &prefs_common.bounce_keep_from, P_BOOL,
- &compose.checkbtn_bounce_keep_from,
+ {"redirect_keep_from", "FALSE",
+ &prefs_common.redirect_keep_from, P_BOOL,
+ &compose.checkbtn_redirect_keep_from,
prefs_set_data_from_toggle, prefs_set_toggle},
{"undo_level", "50", &prefs_common.undolevels, P_INT,
&compose.spinbtn_undolevel,
GtkWidget *frame_reply;
GtkWidget *checkbtn_quote;
GtkWidget *checkbtn_forward_as_attachment;
- GtkWidget *checkbtn_bounce_keep_from;
+ GtkWidget *checkbtn_redirect_keep_from;
GtkWidget *checkbtn_smart_wrapping;
GtkWidget *checkbtn_block_cursor;
GtkWidget *frame_msgwrap;
PACK_CHECK_BUTTON (hbox5, checkbtn_block_cursor,
_("Block cursor"));
- PACK_CHECK_BUTTON (vbox2, checkbtn_bounce_keep_from,
- _("Keep the original 'From' header when bouncing"));
+ PACK_CHECK_BUTTON (vbox2, checkbtn_redirect_keep_from,
+ _("Keep the original 'From' header when redirecting"));
hbox_undolevel = gtk_hbox_new (FALSE, 8);
gtk_widget_show (hbox_undolevel);
compose.checkbtn_forward_as_attachment =
checkbtn_forward_as_attachment;
- compose.checkbtn_bounce_keep_from =
- checkbtn_bounce_keep_from;
+ compose.checkbtn_redirect_keep_from =
+ checkbtn_redirect_keep_from;
compose.checkbtn_smart_wrapping =
checkbtn_smart_wrapping;
compose.checkbtn_block_cursor =
gchar *fw_quotemark;
gchar *fw_quotefmt;
gboolean forward_as_attachment;
- gboolean bounce_keep_from;
+ gboolean redirect_keep_from;
gboolean smart_wrapping;
gboolean block_cursor;
gchar *quote_chars;
ACTION_MARK_AS_UNREAD = 6,
ACTION_FORWARD = 7,
ACTION_FORWARD_AS_ATTACHMENT = 8,
- ACTION_BOUNCE = 9,
+ ACTION_REDIRECT = 9,
ACTION_EXECUTE = 10,
ACTION_COLOR = 11,
ACTION_DELETE_ON_SERVER = 12,
return MATCHACTION_FORWARD;
case ACTION_FORWARD_AS_ATTACHMENT:
return MATCHACTION_FORWARD_AS_ATTACHMENT;
- case ACTION_BOUNCE:
- return MATCHACTION_BOUNCE;
+ case ACTION_REDIRECT:
+ return MATCHACTION_REDIRECT;
case ACTION_EXECUTE:
return MATCHACTION_EXECUTE;
case ACTION_COLOR:
N_("Mark as unread"),
N_("Forward"),
N_("Forward as attachment"),
- N_("Bounce"),
+ N_("Redirect"),
N_("Execute"),
N_("Color"),
N_("Delete on Server")
case ACTION_COPY:
case ACTION_FORWARD:
case ACTION_FORWARD_AS_ATTACHMENT:
- case ACTION_BOUNCE:
+ case ACTION_REDIRECT:
case ACTION_EXECUTE:
destination = gtk_entry_get_text(GTK_ENTRY(filtering.dest_entry));
if (*destination == '\0') {
gtk_list_select_item(GTK_LIST(filtering.account_list),
list_id);
break;
- case MATCHACTION_BOUNCE:
+ case MATCHACTION_REDIRECT:
list_id = get_list_id_from_account_id(action->account_id);
gtk_list_select_item(GTK_LIST(filtering.action_list),
- ACTION_BOUNCE);
+ ACTION_REDIRECT);
gtk_list_select_item(GTK_LIST(filtering.account_list),
list_id);
break;
gtk_widget_hide(filtering.color_optmenu);
gtk_widget_hide(filtering.color_label);
break;
- case ACTION_BOUNCE:
+ case ACTION_REDIRECT:
gtk_widget_set_sensitive(filtering.account_combo, TRUE);
gtk_widget_show(filtering.dest_entry);
gtk_widget_set_sensitive(filtering.dest_entry, TRUE);
{N_("/Follow-up and reply to"), NULL, summary_reply_cb, COMPOSE_FOLLOWUP_AND_REPLY_TO, NULL},
{N_("/Reply to a_ll"), NULL, summary_reply_cb, COMPOSE_REPLY_TO_ALL, NULL},
{N_("/_Forward"), NULL, summary_reply_cb, COMPOSE_FORWARD, NULL},
- {N_("/Bounce"), NULL, summary_reply_cb, COMPOSE_BOUNCE, NULL},
+ {N_("/Redirect"), NULL, summary_reply_cb, COMPOSE_REDIRECT, NULL},
{N_("/---"), NULL, NULL, 0, "<Separator>"},
{N_("/Re-_edit"), NULL, summary_reedit, 0, NULL},
{N_("/---"), NULL, NULL, 0, "<Separator>"},
menu_set_sensitive(ifactory, "/Reply to sender", sens);
menu_set_sensitive(ifactory, "/Reply to all", sens);
menu_set_sensitive(ifactory, "/Forward", TRUE);
- menu_set_sensitive(ifactory, "/Bounce", TRUE);
+ menu_set_sensitive(ifactory, "/Redirect", TRUE);
menu_set_sensitive(ifactory, "/Add sender to address book", sens);
menu_set_sensitive(ifactory, "/Create filter rule", sens);
g_slist_free(msginfo_list);
}
break;
- case COMPOSE_BOUNCE:
- compose_bounce(NULL, msginfo);
+ case COMPOSE_REDIRECT:
+ compose_redirect(NULL, msginfo);
break;
default:
g_warning("summary_reply_cb(): invalid action: %d\n", mode);