How can I identify a forwarded message in jwm

Help
RAMKI
2006-10-23
2013-04-09
  • RAMKI

    RAMKI - 2006-10-23

    I could identify a message whether has it been replied or not by dtw.webmail.model.JwmaMessageInfoImpl - isAnswered.
    But there is no method isForwarded(), I would wish to have a method where I can make user know which mails have been fwd'ed.

    Is it possible?
    please clarify
    Ramki

     
    • RAMKI

      RAMKI - 2006-11-16

      i have seen jwma api. it doesnt have any method like that.

      any assistance to flag a message that is forwarded??

       
    • RAMKI

      RAMKI - 2006-11-21

      I see something like Flags.Flag.USER which allows us to create a user defined FLAG.

      In JwmaComposeMessage.java I have put msg.setFlag(new Flags.Flag("FORWARDED", true);
      The source code goes like this...

      if(isForward()){
            Message msg=m_RepliedMessage.getMessage();
            Folder fld=msg.getFolder();
            fld.open(Folder.READ_WRITE);
            msg.setFlag(new Flags.Flag("FORWARDED"),true);
            fld.close(false);
                }

      but it did not work.

      Any suggestions? please!

      Ramki

       
    • RAMKI

      RAMKI - 2006-11-23

      I modified the code in JwmaComposeMessage.java...

      try {
      Message msg = m_RepliedMessage.getMessage();
      Folder fld = msg.getFolder();
      fld.open(Folder.READ_WRITE);
      if(isForward() && m_RepliedMessage != null){
      msg.setFlag(new Flags("FORWARDED"), true);
      }
      else if (isReply() && m_RepliedMessage != null) {
      msg.setFlag(Flags.Flag.ANSWERED, true);
      }
      fld.close(false);
      }

      While setting flag to message like
      messageinfo.setForward(msg.isSet(Flags.Flag.FORWARDED));
      I am getting error...undefined variable FORWARDED....

      Can any one give me a suggestion on this???

       

Log in to post a comment.