--- mutt-1.5.9/send.c 2005-02-03 13:47:53.000000000 -0500 +++ mutt-1.5.9-pipercpt/send.c 2005-04-13 19:15:46.936548523 -0400 @@ -1037,6 +1037,36 @@ return ci_send_message (SENDRESEND, msg, NULL, ctx, cur); } + +void +mutt_pipe_rcpt( HEADER *msg) +{ + pid_t pid; + + pid = fork(); + if (pid == 0) + { + char *args[10]; + int i; + ADDRESS *a; + + args[0] = "addrcpt.sh"; + i = 1; + a = (msg->env)->to; + while ((i < 9) && (a != NULL)) + { + args[i] = (a->mailbox); + i++; + a = a->next; + } + args[i] = NULL; + execvp("/home/andrew/bin/addrcpt.sh", args); + _exit(-1); + } /* if */ + if (pid > 0) wait4(pid, NULL, 0, NULL); +} + + int ci_send_message (int flags, /* send mode */ HEADER *msg, /* template to use for new message */ @@ -1227,6 +1257,7 @@ /* change settings based upon recipients */ mutt_message_hook (NULL, msg, M_SENDHOOK); + mutt_pipe_rcpt (msg); /* * Unset the replied flag from the message we are composing since it is