SieveMailException
204205206207208209210211
while (allHeaders.hasMoreElements()) { headerNames.add(((Header) allHeaders.nextElement()).getName()); } return new ArrayList(headerNames); } catch (MessagingException ex) { throw new SieveMailException(ex); } }
222223224225226227228229
*/ public int getSize() throws SieveMailException { try { return getMessage().getSize(); } catch (MessagingException ex) { throw new SieveMailException(ex); } }
233234235236237238239240
*/ public String getContentType() throws SieveMailException { try { return getMessage().getContentType(); } catch (MessagingException ex) { throw new SieveMailException(ex); } }
244245246247248249250251252253
*/ public Object getContent() throws SieveMailException { try { return getMessage().getContent(); } catch (MessagingException ex) { throw new SieveMailException(ex); } catch (IOException ex) { throw new SieveMailException(ex); } }
282283284285286287288289290291
final Address[] results = builder.getAddresses(); return results; } catch (MessagingException ex) { throw new SieveMailException(ex); } catch (org.apache.jsieve.parser.generated.address.ParseException ex) { throw new SieveMailException(ex); } }
192193194195196197198199
public List getHeader(String name) throws SieveMailException { try { String[] headers = getMessage().getHeader(name); return (headers == null ? new ArrayList(0) : Arrays.asList(headers)); } catch (MessagingException ex) { throw new SieveMailException(ex); } }
208209210211212213214215
226227228229230231232233
370371372373374375376377
throws SieveMailException { try { return SieveAddressBuilder.parseAddresses(headerName, getMail() .getMessage()); } catch (MessagingException e) { throw new SieveMailException(e); } }
158159160161162163164165166167
String[] values = mail.getHeader(name); if (values != null) { result = Arrays.asList(values); } } catch (MessagingException e) { throw new SieveMailException(e); } } return result; }