Skip to content

Instantly share code, notes, and snippets.

Created January 13, 2014 20:13
Show Gist options
  • Save anonymous/8407187 to your computer and use it in GitHub Desktop.
Save anonymous/8407187 to your computer and use it in GitHub Desktop.
private boolean isPossibleDuplicate(final Message message)
{
try
{
return message.getHeader().isSetField(PossDupFlag.FIELD) && message.getHeader().getBoolean(PossDupFlag.FIELD);
}
catch (final FieldNotFound x)
{
// should never happen, but we still need to return something
return false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment