Methods
Included Modules
Private Instance methods
get_status( tag )
     # File lib/action_mailer/vendor/tmail/port.rb, line 212
212:     def get_status( tag )
213:       File.foreach(@filename) {|line|
214:         return false if line.strip.empty?
215:         if m = /\AX-TMail-Status:/i.match(line)
216:           return m.post_match.strip.include?(tag[0])
217:         end
218:       }
219:       false
220:     end
set_status( tag, flag )
     # File lib/action_mailer/vendor/tmail/port.rb, line 176
176:     def set_status( tag, flag )
177:       begin
178:         tmpfile = @filename + '.tmailtmp.' + $$.to_s
179:         File.open(tmpfile, 'w') {|f|
180:           write_status f, tag, flag
181:         }
182:         File.unlink @filename
183:         File.link tmpfile, @filename
184:       ensure
185:         File.unlink tmpfile
186:       end
187:     end
write_status( f, tag, flag )
     # File lib/action_mailer/vendor/tmail/port.rb, line 189
189:     def write_status( f, tag, flag )
190:       stat = ''
191:       File.open(@filename) {|r|
192:         while line = r.gets
193:           if line.strip.empty?
194:             break
195:           elsif m = /\AX-TMail-Status:/i.match(line)
196:             stat = m.post_match.strip
197:           else
198:             f.print line
199:           end
200:         end
201: 
202:         s = procinfostr(stat, tag, flag)
203:         f.puts 'X-TMail-Status: ' + s unless s.empty?
204:         f.puts
205: 
206:         while s = r.read(2048)
207:           f.write s
208:         end
209:       }
210:     end