FAQ

[PATCH] Add http as a mailer

Bram
May 25, 2008 at 8:58 pm
Attached is a patch that adds 'http' as a mailer.

I added this because I did not want to send the reports from the system on
which the smoke ran.
This mainly because it includes usernames, ip addresses and a company
names.

This could also be useful to persons that are stuck behind a firewall that
does not allow outgoing mail.

My setup: mailrpt.pl -> http request to another server -> send the mail to
daily-build.reports.


Added the following questions to configsmoke.pl:

Which mail facility should be used?
<MIME::Lite|http|mail|mailx|sendmail> [MIME::Lite] $ http
Got [http]

To which address(es) should the report *always* be send?
(comma separated list, *please* do not include perl5-porters!)
[smoke-5.8.x@perl.wizbit.be] $
Got [smoke-5.8.x@perl.wizbit.be]

to which URL should the report be send?
[] $ https://url.of.server
Got [https://url.of.server]

which username should be used to authenticate?
Leave empty if no authetnication is needed
[] $ username
Got [username]

which password should be used to authenticate?
[] $ password
Got [password]

(It doesn't ask for the password if the username is empty)


Output from mailrpt:

mailrpt.pl -c /opt/perl/bin/smokecurrent_config
Found [/opt/perl/perl-5.8.x/mktest.rpt]
[http]
Sending report to https://url.of.server OK


Kind regards,

Bram
reply

Search Discussions

3 responses

  • Abe Timmerman at May 26, 2008 at 9:11 pm

    Bram wrote:
    Attached is a patch that adds 'http' as a mailer.
    Thanks for that!
    I added this because I did not want to send the reports from the system
    on which the smoke ran.
    This mainly because it includes usernames, ip addresses and a company
    names.

    This could also be useful to persons that are stuck behind a firewall
    that does not allow outgoing mail.
    How does this compare to Test::Reporter::HTTPGateway?

    I haven't looked into the matter, so I ask just to get some information.

    The patch looks fine, although I might change some of the configuration item
    names. I don't like the echoing reading of the password, so I'd like to put
    some extra effort into preventing that.

    Thanks again for the interest and work!

    Good luck,

    Abe.
    - --
    ~ _ | "Pinky, are you pondering what I'm pondering?"
    ( ) | Uh, I think so, Brain, but balancing a family and a career ... ooh,
    ~ X | it's all too much for me. (18 Oct 93 - Opportunity Knox)
    / \ |
  • Bram at May 26, 2008 at 10:19 pm

    Quoting Abe Timmerman <abeltje@test-smoke.org>:

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Bram wrote:
    Attached is a patch that adds 'http' as a mailer.
    Thanks for that!
    I added this because I did not want to send the reports from the system
    on which the smoke ran.
    This mainly because it includes usernames, ip addresses and a company
    names.

    This could also be useful to persons that are stuck behind a firewall
    that does not allow outgoing mail.
    How does this compare to Test::Reporter::HTTPGateway?

    I haven't looked into the matter, so I ask just to get some information.
    I wasn't aware of Test::Reporter::HTTPGateway so I'm not entirely sure
    how it compares...


    From a quick look:

    The 'http' mailer posts the report to an URL,

    'Test::Reporter::HTTPGateway' takes a HTTP requests and uses the
    parameters in it to send the email.


    If someone is stuck behind a firewall then they can currently set up
    Test::Reporter::HTTPGateway on another server but they have (I think!)
    no (easy) way of sending the Smoke reports to it.


    It can currently not be used directly by the 'http' mailer.
    (Test::Reporter::HTTPGateway sends it to an address specified in the
    code while the 'http' mailer add parameters for the To, Cc and Bcc)


    Kind regards,

    Bram
  • H.Merijn Brand at May 27, 2008 at 6:15 am

    On Tue, 27 May 2008 00:18:05 +0200, Bram wrote:

    Quoting Abe Timmerman <abeltje@test-smoke.org>:
    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Bram wrote:
    Attached is a patch that adds 'http' as a mailer.
    Thanks for that!
    I added this because I did not want to send the reports from the system
    on which the smoke ran.
    This mainly because it includes usernames, ip addresses and a company
    names.

    This could also be useful to persons that are stuck behind a firewall
    that does not allow outgoing mail.
    How does this compare to Test::Reporter::HTTPGateway?
    This was created in Oslo to receive and forward reports for CPAN
    smokers, not for CORE smokers. Talk to xdg and/or rjbs on #perl-qa on
    IRC to ask if this can be made more general for CORE smoking. I bet
    they are open for it.
    I haven't looked into the matter, so I ask just to get some information.
    I wasn't aware of Test::Reporter::HTTPGateway so I'm not entirely sure
    how it compares...


    From a quick look:

    The 'http' mailer posts the report to an URL,

    'Test::Reporter::HTTPGateway' takes a HTTP requests and uses the
    parameters in it to send the email.


    If someone is stuck behind a firewall then they can currently set up
    Test::Reporter::HTTPGateway on another server but they have (I think!)
    no (easy) way of sending the Smoke reports to it.


    It can currently not be used directly by the 'http' mailer.
    (Test::Reporter::HTTPGateway sends it to an address specified in the
    code while the 'http' mailer add parameters for the To, Cc and Bcc)


    Kind regards,

    Bram



    --
    H.Merijn Brand Amsterdam Perl Mongers (http://amsterdam.pm.org/)
    using & porting perl 5.6.2, 5.8.x, 5.10.x on HP-UX 10.20, 11.00, 11.11,
    & 11.23, SuSE 10.1 & 10.2, AIX 5.2, and Cygwin. http://qa.perl.org
    http://mirrors.develooper.com/hpux/ http://www.test-smoke.org
    http://www.goldmark.org/jeff/stupid-disclaimers/

Related Discussions

Discussion Navigation
viewthread | post