[Koha-bugs] [Bug 12040] New: Add STMP authentication parameters to runreports.pl

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Apr 7 17:36:23 CEST 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12040

            Bug ID: 12040
           Summary: Add STMP authentication parameters to runreports.pl
 Change sponsored?: ---
           Product: Koha
           Version: 3.14
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Reports
          Assignee: gmcharlt at gmail.com
          Reporter: cnighswonger at foundations.edu
        QA Contact: testopia at bugs.koha-community.org

Created attachment 26872
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=26872&action=edit
Patch to add auth params

This patch adds three params to allow for SMTP authentication

-username -> Username to pass to the SMTP server for authentication

-password -> Password to pass to the SMTP server for authentication

-method   -> Method is the type of authentication. Ie. LOGIN, DIGEST-MD5, etc.

See the misc/cronjobs/CONFIGURE.gmail for an example of the use of these
params.

I'm not quite sure how to approach constructing an automated test for this as
any test will require a working SMTP account on a server requiring
authentication.

As for testing manually using a Gmail account:

1. Set up your sendmail as shown in misc/cronjobs/CONFIGURE.gmail
2. Before applying this patch, run misc/cronjobs/runreports.pl on your favorite
report including the proper email parameters against your gmail account.
3. Note the failure message stating the authentication requirement.
4. Apply this patch, and return the script including the additional parameters
and specifying "LOGIN" for the method.
5. Note the successful send.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list