# Issue with ActionMailer that appears to run deep

**URL:** <https://www.ruby-forum.com/t/issue-with-actionmailer-that-appears-to-run-deep/177993>\
**Category:** IronRuby\
**Created:** [October 27, 2009, 6:09pm UTC](https://www.ruby-forum.com/t/issue-with-actionmailer-that-appears-to-run-deep/177993 "2009-10-27T18:09:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![James\_Thompson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b2d939/32.png) [@James\_Thompson](https://www.ruby-forum.com/u/James_Thompson)\
**Post date:** [October 27, 2009, 6:09pm UTC](https://www.ruby-forum.com/t/issue-with-actionmailer-that-appears-to-run-deep/177993/1 "2009-10-27T18:09:13Z")

</div>

I just posted an issue:  
[http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2946](http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2946)

It looks like something is going odd between the UTC method defined in  
TimeOps.cs and the RACC parser. Anyone who understands the internals  
better  
than I want to take a look at the stack trace I attached and tell me if  
I  
may be missing something?

This is blocking my deployment of a Rails app because using ActionMailer  
is  
giving me this.

Thanks!

James Thompson  
Plain Programs  
New Orleans, LA

P: (502) 619.0353  
E: removed\_email\_address@domain.invalid  
W: [www.plainprograms.com](http://www.plainprograms.com)

---

<div class="post-metadata">

**Author:** ![James\_Thompson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b2d939/32.png) [@James\_Thompson](https://www.ruby-forum.com/u/James_Thompson)\
**Post date:** [October 28, 2009, 7:42am UTC](https://www.ruby-forum.com/t/issue-with-actionmailer-that-appears-to-run-deep/177993/2 "2009-10-28T07:42:24Z")

</div>

Itâ€™s a simple bug in the utc implementation. Time.utc  
([class Time - RDoc Documentation](http://www.ruby-doc.org/core/classes/Time.html#M000252)) gets passed in  
a number of arguments which are all ints except for the second one. The  
Time.utc implementation tries to convert all to an int, and fails when  
it gets a string for the second argument. The simple snippet below works  
with MRI but fails with IronRuby.

Time.utc(2000,“jan”,1,20,15,1)

Are you able to build from source as described at  
[http://wiki.github.com/ironruby/ironruby](http://wiki.github.com/ironruby/ironruby)? If so, we can fix this and  
push the patch to github for you to pick up?

If not, you can workaround it by monkey-patching Time.utc with something  
like this:

class Time  
class \<\< self  
@@months = [“jan”, “feb”, “mar”, “apr”, “may”,  
“jun”, “jul”, “aug”, “sep”, “oct”, “nov”, “dec”]  
alias :old\_utc :utc  
def utc(\*args)  
if args.size \>= 2  
if args[1].kind\_of? String  
args[1] = @@months.index(args[1]) + 1  
end  
end  
old\_utc(\*args)  
end  
end  
end

From: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of James Thompson  
Sent: Tuesday, October 27, 2009 10:03 AM  
To: removed\_email\_address@domain.invalid  
Subject: [Ironruby-core] Issue with ActionMailer that appears to run  
deep

I just posted an issue:  
[http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2946](http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2946)

It looks like something is going odd between the UTC method defined in  
TimeOps.cs and the RACC parser. Anyone who understands the internals  
better than I want to take a look at the stack trace I attached and tell  
me if I may be missing something?

This is blocking my deployment of a Rails app because using ActionMailer  
is giving me this.

Thanks!

James Thompson  
Plain Programs  
New Orleans, LA

P: (502) 619.0353  
E: removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
W: [www.plainprograms.com](http://www.plainprograms.com)[http://www.plainprograms.com](http://www.plainprograms.com)

---

<div class="post-metadata">

**Author:** ![James\_Thompson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b2d939/32.png) [@James\_Thompson](https://www.ruby-forum.com/u/James_Thompson)\
**Post date:** [October 28, 2009, 2:00pm UTC](https://www.ruby-forum.com/t/issue-with-actionmailer-that-appears-to-run-deep/177993/3 "2009-10-28T14:00:33Z")

</div>

I’m compiling from source.

Sent from my iPhone

On Oct 28, 2009, at 1:31 AM, Shri B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
