diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2005-08-11 07:29:47 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2005-08-11 07:29:47 +0000 |
commit | b6eecab8082267852b902db726aca3403dcb789f (patch) | |
tree | 1d90eda69561cec94293cb22990a14f1c9691297 | |
parent | 570af4fe08d77f23427cc17fcfa539ad73cb812c (diff) | |
download | mailutils-b6eecab8082267852b902db726aca3403dcb789f.tar.gz mailutils-b6eecab8082267852b902db726aca3403dcb789f.tar.bz2 |
Use mail_find_escape()
-rw-r--r-- | mail/send.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/mail/send.c b/mail/send.c index 3e3240b2d..b73738f7d 100644 --- a/mail/send.c +++ b/mail/send.c @@ -1,5 +1,5 @@ /* GNU Mailutils -- a suite of utilities for electronic mail - Copyright (C) 1999, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. + Copyright (C) 1999, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. GNU Mailutils is free software; you can redistribute it and/or modify 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) if (argcv_get (buf + 1, "", NULL, &argc, &argv) == 0) { - struct mail_command_entry entry; - if (argc > 0) { - entry = util_find_entry (mail_escape_table, argv[0]); + const struct mail_escape_entry *entry = + mail_find_escape (argv[0]); - if (entry.escfunc) - status = (*entry.escfunc) (argc, argv, env); + if (entry) + status = (*entry->escfunc) (argc, argv, env); else util_error (_("Unknown escape %s"), argv[0]); } |