From: Pascal Obry <pascal.obry@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH 2/2] New send-email option smtpserveroptions.
Date: Sat, 04 Sep 2010 18:39:51 +0200 [thread overview]
Message-ID: <4C827657.3000508@obry.net> (raw)
In-Reply-To: <7v4oe5xyxd.fsf@alter.siamese.dyndns.org>
Junio,
>> + --smtp-server-options <int> * Outgoing SMTP server options to use.
>
> Is it really an int?
Oups! Fixed.
>> + unshift (@sendmail_parameters, $smtp_server_options)
>> + if (defined $smtp_server_options);
>> +
>
> I suspect this would not work, unless you are aiming to add just a
> singular $smtp_server_option, as the actual program invocation looks like
> this later in the program:
>
> } elsif ($smtp_server =~ m#^/#) {
> my $pid = open my $sm, '|-';
> defined $pid or die $!;
> if (!$pid) {
> exec($smtp_server, @sendmail_parameters) or die $!;
> }
> print $sm "$header\n$message";
>
> Somebody in the code before this unshift needs to split the single string
> in $smtp_server_options into multiple parameters, or better yet, it needs
> to accept more than one --smtp-server-option=foo --smtp-server-option=bar
> and accumulate them in @smtp_server_options.
For sure this is above my expertise in Perl. As I said I have never
worked with Perl. If someone gives me some pointers I can give it a try
otherwise I surrender :)
Pascal.
--
--|------------------------------------------------------
--| Pascal Obry Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--| http://www.obry.net - http://v2p.fr.eu.org
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver keys.gnupg.net --recv-key F949BD3B
next prev parent reply other threads:[~2010-09-04 16:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-04 16:06 [PATCH 0/2] Add support for SMTP server options Pascal Obry
2010-09-04 16:06 ` [PATCH 1/2] Minor indentation fix Pascal Obry
2010-09-04 16:06 ` [PATCH 2/2] New send-email option smtpserveroptions Pascal Obry
2010-09-04 16:21 ` Junio C Hamano
2010-09-04 16:39 ` Pascal Obry [this message]
2010-09-04 17:57 ` Ævar Arnfjörð Bjarmason
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C827657.3000508@obry.net \
--to=pascal.obry@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=pascal@obry.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.