def maillist_parse(file)
      maillist = []

      # if file doesn't exist, just return empty array, otherwise, parse for emails
      if File.exist?(file)
        File.readlines(file).each do |line|
          if index = (line =~ /\#/)
            # line contains some kind of comment
            # check if there is any useful info, ignore it not
            unless line[0, index].strip.empty?
              maillist << Origen::Users::User.new(line[0, index].strip).email
            end
          else
            # if line is not empty, generate an email
            unless line.strip.empty?
              maillist << Origen::Users::User.new(line.strip).email
            end
          end
        end
      end
      maillist
    end
def maillist_parse(file)
      maillist = []

      # if file doesn't exist, just return empty array, otherwise, parse for emails
      if File.exist?(file)
        File.readlines(file).each do |line|
          if index = (line =~ /\#/)
            # line contains some kind of comment
            # check if there is any useful info, ignore it not
            unless line[0, index].strip.empty?
              maillist << Origen::Users::User.new(line[0, index].strip).email
            end
          else
            # if line is not empty, generate an email
            unless line.strip.empty?
              maillist << Origen::Users::User.new(line.strip).email
            end
          end
        end
      end
      maillist
    end
def maillist_parse ( file ) maillist = [ ] # if file doesn't exist, just return empty array, otherwise, parse for emails if File . exist? ( file ) File . readlines ( file ) . each do | line | if index = ( line =~ / \# / ) # line contains some kind of comment # check if there is any useful info, ignore it not unless line [ 0 , index ] . strip . empty? maillist << Origen :: Users :: User . new ( line [ 0 , index ] . strip ) . email end else # if line is not empty, generate an email unless line . strip . empty? maillist << Origen :: Users :: User . new ( line . strip ) . email end end end end maillist end
Parses maillist file and returns an array of email address
Parses maillist file and returns an array of email address