ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:69748] [Ruby trunk - Feature #11312] [Open] Add Resolv::DNS::Resource::IN::SPF
       [not found] <redmine.issue-11312.20150626185849@ruby-lang.org>
@ 2015-06-26 18:58 ` postmodern.mod3
  2015-07-01  3:26 ` [ruby-core:69823] [Ruby trunk - Feature #11312] " nagachika00
  1 sibling, 0 replies; 2+ messages in thread
From: postmodern.mod3 @ 2015-06-26 18:58 UTC (permalink / raw)
  To: ruby-core

Issue #11312 has been reported by Hal Brodigan.

----------------------------------------
Feature #11312: Add Resolv::DNS::Resource::IN::SPF
https://bugs.ruby-lang.org/issues/11312

* Author: Hal Brodigan
* Status: Open
* Priority: Normal
* Assignee: 
----------------------------------------
The SPF type record (RFC4408 Section 3.1.1) is quite common now. The resolv library should probably support it. As a workaround I monkey patched in the resource class:

    class Resolv::DNS::Resource::IN::SPF < Resolv::DNS::Resource::IN::TXT
      # resolv.rb doesn't define an SPF resource type.
      TypeValue = 99
      ClassValue = Resolv::DNS::Resource::IN::ClassValue
    
      Resolv::DNS::Resource::ClassHash[[TypeValue, ClassValue]] = self
    end

I could formalize my monkeypatch into an actual patch. I would just need to know whether SPF should be listed in the `ClassInsensitiveTypes` array.



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [ruby-core:69823] [Ruby trunk - Feature #11312] Add Resolv::DNS::Resource::IN::SPF
       [not found] <redmine.issue-11312.20150626185849@ruby-lang.org>
  2015-06-26 18:58 ` [ruby-core:69748] [Ruby trunk - Feature #11312] [Open] Add Resolv::DNS::Resource::IN::SPF postmodern.mod3
@ 2015-07-01  3:26 ` nagachika00
  1 sibling, 0 replies; 2+ messages in thread
From: nagachika00 @ 2015-07-01  3:26 UTC (permalink / raw)
  To: ruby-core

Issue #11312 has been updated by Tomoyuki Chikanaga.

Assignee set to Akira Tanaka

----------------------------------------
Feature #11312: Add Resolv::DNS::Resource::IN::SPF
https://bugs.ruby-lang.org/issues/11312#change-53221

* Author: Hal Brodigan
* Status: Open
* Priority: Normal
* Assignee: Akira Tanaka
----------------------------------------
The SPF type record (RFC4408 Section 3.1.1) is quite common now. The resolv library should probably support it. As a workaround I monkey patched in the resource class:

    class Resolv::DNS::Resource::IN::SPF < Resolv::DNS::Resource::IN::TXT
      # resolv.rb doesn't define an SPF resource type.
      TypeValue = 99
      ClassValue = Resolv::DNS::Resource::IN::ClassValue
    
      Resolv::DNS::Resource::ClassHash[[TypeValue, ClassValue]] = self
    end

I could formalize my monkeypatch into an actual patch. I would just need to know whether SPF should be listed in the `ClassInsensitiveTypes` array.



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-07-01  3:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <redmine.issue-11312.20150626185849@ruby-lang.org>
2015-06-26 18:58 ` [ruby-core:69748] [Ruby trunk - Feature #11312] [Open] Add Resolv::DNS::Resource::IN::SPF postmodern.mod3
2015-07-01  3:26 ` [ruby-core:69823] [Ruby trunk - Feature #11312] " nagachika00

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).