X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Wed, 30 Apr 2008 13:26:18 -0400 (EDT)
From: Igor Peshansky <pechtcha@cs.nyu.edu>
Reply-To: cygwin@cygwin.com
To: Gary <cygwin@garydjones.name>
cc: cygwin@cygwin.com
Subject: Re: FW: ssmtp with multiple email accounts
In-Reply-To: <20080430171614.GA2232@mimosa.garydjones.name>
Message-ID: <Pine.GSO.4.63.0804301324090.4190@access1.cims.nyu.edu>
References: <388a57b20804281139t7b39677cu55c64ae60bc026fe@mail.gmail.com>  <20080429140253.GA27238@marvin.optimis.net>  <388a57b20804300037k6d54bddejb76b94ed5874093e@mail.gmail.com>  <20080430171614.GA2232@mimosa.garydjones.name>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Wed, 30 Apr 2008, Gary wrote:

> On Wed, Apr 30, 2008 at 09:37:39AM +0200, cygwin@XXXXXXXXXX.XXXX wrote:

Oops.  I know it's your own address, but still,
<http://cygwin.com/acronyms/#PCYMTNQREAIYR>.

> > >If you are intent on using ssmtp, something along the following (taken
> > >from an old muttrc file) should work:
> > [..]
> > >folder-hook mbox1 \
> > >'set sendmail="/usr/sbin/ssmtp.exe -aufoo@smtp1.host -ap012345"'
> >
> > The ''set sendmail="/usr/sbin/ssmtp.exe -au...'' definitely works.
> > What I couldn't get to work was ''set sendmail="/usr/sbin/ssmtp.exe
> > -C<some config file>'' but I haven't managed to get to the bottom of
> > that yet.
>
> Short version:
>   set sendmail="/usr/bin/ssmtp -C/etc/ssmtp/<config file>"
> works just fine in a folder-hook.
>
> Long version:
> If you are reading this then I solved the problem with the previously
> mentioned "-C" stuff - ssmtp does not seem to allow one to specify
> "~/foo.conf" (for example) as the config file. If you set it to
> -C/etc/ssmtp/foo.conf then everything will be fine and you can happily
> have as many different email accounts and external mailhubs as your
> heart desires and you can maintain the configurations for. I don't
> know if not allowing the config file to be anywhere but /etc/ssmtp is
> a bug, a feature, or a random twist of fate, but it would be nice if
> the maintainer could mention it in the man file (or maybe I just
> missed it when I read it).

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")?
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha@cs.nyu.edu | igor@watson.ibm.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
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

