2007-09-29:
[14:18] <omer> hi[14:29] <zumbrunn> hi omer[14:33] <omer> howryou[14:34] <zumbrunn> fine :-)[14:37] <omer> weryou?[14:38] <zumbrunn> "weryou"?[14:38] <omer> where are you from[14:39] <zumbrunn> http://zumbrunn.com/[16:47] <technomancy> i'm using "mailer = new Mail;" in my helma app to send mail. is that different from the mail features documented at http://helma.zumbrunn.net/reference/helma/Mail.html?[16:47] <technomancy> it seems to not support authentication[16:50] <zumbrunn> helma.Mail was written to mirror/re-implement the existing built-in Java-based Mail functionality as a Javascript based library[16:51] <zumbrunn> so, it originally should have been identical[16:51] <zumbrunn> if it wasn't, it basically was/is a bug[16:52] <zumbrunn> but since helma.Mail was intended as the replacement it's possible that improvements only went into helma.Mail[16:52] <zumbrunn> so, in that sense there could be differences now[16:52] <technomancy> i suspect that is the case[16:53] <zumbrunn> the built-in global.Mail should be considered deprecated[16:54] <technomancy> that's what i'm using now; i should switch i guess[16:54] <zumbrunn> certainly, if you want the functionality that was added to helma.Mail, yes[16:55] <technomancy> ugh... "Cannot find function Mail."[16:56] <zumbrunn> huh?[16:56] <technomancy> trying: mailer = helma.Mail('mail.server.org', port);[16:56] <technomancy> do i have to load up a required lib first or something?[16:57] <zumbrunn> I'm not using helma.Mail myself either yet :-)[16:57] <zumbrunn> maybe it was written to be used as follows...[16:57] <zumbrunn> global.Mail = new helma.Mail();[16:57] <zumbrunn> some of the helma lib modules work that way[16:58] <technomancy> that gets me: org.mozilla.javascript.Undefined@2798e7 is not a function, it is org.mozilla.javascript.Undefined[17:02] <technomancy> there don't seem to be any working examples[17:02] <technomancy> i guess i'll just have to disable email sending[17:02] <technomancy> the old deprecated method works great, but it doesn't support smtp auth. =\[17:04] <zumbrunn> mailer = helma.Mail('mail.server.org', port); works for me[17:04] <zumbrunn> where exactly does it break for you[17:05] <technomancy> it breaks in the shell or in my contact.hac file[17:05] <technomancy> basically anywhere i try it[17:05] <zumbrunn> that one line alone gives you an error?[17:05] <technomancy> yeah[17:05] <zumbrunn> works for me[17:05] <technomancy> TypeError: Cannot find function Mail.[17:05] <technomancy> works in the shell too?[17:05] <zumbrunn> yes[17:06] <technomancy> ok... obviously my setup is just screwed then[17:06] <technomancy> at least i know what the right way to do it would be in theory...[17:06] <technomancy> but i don't have time to deal with it now... thanks anyway.[17:06] <zumbrunn> how are you including the helma.Mail repository?[17:06] <zumbrunn> app.addRepository('helma/Mail.js') ?[17:06] <zumbrunn> ehm...[17:06] <zumbrunn> app.addRepository('modules/helma/Mail.js')[17:07] <zumbrunn> ?[17:07] <technomancy> i thought i had that, but it might be missing[17:07] <technomancy> where's that supposed to go again?[17:07] <zumbrunn> as a first test, in the shell would work[17:08] <technomancy> "Repository path does not exist" for me[17:08] <technomancy> oh, wait[17:08] <zumbrunn> just has to be called once before you try to use it[17:08] <technomancy> yeah, the second one works[17:08] <technomancy> cool[17:08] <technomancy> you add that in apps.properties?[17:09] <technomancy> by convention, i mean[17:09] <zumbrunn> you could add it there as well, yes, but... it's a matter of taste...[17:10] <technomancy> i assumed since i had it loaded since the old-style mail worked... guess not.[17:10] <zumbrunn> if it's "just a dependency" it might be better to include it via the code that requires it[17:10] <zumbrunn> and not through the configuration of the app[17:11] <technomancy> in contact.hac?[17:11] <technomancy> it's ok to add the repository over and over?[17:11] <zumbrunn> yes[17:11] <technomancy> cool.[17:11] <technomancy> didn't work in app.properties, so i'll put it there[17:11] <zumbrunn> (it only gets added once)[17:12] <technomancy> whew! well that didn't give me an error.[17:12] <technomancy> now just need to wait for the mail to come through[17:12] <zumbrunn> oh, that would be in *apps.properties*, not app.properties[17:13] <zumbrunn> (I know that's confusing)[17:13] <technomancy> ah, right. actually i think that's what i tried[17:13] <zumbrunn> then it should work for sure[17:13] <zumbrunn> afk for a sec[17:14] <technomancy> thanks for your help[18:06] <technomancy> wish i had more time to learn helma[18:07] <technomancy> but i ported my blog over to it and then got a new job, so i haven't really gotten good at it yet...
In the channel now:
Logs by date: