<<< Date Index >>>     <<< Thread Index >>>

Re: Quest about SMIME and shell



Dear Phil

     Thank you for your help.
     
     We read the documents of mutt again.
     Could we think if we successful configure the
"muttrc" file , mutt will auto add the smime when we
send the mail. And we find this
file:"http://dev.mutt.org/cgi-bin/viewcvs.cgi/mutt/contrib/smime.rc?rev=3.6";
. Does it help for us to configure the smime in the
muttrc? Could  we use this shell-command "cat smime.rc
>> /ect/Muttrc" to add it? If we use the mutt which
config file is default to use? "/ect/Muttrc" or
"~/.muttrc"


Zhan Zhaohua

--- Phil Pennock <mutt-users@xxxxxxxxxxxxxxxxx> wrote:

> On 2006-01-08 at 06:41 -0800, Zhan Zhaohua wrote:
> >      We want use the mutt at out project, and in
> our
> > plan we will use mutt by the shell command line.
> So we
> > want use mutt in a shell script.
> >     We know in the bash shell through change the
> stdin
> > to carry our point.
> >     But we don't find how to add the SMIME at the
> > shell
> 
> [I've moved this reply to mutt-users instead of
> mutt-dev.]
> 
> My understanding of your question is: "How do we
> send SMIME-protected
> email from a shell command-line using mutt?  (We
> understand how to pipe
> the mail in)" -- if my understanding is wrong,
> please correct me.
> 
> * "mutt -e <command>" lets you set any mutt option
> from the
>   command-line; to keep your bash script readable,
> you could build up a
>   list of options in a bash array, if you want to
> set a lot of them.
> * "muff -F <file>" lets you put a number of mutt
> options in a special
>   config file and then use that config file.  Then
> you can decide if
>   your set-up should have a permanent file holding
> the options, or if
>   the shell script should use mktemp to put the
> desired options into a
>   temporary file, which you can tell mutt to use,
> before deleting that
>   file.
> 
> If you want SMIME to "sign", then you'll have
> problems because that
> operation requires access to the private key, which
> means that you'll
> either need a way to pass in the protective
> passphrase or you'll need a
> passphraseless key.  If you just want to send the
> mail encrypted, then
> you'll have fewer problems.
> 
> If you run "man muttrc" and search for "smime_" then
> you'll find all the
> options you can set; look in particular at
> "smime_is_default" and
> "smime_encrypt_command".  Also look at
> contrib/smime.rc in the mutt
> source distribution.
> 
> Hopefully, this is enough information to help you
> get started and let
> you ask a more specific question if you still have
> problems.  If so,
> please do explain more about what you're trying to
> do with SMIME.
> -- 
> I am keeping international relations on a peaceable
> footing.
> You are biding your time before acting.
> He is coddling tyrants.
>  -- Roger BW on topic of verb conjugation
> 



                
__________________________________________ 
Yahoo! DSL ? Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com