# feature needed imap-send pass as cli switch

2 messages from 2009-01-28 to 2009-01-28. Participants: Caleb Cushing, David Aguilar.
Thread: https://gitlist.dev/t/17408

## Caleb Cushing, 2009-01-28 07:18

Subject: feature needed imap-send pass as cli switch
Message-ID: <81bfc67a0901272318i707b66a0ja20f97df6fe95c73@mail.gmail.com>
URL: https://gitlist.dev/e/81bfc67a0901272318i707b66a0ja20f97df6fe95c73%40mail.gmail.com

```
I tend to have my .gitconfig shared on github with a bunch of other
config files and this has been ok, until submitting a patch here I
needed to use imap-send, and the only way I see in the documentation
is to put my email password in .gitconfig, obviously I can't push this
up to my remote as I usually do. I'd like to see an option to pass the
password on the cli, either as an input prompt or as just an argument
to an option, or both. I think storing it in the config file is a
security risk, storing passwords in plaintext is just bad practice.

if it's already possible could someone share how with me? and perhaps
patch the documentation to include how.
-- 
Caleb Cushing

http://xenoterracide.blogspot.com

```

## David Aguilar, 2009-01-28 08:22

Subject: Re: feature needed imap-send pass as cli switch
Message-ID: <402731c90901280022y7a2520bbx5454e523b852a5e8@mail.gmail.com>
URL: https://gitlist.dev/e/402731c90901280022y7a2520bbx5454e523b852a5e8%40mail.gmail.com
In-Reply-To: <81bfc67a0901272318i707b66a0ja20f97df6fe95c73@mail.gmail.com>

```
On Tue, Jan 27, 2009 at 11:18 PM, Caleb Cushing <xenoterracide@gmail.com> wrote:
> I tend to have my .gitconfig shared on github with a bunch of other
> config files and this has been ok, until submitting a patch here I
> needed to use imap-send, and the only way I see in the documentation

Are you sending patches through gmail?  If so, check out:

http://git.or.cz/gitwiki/GitTips#head-a015948617d9becbdc9836776f96ad244ba87cb8

You can add .msmtprc to your .gitignore and keep it chmod 600.

Sure, it's cheating -- instead of keeping the data in .gitconfig we're
now keeping it in .mstmprc, but maybe it's a suitable workaround?



> is to put my email password in .gitconfig, obviously I can't push this
> up to my remote as I usually do. I'd like to see an option to pass the
> password on the cli, either as an input prompt or as just an argument
> to an option, or both. I think storing it in the config file is a
> security risk, storing passwords in plaintext is just bad practice.
>
> if it's already possible could someone share how with me? and perhaps
> patch the documentation to include how.
> --
> Caleb Cushing
>
> http://xenoterracide.blogspot.com
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>



-- 
    David

```
