piping messages to external scripts
- To: mutt-users@xxxxxxxx
- Subject: piping messages to external scripts
- From: Culley Harrelson <harrelson@xxxxxxxxx>
- Date: Wed, 19 Mar 2008 14:22:43 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:date:from:to:subject:message-id:mime-version:content-type:content-disposition:user-agent; bh=ZqzTKdtVGaYWw42BnUlXkJ1Yx52y80WooyKlBf27OIE=; b=Js+c5/6lIxF5ymg4ZfAAgx3OhFJVZO/KGHvAhm5Cs4W8cKrdshh7tWqgO1qeBol84eAISMyXmPaSHuWr4quOCNCmDbYcxkT4cT6rKzQDYP7HCuWmgnQRhg6be2LTeUG++i+fqppr4vyNIt4u1Ic98HVFYGxtOqZGLcZw7HUQVCw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=date:from:to:subject:message-id:mime-version:content-type:content-disposition:user-agent; b=AtIH/poxaqbSf7me8W0hQls5BNaHHMXz4bSAZkVojPCp7EFw++UlAA8CkAxWfVcCvTQ1Got2NVUkJQFG8npaqfYYPmtjQmDcpv2lzCH0OTyNxB3/s1ufcaG0LJuhwEbk1kwm7x9bN0H91asLjUtxB2wSzv9NASeZ07ks8wZj6n0=
- List-post: <mailto:mutt-users@mutt.org>
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-users"
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.17 (2007-11-01)
I would like to set customize mutt for my tech support email for my business.
I have a bunch of shell scripts that do things like looking up accounts,
changing account statuses, issuing refunds, looking up payments etc. In
general, the key used for looking up accounts is the email address (though
not necessarily the from address in a given message). So, what I would like
to do is create a program similar to urlview that will parse out all the
email addresses in a message, let you select one and then pipe that email
address into any number of scripts script and view the results. Ideal would
be a second list of scripts to execute, again a la urlview.
I am ready to tackle this problem but when you pipe a message to a script it
looks like a new process is spawned and the new process can't remain in
control of the terminal. Can anyone point me in the right direction to make
this happen?
culley