MBMailUtil { public static long getMessageId(String messageIdString) { String[] parts = _getMessageIdStringParts(messageIdString); return GetterUtil.getLong(parts[1]); }  static void collectPartContent(
			Part part, MBMailMessage mbMailMessage); static long getCategoryId(String messageIdString); static long getMessageId(String messageIdString); static int getMessageIdStringOffset(); static long getParentMessageId(Message message); static String getParentMessageIdString(Message message); static String getReplyToAddress(
		long categoryId, long messageId, String mx,
		String defaultMailingListAddress); static String getSubjectForEmail(MBMessage message); static String getSubjectWithoutMessageId(Message message); static boolean hasMailIdHeader(Message message); static final String MESSAGE_POP_PORTLET_PREFIX; }
@Test public void testGetMessageId() { Assert.assertEquals( 20646, MBMailUtil.getMessageId( "<mb_message.10640.20646.1425017183884@gmail.com>")); }
@Test public void testGetMessageIdWithNoSurroundingChevrons() { Assert.assertEquals( 20646, MBMailUtil.getMessageId( "mb_message.10640.20646.1425017183884@events.gmail.com")); }