Class Redwood::Source
In: lib/sup/source.rb
Parent: Object

Methods

Attributes

cur_offset  [R] 
id  [RW] 
uri  [R] 

Public Class methods

utility method to read a raw email header from an IO stream and turn it into a hash of key-value pairs. minor special semantics for certain headers.

THIS IS A SPEED-CRITICAL SECTION. Everything you do here will have a significant effect on Sup‘s processing speed of email from ALL sources. Little things like string interpolation, regexp interpolation, += vs <<, all have DRAMATIC effects. BE CAREFUL WHAT YOU DO!

Protected Class methods

Public Instance methods

check should throw a FatalSourceError or an OutOfSyncSourcError if it can detect a problem. it is called when the sup starts up to proactively notify the user of any source problems.

yields successive offsets and labels, starting at cur_offset.

when implementing a source, you can overwrite either each or next. the default each just calls next over and over.

overwrite me if you have a disk incarnation (currently used only for sup-sync-back)

Protected Instance methods

convenience function

[Validate]