anchor.diff:  	String subject;
   	@Field()
   	String body;
  +	@Field()
  +	bool read;
   }
positive.code: 		map['openWindow'] = 'mailbox';
  		userSocket.add(JSON.encode(map));
  	}
  
  	void send({WebSocket userSocket, String email, String recipient, String message}) {
  
  	}
  }
  
  @app.Route('/getMail',methods: const[app.POST])
  @Encode()
  Future<List<Message>> getMail(@app.Body(app.JSON) Map parameters) async
  {
  	String user = parameters['user'];
  
  	String query = "SELECT * FROM messages WHERE to_user = @user";
  	List<Message> messages = await dbConn.query(query,Message,{'user':user});
  
  	return messages;
  }
  
  @app.Route('/sendMail',methods: const[app.POST])
  Future<String> sendMail(@Decode() Message message) async
  {
  	String query = "INSERT INTO messages(to_user, from_user, subject, body) VALUES(@to_user,@from_user,@subject,@body)";
  	int result = await dbConn.execute(query,message);
  
  	if(result > 0)
  		return "OK";
  	else
  		return "Error";
  }
  
  class Message {
  
negative.code: 	}
  
  	void checkMail({WebSocket userSocket, String email}) {
  		String query = "SELECT * FROM messages JOIN users ON username = to_user WHERE email = @email AND read = FALSE";
  		dbManager.getConnection().then((PostgreSql dbConn) {
  			dbConn.query(query, Message, {'email':email}).then((List<Message> messages) {
  				if(messages.length > 0) {
  					say("${messages.length} New Messages");
  				}
  				else
  					say("No Mail");
  			});
  			dbManager.closeConnection(dbConn);
  		});
  	}
  
  	void sendMail({WebSocket userSocket, String email}) {
  