javax.mail.internet.MimeMessage.setExpunged()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(3.0k)|赞(0)|评价(0)|浏览(156)

本文整理了Java中javax.mail.internet.MimeMessage.setExpunged()方法的一些代码示例,展示了MimeMessage.setExpunged()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MimeMessage.setExpunged()方法的具体详情如下:
包路径:javax.mail.internet.MimeMessage
类名称:MimeMessage
方法名:setExpunged

MimeMessage.setExpunged介绍

暂无

代码示例

代码示例来源:origin: com.sun.mail/javax.mail

@Override
protected void setExpunged(boolean set) {
super.setExpunged(set);
}

代码示例来源:origin: camunda/camunda-bpm-platform

protected void setExpunged(boolean set) {
super.setExpunged(set);
}

代码示例来源:origin: com.sun.mail/jakarta.mail

@Override
protected void setExpunged(boolean set) {
super.setExpunged(set);
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.javax.mail

protected void setExpunged(boolean set) {
super.setExpunged(set);
seqnum = -1;
}

代码示例来源:origin: de.saly/javamail-mock2-halfmock

@Override
protected void setExpunged(final boolean expunged) {
  super.setExpunged(expunged);
}

代码示例来源:origin: jboss/jboss-javaee-specs

@Override
protected void setExpunged(boolean set) {
super.setExpunged(set);
}

代码示例来源:origin: salyh/javamail-mock2

@Override
protected void setExpunged(final boolean expunged) {
  super.setExpunged(expunged);
}

代码示例来源:origin: javax.mail/com.springsource.javax.mail

protected void setExpunged(boolean set) {
super.setExpunged(set);
}

代码示例来源:origin: com.sun.mail/android-mail

@Override
protected void setExpunged(boolean set) {
super.setExpunged(set);
}

代码示例来源:origin: de.saly/javamail-mock2-fullmock

@Override
protected void setExpunged(final boolean expunged) {
  super.setExpunged(expunged);
}

代码示例来源:origin: org.glassfish.metro/webservices-extra

@Override
protected void setExpunged(boolean set) {
super.setExpunged(set);
}

代码示例来源:origin: org.mnode.mstor/mstor

/**
 * {@inheritDoc}
 */
protected void setExpunged(final boolean expunged) {
  if (delegate != null) {
    try {
      delegate.setExpunged(expunged);
    }
    catch (Exception e) {
      log.error("Error updating expunged flag", e);
    }
  }
  super.setExpunged(expunged);
}

代码示例来源:origin: org.apache.geronimo.javamail/geronimo-javamail_1.4_provider

/**
 * Override for the Message class setExpunged() method to allow
 * us to do additional cleanup for expunged messages.
 *
 * @param value  The new expunge setting.
 */
public void setExpunged(boolean value) {
  // super class handles most of the details
  super.setExpunged(value);
  // if we're now expunged, this removes us from the server message sequencing scheme, so
  // we need to invalidate the sequence number.
  if (isExpunged()) {
    sequenceNumber = -1;
  }
}

代码示例来源:origin: org.mnode.mstor/mstor

/**
 * @param folder the folder associated with the message
 * @param in an input stream to read message data from
 * @param msgnum the message number of the message in the specified folder
 * @param delegate a delegate providing implementation-specific message functionality
 */
public MStorMessage(final Folder folder, final InputStream in,
    final int msgnum, MessageDelegate delegate) {
  
  super(folder, msgnum);
  if (in != null) {
    this.in = in;
  }
  else {
    this.in = delegate.getInputStream();
  }
  this.delegate = delegate;
  tags = new Tags(flags);
  
  // sync with delegate..
  if (delegate != null) {
    try {
      super.setExpunged(delegate.isExpunged());
      super.setFlags(delegate.getFlags(), true);
    }
    catch (Exception e) {
      log.warn("Error syncing with delegate", e);
    }
  }
}

相关文章

MimeMessage类方法