aboutsummaryrefslogtreecommitdiff
blob: 2dc8fc97e9e94b4af12f18ed773b391ef45fd74c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# Hotfixes for other classes

# If the INFO block contains multiple colons, @info will be wrong.
class Maildir::Message
  protected
  # Sets dir, unique_name, and info based on the key
  def parse_key(key)
    @dir, filename = key.split(File::SEPARATOR)
    @dir = @dir.to_sym
    @unique_name, @info = filename.split(COLON, 2)
  end
end