2007-08-23 [wwp] 2.10.0cvs158
[claws.git] / src / action.c
index a3bb7ddb643702d6bc9701d43b204909cbd21bad..24374fb1d844a07bddfc3b5e1885cd0318f28e5d 100644 (file)
@@ -236,10 +236,14 @@ ActionType action_get_type(const gchar *action_str)
                        case 'h':
                                action_type |= ACTION_USER_HIDDEN_STR;
                                break;
+                       case '%':
+                               /* literal '%' */
+                               break;
                        default:
                                action_type = ACTION_ERROR;
                                break;
                        }
+                       p++;
                } else if (p[0] == '|') {
                        if (p[1] == '\0')
                                action_type |= ACTION_PIPE_OUT;
@@ -321,6 +325,10 @@ static gchar *parse_action_cmd(gchar *action, MsgInfo *msginfo,
                                        g_string_append(cmd, user_hidden_str);
                                p++;
                                break;
+                       case '%':
+                               g_string_append_c(cmd, p[1]);
+                               p++;
+                               break;
                        default:
                                g_string_append_c(cmd, p[0]);
                                g_string_append_c(cmd, p[1]);