com.funambol.email.inboxlistener.msdao
Class MailboxMSDAOGmail
java.lang.Object
com.funambol.email.inboxlistener.msdao.MailboxMSDAOCommon
com.funambol.email.inboxlistener.msdao.MailboxMSDAOGmail
- All Implemented Interfaces:
- IMailboxMSDAO
public class MailboxMSDAOGmail
- extends MailboxMSDAOCommon
- implements IMailboxMSDAO
This class groups some utility methods for Mail Server invoking
Method Summary |
protected SyncItemInfo |
createInfo(javax.mail.Message message,
java.util.HashMap localInfos)
|
SyncItemInfo[] |
getEmailsFromInbox(IMailServerWrapper mswf,
java.util.HashMap localInfos)
get messages from inbox folder
This method returns all the items in the server
inbox folder |
protected boolean |
isSentEmail(java.lang.String userAddress,
javax.mail.Message message)
the message is a sent email if the userAddress is in the From list
and is not in the To list |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MailboxMSDAOGmail
public MailboxMSDAOGmail()
MailboxMSDAOGmail
public MailboxMSDAOGmail(MailServerAccount _msa,
boolean _saveSubject,
boolean _saveSender)
- Creates a new MSTools with the given MSAccount
- Parameters:
_msa
- the DBAccount
getEmailsFromInbox
public SyncItemInfo[] getEmailsFromInbox(IMailServerWrapper mswf,
java.util.HashMap localInfos)
throws InboxListenerException
- get messages from inbox folder
This method returns all the items in the server
inbox folder
- Specified by:
getEmailsFromInbox
in interface IMailboxMSDAO
- Specified by:
getEmailsFromInbox
in class MailboxMSDAOCommon
- Parameters:
mswf
- IMailServerWrapperlocalInfos
- map with all the loacal CrcSyncItemInfo
- Returns:
- CrcSyncItemInfo[]
- Throws:
EntityException
InboxListenerException
createInfo
protected SyncItemInfo createInfo(javax.mail.Message message,
java.util.HashMap localInfos)
throws javax.mail.MessagingException
- Specified by:
createInfo
in class MailboxMSDAOCommon
- Parameters:
message
- MessagelocalInfos
- map with all the loacal SyncItemInfo
- Returns:
- SyncItemInfo
- Throws:
javax.mail.MessagingException
isSentEmail
protected boolean isSentEmail(java.lang.String userAddress,
javax.mail.Message message)
throws javax.mail.MessagingException
- the message is a sent email if the userAddress is in the From list
and is not in the To list
- Parameters:
userAddress
- Stringmessage
- Message
- Returns:
- true if is a sent email
- Throws:
javax.mail.MessagingException
Copyright © 2005-2006 Funambol.