private Set<String> readSubscriptions(File mailboxFolder) throws IOException {
  File subscriptionFile=new File(mailboxFolder,FILE_SUBSCRIPTION);
  HashSet<String> subscriptions=new HashSet<String>();
  if (!subscriptionFile.exists()) {
    return subscriptions;
  }
  FileReader fileReader=new FileReader(subscriptionFile);
  BufferedReader reader=new BufferedReader(fileReader);
  String subscription;
  while ((subscription=reader.readLine()) != null)   if (!subscription.equals(""))   subscriptions.add(subscription);
  reader.close();
  fileReader.close();
  return subscriptions;
}

private Set < String > readSubscriptions ( File mailboxFolder ) throws IOException { File subscriptionFile = new File ( mailboxFolder , FILE_SUBSCRIPTION ) ; HashSet < String > subscriptions = new HashSet < String > ( ) ; if ( ! subscriptionFile . exists ( ) ) { return subscriptions ; } FileReader fileReader = new FileReader ( subscriptionFile ) ; BufferedReader reader = new BufferedReader ( fileReader ) ; String subscription ; while ( ( subscription = reader . readLine ( ) ) != null ) if ( ! subscription . equals ( "" ) ) subscriptions . add ( subscription ) ; reader . close ( ) ; fileReader . close ( ) ; return subscriptions ; }
read the names of the mailboxes which are subscribed from the specified folder
