On Thu, Jan 22, 2004 at 05:37:41AM EST, daniel wrote: > Is there a way to choose between several different From: addresses when > sending a message? Or even to choose a different SMTP server? Well, if what you're looking for is an interactive switch, my selection_box program [1] may be of interest to you, since you may be able to do something like this (totally untested): send-hook . "<exec-command>my_hdr From: `selection_box \"Pick an Addy:\" < my_addys`\n<exec-command>set sendmail='relay_to_smtp `selection_box \"Pick an SMTP server:\" < my_smtp_servers`'\n" ...where my_addys is something like this: user1@xxxxxxxxx user2@xxxxxxxxx user3@xxxxxxxxx ...and relay_to_smtp is some sort of lightweight sendmail replacement that takes as its first argument the SMTP server and as its remaining arguments recipient addys, ...and my_smtp_servers is something like this: mail.myisp.net smtp.myfriendsisp.net anon.smtp.somewhereinpakistan.com Again, the stuff above is totally untested. I wrote the selection_box program with grand plans for having it take over my entire Mutt config, yet I don't have a single use of it in my entire config, after a fairly long time already. (I basically finished testing the thing to make sure it worked properly, and then kinda just forgot all about it.) - Dave BTW - Please do folks a favor and wrap your lines at some reasonable length. Otherwise, it gets a tad messy quoting you. [1] http://www.bigfatdave.com/dave/bin/selection_box.c ...and my original post explaining its usage: http://www.bigfatdave.com/dave/bin/selection_box.txt ...and a precompiled i686 version for glibc 2.3.2: http://www.bigfatdave.com/dave/bin/selection_box -- Uncle Cosmo, why do they call this a word processor? It's simple, Skyler. You've seen what food processors do to food, right? Please visit this link: http://rotter.net/israel
Attachment:
pgpQIrgCaoLOi.pgp
Description: PGP signature