when /^$/: break
when /:/: last = nil
else
- header[last] += line.gsub(/^\s+/, "") if last
+ header[last] += line.chomp.gsub(/^\s+/, "") if last
end
end
header
say "Checking for #@fn..."
@shell_mutex.synchronize { raise Errno::ENOENT, @fn unless @shell.test("-e #@fn").status == 0 }
ensure
- say "Not checking for #@fn any more"
shutup
end
end
if new_header.size != header.size ||
header.any? { |k, v| new_header[k] != v }
- #raise "nhs: #{new_header.size} hs: #{header.size} new: #{new_header.inspect} old: #{header.inspect}"
@selected_type = :user
@headers[:user] = new_header
end
t = @threads[curpos] or return
m = t.latest_message
return if m.nil? # probably won't happen
+ m.load_from_source!
mode = ReplyMode.new m
BufferManager.spawn "Reply to #{m.subj}", mode
end