code: public void checkMail() {
          Queue<Message> mailBox = getTS().getC().getMailBox();
          for (Message m : this.inbox) {
              mailBox.offer(m);
              logger.fine("Received message -> ID: " + m.getMsgId() + " Sender: "
                      + m.getSender());
          }
          this.inbox.clear();
      }
docs: /*
  (non-Javadoc)
  
  @see jason.architecture.AgArch#checkMail()