You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@whimsical.apache.org by Craig Russell <ap...@gmail.com> on 2018/02/01 00:56:17 UTC

Re: ECONNREFUSED

Works. 

Needed to add ASF::Mail.configure to main.rb; untaint 'to' address. Looks good.

Thanks,

Craig

> On Jan 31, 2018, at 1:45 PM, Sam Ruby <ru...@intertwingly.net> wrote:
> 
> On Wed, Jan 31, 2018 at 2:16 PM, Craig Russell <ap...@gmail.com> wrote:
>> Hi Sam,
>> 
>> I remember setting this up and knew it was documented. Thanks for that.
>> 
>> But it also fails on whimsy4.apache.org. I've checked in the code so you can try it and see if it has the same problem.
>> 
>> To recreate the problem, go to project/icla, fill the form, choose the vote tab and click the Start the Vote.
> 
> I don't see the following called by the project/icla call.
> 
> ASF::Mail.configure
> 
> See:
> 
> https://whimsy.apache.org/docs/api/ASF/Mail.html
> 
> If this doesn't work, I would suggest that you modify the code in
> tools/testmail.rb to match the code in projects/icla until you can
> reproduce the problem.
> 
>> Thanks,
>> 
>> Craig
> 
> P.S.  I'm on vacation stealing cycles between events.  Don't expect
> quick responses or in-depth debugging until I get back home on Monday.
> 
>>> On Jan 31, 2018, at 10:12 AM, Sam Ruby <ru...@intertwingly.net> wrote:
>>> 
>>> https://github.com/apache/whimsy/blob/master/MACOSX.md#configure-sending-of-mail
>>> 
>>> Does the test script in that section work for you?
>>> 
>>> On Wed, Jan 31, 2018, 10:50 AM Craig Russell <ja...@gmail.com> wrote:
>>> 
>>>> The only difference between what I see in secretary/workbench and
>>>> project/icla is that workbench uses deliver! and icla uses deliver which
>>>> then ... calls deliver!
>>>> 
>>>> What else could be going wrong?
>>>> 
>>>> Craig
>>>> 
>>>>> On Jan 30, 2018, at 6:10 PM, Craig Russell <ja...@gmail.com>
>>>> wrote:
>>>>> 
>>>>> Hi,
>>>>> 
>>>>> I'm sure I have not set up my local environment correctly.
>>>>> 
>>>>> "userEmail": "Craig L Russell <ap...@gmail.com>",
>>>>> "pmcEmail": "private@whimsical.apache.org",
>>>>> "exception": "#<Errno::ECONNREFUSED: Connection refused - connect(2)
>>>> for \"localhost\" port 25>",
>>>>> 
>>>>> This is the code that is running on the server:
>>>>> 
>>>>> # create the email to the pmc
>>>>> mail = Mail.new do
>>>>> to useremail
>>>>> from useremail
>>>>> subject @subject
>>>>> text_part do
>>>>>  body %{#{comment}
>>>>>  Use this link to vote:
>>>>> 
>>>>>  #{link}
>>>>>  }
>>>>> end
>>>>> end
>>>>> mail.deliver
>>>>> 
>>>>> Craig L Russell
>>>>> javadog.clr@gmail.com
>>>>> 1220 University Ave
>>>>> San Jose, CA 95126
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>> 
>>>> Craig L Russell
>>>> javadog.clr@gmail.com
>>>> 1220 University Ave
>>>> San Jose, CA 95126
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>> 
>> Craig L Russell
>> Secretary, Apache Software Foundation
>> clr@apache.org http://db.apache.org/jdo
>> 

Craig L Russell
Secretary, Apache Software Foundation
clr@apache.org http://db.apache.org/jdo