Use mail_find_escape()
Showing
1 changed file
with
5 additions
and
6 deletions
1 | /* GNU Mailutils -- a suite of utilities for electronic mail | 1 | /* GNU Mailutils -- a suite of utilities for electronic mail |
2 | Copyright (C) 1999, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. | 2 | Copyright (C) 1999, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. |
3 | 3 | ||
4 | GNU Mailutils is free software; you can redistribute it and/or modify | 4 | GNU Mailutils is free software; you can redistribute it and/or modify |
5 | it under the terms of the GNU General Public License as published by | 5 | it under the terms of the GNU General Public License as published by |
... | @@ -380,14 +380,13 @@ mail_send0 (compose_env_t * env, int save_to) | ... | @@ -380,14 +380,13 @@ mail_send0 (compose_env_t * env, int save_to) |
380 | 380 | ||
381 | if (argcv_get (buf + 1, "", NULL, &argc, &argv) == 0) | 381 | if (argcv_get (buf + 1, "", NULL, &argc, &argv) == 0) |
382 | { | 382 | { |
383 | struct mail_command_entry entry; | ||
384 | |||
385 | if (argc > 0) | 383 | if (argc > 0) |
386 | { | 384 | { |
387 | entry = util_find_entry (mail_escape_table, argv[0]); | 385 | const struct mail_escape_entry *entry = |
386 | mail_find_escape (argv[0]); | ||
388 | 387 | ||
389 | if (entry.escfunc) | 388 | if (entry) |
390 | status = (*entry.escfunc) (argc, argv, env); | 389 | status = (*entry->escfunc) (argc, argv, env); |
391 | else | 390 | else |
392 | util_error (_("Unknown escape %s"), argv[0]); | 391 | util_error (_("Unknown escape %s"), argv[0]); |
393 | } | 392 | } | ... | ... |
-
Please register or sign in to post a comment