{"thread":{"id":"24971","subject":"smtp server on windows","startedAt":"2010-09-04T14:03:12Z","lastAt":"2010-09-04T15:15:29Z","messageCount":3,"participants":["Pascal Obry","Ævar Arnfjörð Bjarmason"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"149839","messageId":"4C8251A0.1020809@obry.net","threadId":"24971","inReplyTo":null,"subject":"smtp server on windows","fromName":"Pascal Obry","fromEmail":"pascal.obry@gmail.com","sentAt":"2010-09-04T14:03:12Z","receivedAt":"2010-09-04T14:03:12Z","isPatch":false,"sender":{"key":"pascal@obry.net","avatar":"https://avatars.githubusercontent.com/u/467069?v=4"},"body":"\nHi there,\n\nOne simple SMTP server on Windows (using Cygwin) is msmtp.\n\nI'd like to use two different SMTP accounts depending on the repository\nI'm working (this is to get the proper identify on the from header).\n\nI have two accounts configured and working in my ~/.msmtprc named gmail\nand wanadoo.\n\nI have on my .git/config to send e-mail (and this is working):\n\n[sendemail]\n        smtpserver = /usr/sbin/msmtp\n\nThis is using the default account as specified in my .msmtprc. I want to\nuse a specific account (say gmail) for this repository, I tried:\n\n[sendemail]\n        smtpserver = /usr/sbin/msmtp --account=gmail\n\nbut this fails as smtpserver is expecting a simple executable. Is there\na way to pass some parameters to an smtpserver specified on a Git\nconfiguration?\n\nThanks.\n\nPascal.\n\n-- \n\n--|------------------------------------------------------\n--| Pascal Obry                           Team-Ada Member\n--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE\n--|------------------------------------------------------\n--|    http://www.obry.net  -  http://v2p.fr.eu.org\n--| \"The best way to travel is by means of imagination\"\n--|\n--| gpg --keyserver keys.gnupg.net --recv-key F949BD3B\n"},{"id":"149842","messageId":"AANLkTi=5f3+g9HrssNKj99PHr_2ymxGWmM=NjHwc94j2@mail.gmail.com","threadId":"24971","inReplyTo":"4C8251A0.1020809@obry.net","subject":"Re: smtp server on windows","fromName":"Ævar Arnfjörð Bjarmason","fromEmail":"avarab@gmail.com","sentAt":"2010-09-04T14:24:46Z","receivedAt":"2010-09-04T14:24:46Z","isPatch":false,"sender":{"key":"avarab@gmail.com","avatar":"https://avatars.githubusercontent.com/u/45301?v=4"},"body":"On Sat, Sep 4, 2010 at 14:03, Pascal Obry <pascal.obry@gmail.com> wrote:\n\n> This is using the default account as specified in my .msmtprc. I want to\n> use a specific account (say gmail) for this repository, I tried:\n>\n> [sendemail]\n>        smtpserver = /usr/sbin/msmtp --account=gmail\n>\n> but this fails as smtpserver is expecting a simple executable. Is there\n> a way to pass some parameters to an smtpserver specified on a Git\n> configuration?\n\nNo, but you could modify this bit in git-send-email.perl:\n\n    } elsif ($smtp_server =~ m#^/#) {\n        my $pid = open my $sm, '|-';\n        defined $pid or die $!;\n\nOr, to make it work right now: just make a wrapper script.\n"},{"id":"149845","messageId":"4C826291.6080606@obry.net","threadId":"24971","inReplyTo":"AANLkTi=5f3+g9HrssNKj99PHr_2ymxGWmM=NjHwc94j2@mail.gmail.com","subject":"Re: smtp server on windows","fromName":"Pascal Obry","fromEmail":"pascal.obry@gmail.com","sentAt":"2010-09-04T15:15:29Z","receivedAt":"2010-09-04T15:15:29Z","isPatch":false,"sender":{"key":"pascal@obry.net","avatar":"https://avatars.githubusercontent.com/u/467069?v=4"},"body":"Le 04/09/2010 16:24, Ævar Arnfjörð Bjarmason a écrit :\n> No, but you could modify this bit in git-send-email.perl:\n> \n>     } elsif ($smtp_server =~ m#^/#) {\n>         my $pid = open my $sm, '|-';\n>         defined $pid or die $!;\n\nOk, thanks for the quick answer and the pointer. I have zero knowledge\nin Perl so I probably won't be able to do that. I'll see...\n\n> Or, to make it work right now: just make a wrapper script.\n\nRight, I wanted to avoid that.\n\nPascal.\n\n-- \n\n--|------------------------------------------------------\n--| Pascal Obry                           Team-Ada Member\n--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE\n--|------------------------------------------------------\n--|    http://www.obry.net  -  http://v2p.fr.eu.org\n--| \"The best way to travel is by means of imagination\"\n--|\n--| gpg --keyserver keys.gnupg.net --recv-key F949BD3B\n"}]}