This is the mail archive of the
mailing list for the Cygwin project.
Re: FW: ssmtp with multiple email accounts
- From: Igor Peshansky <pechtcha at cs dot nyu dot edu>
- To: Charles Wilson <cygwin at cwilson dot fastmail dot fm>
- Cc: cygwin at cygwin dot com
- Date: Wed, 30 Apr 2008 21:34:50 -0400 (EDT)
- Subject: Re: FW: ssmtp with multiple email accounts
- References: <firstname.lastname@example.org> <20080429140253.GA27238@marvin.optimis.net> <email@example.com> <20080430171614.GA2232@mimosa.garydjones.name> <Pine.GSO.firstname.lastname@example.org> <48191B70.email@example.com>
- Reply-to: cygwin at cygwin dot com
On Wed, 30 Apr 2008, Charles Wilson wrote:
> Igor Peshansky wrote:
> > Could it simply be that mutt does not expand the "~" in the filename when
> > passing the command-line option? Did you try the absolute path (i.e.,
> > "/usr/bin/ssmtp -C/home/user/foo.conf")?
> ssmtp does not attempt any expansion on the argument. If the shell
> doesn't expand it before passing it off to ssmtp, then it doesn't get
> expanded: so "-C~/foo.conf" would cause ssmtp to try to open a file
> named "foo.conf" in the subdirectory "~" of the current directory.
Yes, that's exactly what I meant. Notice that I said "*mutt* does not
expand the ~" -- assuming mutt uses execv. Even if mutt uses "/bin/sh -c"
on the command, the "~" inside the argument does not get expanded by
shells, and the one in "-C~/foo.conf" is definitely inside. Looking at
the man page, ssmtp requires that there be no space between "-C" and the
filename, so looks like the OP is stuck with absolute paths.
|\ _,,,---,,_ firstname.lastname@example.org | email@example.com
ZZZzz /,`.-'`' -. ;-;;,_ Igor Peshansky, Ph.D. (name changed!)
|,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"That which is hateful to you, do not do to your neighbor. That is the whole
Torah; the rest is commentary. Go and study it." -- Rabbi Hillel
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html