Package jnode.dto

Examples of jnode.dto.Netmail


   *
   * @param mail
   * @return
   */
  public static Netmail ftnMessageToNetmail(FtnMessage mail) {
    Netmail netmail = new Netmail();
    netmail.setAttr(mail.getAttribute());
    netmail.setDate(mail.getDate());
    netmail.setFromFTN(mail.getFromAddr().toString());
    netmail.setFromName(mail.getFromName());
    netmail.setToFTN(mail.getToAddr().toString());
    netmail.setToName(mail.getToName());
    netmail.setSubject(mail.getSubject());
    netmail.setText(mail.getText());
    return netmail;
  }
View Full Code Here


      routeVia = getRouting(message);
      if (routeVia == null) {
        logger.l2("Routing not found for " + to);
      }
    }
    Netmail net = ftnMessageToNetmail(message);
    net.setRouteVia(routeVia);
    ORMManager.get(Netmail.class).save(net);
    logger.l4("Netmail #" + net.getId() + " created");
    if (routeVia != null) {
      if (FtnTools.getOptionBooleanDefTrue(routeVia,
          LinkOption.BOOLEAN_CRASH_NETMAIL)) {
        PollQueue.getSelf().add(routeVia);
      }
View Full Code Here

            Notifier.INSTANSE.notify(new PostEndEvent());
            response.add(NntpResponse.Post.ARTICLE_RECEIVED_OK);

            if (isNetmail(params)) {
                try {
                    Netmail netmail = convertToNetmail(params);
                    // todo validate
                    dataProvider.post(netmail);
                } catch (NntpException e) {
                    logger.l1("Can't save netmail.", e);
                }
View Full Code Here

        return mail;

    }

    private Netmail convertToNetmail(Collection<String> params) {
        Netmail netmail = new Netmail();
        convertToMail(netmail, params);
        findTo(netmail, params);
        return netmail;
    }
View Full Code Here

TOP

Related Classes of jnode.dto.Netmail

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.