summaryrefslogtreecommitdiffabout
authorSergey Poznyakoff <gray@gnu.org.ua>2007-10-23 21:04:52 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2007-10-23 21:04:52 (GMT)
commita1dc0f56e3b24e7c042ea90f3ace824f156403c8 (patch) (unidiff)
treeaa1b9f3904a09d1b021ff440aed4d3a15783bc37
parent1181f094e065a5f3b72ca9628e8d779917e5d6bc (diff)
downloadmailutils-a1dc0f56e3b24e7c042ea90f3ace824f156403c8.tar.gz
mailutils-a1dc0f56e3b24e7c042ea90f3ace824f156403c8.tar.bz2
(escape_deadletter): Add missing check.mu-1-2-1-before-new-config
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--mail/escape.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mail/escape.c b/mail/escape.c
index 8675ec8..7733ec5 100644
--- a/mail/escape.c
+++ b/mail/escape.c
@@ -283,27 +283,30 @@ escape_cc (int argc, char **argv, compose_env_t *env)
283 compose_header_set (env, MU_HEADER_CC, *++argv, COMPOSE_SINGLE_LINE); 283 compose_header_set (env, MU_HEADER_CC, *++argv, COMPOSE_SINGLE_LINE);
284 return 0; 284 return 0;
285} 285}
286 286
287/* ~d */ 287/* ~d */
288int 288int
289escape_deadletter (int argc MU_ARG_UNUSED, char **argv MU_ARG_UNUSED, 289escape_deadletter (int argc MU_ARG_UNUSED, char **argv MU_ARG_UNUSED,
290 compose_env_t *env MU_ARG_UNUSED) 290 compose_env_t *env MU_ARG_UNUSED)
291{ 291{
292 FILE *dead = fopen (getenv ("DEAD"), "r"); 292 FILE *dead = fopen (getenv ("DEAD"), "r");
293 int c; 293 int c;
294 294
295 if (dead)
296 {
295 while ((c = fgetc (dead)) != EOF) 297 while ((c = fgetc (dead)) != EOF)
296 fputc (c, ofile); 298 fputc (c, ofile);
297 fclose (dead); 299 fclose (dead);
300 }
298 return 0; 301 return 0;
299} 302}
300 303
301static int 304static int
302run_editor (char *ed, char *arg) 305run_editor (char *ed, char *arg)
303{ 306{
304 char *argv[3]; 307 char *argv[3];
305 308
306 argv[0] = ed; 309 argv[0] = ed;
307 argv[1] = arg; 310 argv[1] = arg;
308 argv[2] = NULL; 311 argv[2] = NULL;
309 return mail_execute (1, 2, argv); 312 return mail_execute (1, 2, argv);

Return to:

Send suggestions and report system problems to the System administrator.