[Commits] (bkirsch) Updated to work with new mail content model
commits at osafoundation.org
commits at osafoundation.org
Tue Aug 17 11:07:30 PDT 2004
Commit by: bkirsch
Modified files:
chandler/parcels/osaf/mail/MailTasks.py 1.2 1.3
Log message:
Updated to work with new mail content model
ViewCVS links:
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/mail/MailTasks.py.diff?r1=text&tr1=1.2&r2=text&tr2=1.3
Index: chandler/parcels/osaf/mail/MailTasks.py
diff -u chandler/parcels/osaf/mail/MailTasks.py:1.2 chandler/parcels/osaf/mail/MailTasks.py:1.3
--- chandler/parcels/osaf/mail/MailTasks.py:1.2 Mon Aug 2 17:11:43 2004
+++ chandler/parcels/osaf/mail/MailTasks.py Tue Aug 17 11:07:29 2004
@@ -1,5 +1,5 @@
-__revision__ = "$Revision: 1.2 $"
-__date__ = "$Date: 2004/08/03 00:11:43 $"
+__revision__ = "$Revision: 1.3 $"
+__date__ = "$Date: 2004/08/17 18:07:29 $"
__copyright__ = "Copyright (c) 2004 Open Source Applications Foundation"
__license__ = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
@@ -16,24 +16,19 @@
def Execute(self, task):
"""
This method creates a C{IMAPDownloader} instance for each
- C{EmailAccountKind} of type IMAP4 gotten via a:a
+ C{IMAPAccountKind} of type IMAP4 gotten via a:a
- accountKind = Mail.MailParcel.getEmailAccountKind()
+ accountKind = Mail.MailParcel.getIMAPAccountKind()
@param task: The task object passed to the action
@type task: C{osaf.framework.tasks.Task.Task}
@return: C{None}
"""
- accountKind = Mail.MailParcel.getEmailAccountKind()
+ accountKind = Mail.MailParcel.getIMAPAccountKind()
printed = False
for account in Query.KindQuery().run([accountKind]):
- if account.accountType != 'IMAP4':
- str = "WARNING: Only IMAP Accounts are currently supported. "
- str1 = "%s of type %s will be ignored" % (account.displayName, account.accountType)
- logging.error(str, str1)
- continue
if not printed:
logging.info("IMAP MAIL TASK CHECKING FOR NEW MAIL")
More information about the Commits
mailing list