37: def validate
38: valid? @repo_dir, "Could not find repository directory"
39:
40: if @repo_dir
41: @repo = Repository::Repository.new @repo_dir
42:
43:
44: @host = @repo.env_default_value('SMTP Host', @host)
45: @server, @port = @host.split(":") if @host
46:
47: valid? @server, "Invalid server specification given"
48: valid? @port, "Invalid port specification given"
49: valid? @to_addr, "Need to set the 'To' address"
50: valid?((not (@id and @rev)), "You cannot specify an id (-i) AND a revision name (-r)")
51: end
52:
53: return @valid
54: end