Ruby and NNTP attachments

Ask a Question related to Ruby, Design and Development.

  1. #1

    Default Ruby and NNTP attachments

    I've been playing with NNTP a day or two.

    The lib by Jeff Heard and Ward Wouts seems to work fine
    for me, but I'm clueless about attachments.

    What's the deal? Does Usenet universally know MIME
    nowadays, or do we still do uuencoding?

    Either way, how do I make it work? Do I have to worry
    about a max size?

    Thanks for any guidance.

    Hal


    Hal Fulton Guest

  2. Similar Questions and Discussions

    1. NNTP component
      Do you know any NNTP browsers components for ASP?
    2. CDOSYS NNTP
      Is it possible to send/receive nntp messages via CDOSYS without a 3rd party news component? The NNTP links I have found appear to be related to MS...
    3. imap_open and NNTP
      I'm trying to use imap_open to get news from a server that requires a user name and password. I'm using $nntp =...
    4. Best NNTP lib?
      Hello, all. I think I've heard of at least four NNTP libraries in Ruby -- two in the RAA, and (I think) another two not therein. I just want...
    5. [ANN] ruby-freedb, ruby-serialport, ruby-mp3info moved to Rubyforge
      http://ruby-freedb.rubyforge.org/ http://ruby-serialport.rubyforge.org/ http://ruby-mp3info.rubyforge.org/ bye! --...
  3. #2

    Default Re: Ruby and NNTP attachments


    "Hal Fulton" <hal9000@hypermetrics.com> wrote:
    > I've been playing with NNTP a day or two.
    >
    > The lib by Jeff Heard and Ward Wouts seems to work fine
    (A port from Python, supporting:
    [url]http://www.faqs.org/rfcs/rfc977.html[/url] )


    This (from nazgul):
    [url]http://bsd.org.yu/~psy_eye/dwn/nntp.rb[/url]

    supports rfc977 and started support for NNTP extensions (?):
    [url]http://www.faqs.org/rfcs/rfc2980.html[/url]

    > ... but I'm clueless about attachments.
    Is there a club ?

    > What's the deal? Does Usenet universally know MIME
    > nowadays, or do we still do uuencoding?
    My impression is that MIME is forcing its way in,
    rather than becoming accepted.

    > Either way, how do I make it work?
    I found this helpful:
    [url]http://pages.prodigy.net/michael_santovec/decode.htm[/url]

    which suggests that attachment is a concept. It's
    really part of the message body.

    So, uuencoded attachments are a begin/end block.

    How does one uuencode ?

    A language which provides support would be most
    helpful. One such could be Ruby ([url]www.ruby-lang.org[/url]).

    Array#pack "u"
    String#unpack "u"

    ** (I tried not to look surprised:)

    (un)pack also seems to provide:

    "M" Quoted printable, MIME encoding (see RFC2045)
    "m" Base64 encoded string

    ** (Again, I tried not to ... :)

    > Do I have to worry about a max size?
    >
    Lots of people don't worry, but I saw 50K
    mentioned as a 'pain threshold' at one site.

    > Thanks for any guidance.
    >
    > Hal
    >
    >
    A picture of Usenet
    [url]http://www.dsv.su.se/~jpalme/e-mail-book/usenet-news.html[/url]


    daz



    daz Guest

  4. #3

    Default Re: Ruby and NNTP attachments

    > -----Original Message-----
    > From: Hal Fulton [mailto:hal9000@hypermetrics.com]
    > Sent: Saturday, September 13, 2003 4:17 AM
    > To: ruby-talk ML
    > Subject: Ruby and NNTP attachments
    >
    >
    > I've been playing with NNTP a day or two.
    >
    > The lib by Jeff Heard and Ward Wouts seems to work fine
    > for me, but I'm clueless about attachments.
    >
    > What's the deal? Does Usenet universally know MIME
    > nowadays, or do we still do uuencoding?
    >
    > Either way, how do I make it work? Do I have to worry
    > about a max size?


    I've seen less and less uuencoding over the years, but it's still around.
    Something I see a lot of lately in the binary newsgroups is "yenc"
    ([url]http://www.yenc.org[/url]). As a counterpoint, check out
    [url]http://www.exit109.com/~jeremy/news/yenc.html[/url], but I don't think jeremy's doing
    much more than tilting at windmills, frankly.

    As for size, one accepted "standard" size I see is to break up your posts into
    roughly 472500 to 315000 bytes per segment, "for best propagation".
    ([url]http://www.faqs.org/faqs/music/mp3/newsgroups-faq/[/url] , section 4.13) Your goal
    may not BE propogation, so that argument may not be relevant.


    Mike Campbell Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139