Etc module in _The Ruby Way_

In The Ruby Way, page 415, there is an interesting module mentionned: the
Etc one which includes things like getpwuid(3) and getpwnam(3).

I can’t seem to find it on the RAA or in the sample code I got from Hal’s
site when he posted the URL (thanks Hal).

Thanks,

···


Ollivier ROBERT -=- Eurocontrol EEC/ITM -=- roberto@eurocontrol.fr
Usenet Canal Historique FreeBSD: The Power to Serve!

Anyone write anything in ruby for interfacing with SMTP – above and beyond
what is built in. I’d like to make my (and Martin Demello’s) silly bbs
program talk to the outside world…

I’d like users to automatically have SMTP mailboxes created by sendmail
when they set up an account, and interface external mail with the systems
internal mail.

Can anyone point me in the right direction?

Thanks,

Mark

Ollivier Robert wrote:

In The Ruby Way, page 415, there is an interesting module mentionned: the
Etc one which includes things like getpwuid(3) and getpwnam(3).

I can’t seem to find it on the RAA or in the sample code I got from Hal’s
site when he posted the URL (thanks Hal).

Thanks,

Ollivier ROBERT -=- Eurocontrol EEC/ITM -=- roberto@eurocontrol.fr
Usenet Canal Historique FreeBSD: The Power to Serve!

It’s part of the standard Ruby distro. You can find the documenation
at:

It’s also in the Nutshell book

Regards,

Dan

···


a = [74, 117, 115, 116, 32, 65, 110, 111, 116, 104, 101, 114, 32, 82]
a.push(117,98, 121, 32, 72, 97, 99, 107, 101, 114)
puts a.pack(“C*”)

In article 3E70AB42.507B5713@qwest.com,

···

Daniel Berger djberge@qwest.com wrote:

It’s part of the standard Ruby distro. You can find the documenation
at:

Doh! Thanks.

Ollivier ROBERT -=- Eurocontrol EEC/ITM -=- roberto@eurocontrol.fr
Usenet Canal Historique FreeBSD: The Power to Serve!

Mark Firestone nedry@mail.bedlambells.com writes:

Anyone write anything in ruby for interfacing with SMTP – above and
beyond what is built in. I’d like to make my (and Martin Demello’s)
silly bbs program talk to the outside world…

I’d like users to automatically have SMTP mailboxes created by
sendmail when they set up an account, and interface external mail
with the systems internal mail.

Can anyone point me in the right direction?

Both RubyMail and TMail can deal with email messages from Ruby
(disclaimer, I wrote RubyMail).

I’m not exactly sure what you mean by your second paragraph, since
SMTP is a network protocol for transferring mail, not a format for
storing it in a mailbox. My guess though is that you’ll have to write
some Ruby code using RubyMail or TMail to get what you want done.

···


matt

Cool. I’m not sure what I meant by my second paragraph either.

I’ll check out RubyMail. Thanks for the advice!

···

At 11:17 16/03/2003 +0900, you wrote:

Mark Firestone nedry@mail.bedlambells.com writes:

Anyone write anything in ruby for interfacing with SMTP – above and
beyond what is built in. I’d like to make my (and Martin Demello’s)
silly bbs program talk to the outside world…

I’d like users to automatically have SMTP mailboxes created by
sendmail when they set up an account, and interface external mail
with the systems internal mail.

Can anyone point me in the right direction?

Both RubyMail and TMail can deal with email messages from Ruby
(disclaimer, I wrote RubyMail).

I’m not exactly sure what you mean by your second paragraph, since
SMTP is a network protocol for transferring mail, not a format for
storing it in a mailbox. My guess though is that you’ll have to write
some Ruby code using RubyMail or TMail to get what you want done.


matt

Can you give us a short description of the differences of these
to libraries?

···

On Sunday, 16 March 2003 at 11:17:56 +0900, Matt Armstrong wrote:

Both RubyMail and TMail can deal with email messages from Ruby
(disclaimer, I wrote RubyMail).


Jim Freeze

The study of non-linear physics is like the study of non-elephant
biology.