[Commits] (bkirsch) Added first pass at SMTP code and created a task

commits at osafoundation.org commits at osafoundation.org
Mon Aug 2 17:11:45 PDT 2004


Commit by: bkirsch
Modified files:
chandler/parcels/osaf/mail/smtp.py None 1.1
chandler/parcels/osaf/mail/MailTasks.py 1.1 1.2
chandler/parcels/osaf/mail/imap.py 1.2 1.3
chandler/parcels/osaf/mail/message.py 1.1 1.2
chandler/parcels/osaf/mail/parcel.xml 1.7 1.8

Log message:
Added first pass at SMTP code and created a task

ViewCVS links:
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/mail/smtp.py?rev=1.1&content-type=text/vnd.viewcvs-markup
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/mail/MailTasks.py.diff?r1=text&tr1=1.1&r2=text&tr2=1.2
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/mail/imap.py.diff?r1=text&tr1=1.2&r2=text&tr2=1.3
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/mail/message.py.diff?r1=text&tr1=1.1&r2=text&tr2=1.2
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/mail/parcel.xml.diff?r1=text&tr1=1.7&r2=text&tr2=1.8

Index: chandler/parcels/osaf/mail/imap.py
diff -u chandler/parcels/osaf/mail/imap.py:1.2 chandler/parcels/osaf/mail/imap.py:1.3
--- chandler/parcels/osaf/mail/imap.py:1.2	Mon Aug  2 13:19:11 2004
+++ chandler/parcels/osaf/mail/imap.py	Mon Aug  2 17:11:43 2004
@@ -1,6 +1,6 @@
-__revision__  = "$Revision: 1.2 $"
-__date__      = "$Date: 2004/08/02 20:19:11 $"
-__copyright__ = "Copyright (c) 2002 Open Source Applications Foundation"
+__revision__  = "$Revision: 1.3 $"
+__date__      = "$Date: 2004/08/03 00:11:43 $"
+__copyright__ = "Copyright (c) 2004 Open Source Applications Foundation"
 __license__   = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
 
 import application.Globals as Globals

Index: chandler/parcels/osaf/mail/MailTasks.py
diff -u chandler/parcels/osaf/mail/MailTasks.py:1.1 chandler/parcels/osaf/mail/MailTasks.py:1.2
--- chandler/parcels/osaf/mail/MailTasks.py:1.1	Mon Aug  2 13:37:46 2004
+++ chandler/parcels/osaf/mail/MailTasks.py	Mon Aug  2 17:11:43 2004
@@ -1,12 +1,13 @@
-__revision__  = "$Revision: 1.1 $"
-__date__      = "$Date: 2004/08/02 20:37:46 $"
-__copyright__ = "Copyright (c) 2002 Open Source Applications Foundation"
+__revision__  = "$Revision: 1.2 $"
+__date__      = "$Date: 2004/08/03 00:11:43 $"
+__copyright__ = "Copyright (c) 2004 Open Source Applications Foundation"
 __license__   = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
 
 import osaf.framework.tasks.Action as Action
 import osaf.contentmodel.mail.Mail as Mail
 import repository.item.Query as Query
 import imap as imap
+import smtp as smtp
 import logging as logging
 
 
@@ -39,3 +40,10 @@
                 printed = True
 
             imap.IMAPDownloader(account).getMail()
+
+
+class SMTPSendAction(Action.Action):
+    def Execute(self, task):
+
+       logging.info("SENDING STMP MAIL")
+       smtp.SMTPSender().sendmail()

Index: chandler/parcels/osaf/mail/message.py
diff -u chandler/parcels/osaf/mail/message.py:1.1 chandler/parcels/osaf/mail/message.py:1.2
--- chandler/parcels/osaf/mail/message.py:1.1	Mon Aug  2 12:49:06 2004
+++ chandler/parcels/osaf/mail/message.py	Mon Aug  2 17:11:43 2004
@@ -1,6 +1,6 @@
-__revision__  = "$Revision: 1.1 $"
-__date__      = "$Date: 2004/08/02 19:49:06 $"
-__copyright__ = "Copyright (c) 2002 Open Source Applications Foundation"
+__revision__  = "$Revision: 1.2 $"
+__date__      = "$Date: 2004/08/03 00:11:43 $"
+__copyright__ = "Copyright (c) 2004 Open Source Applications Foundation"
 __license__   = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
 
 import osaf.contentmodel.mail.Mail as Mail

Index: chandler/parcels/osaf/mail/parcel.xml
diff -u chandler/parcels/osaf/mail/parcel.xml:1.7 chandler/parcels/osaf/mail/parcel.xml:1.8
--- chandler/parcels/osaf/mail/parcel.xml:1.7	Mon Aug  2 13:37:46 2004
+++ chandler/parcels/osaf/mail/parcel.xml	Mon Aug  2 17:11:43 2004
@@ -25,4 +25,18 @@
     <task:schedule itemref="mail:IMAPMailClient/MailSchedule"/>
     <task:actions itemref="mail:IMAPMailClient/GetMail"/-->
   </task:Task>
+
+
+  <task:Task itsName="SMTPClient">
+    <task:Schedule itsName="MailSchedule">
+      <task:startTime>2003-11-11 11:11:11+0800</task:startTime>
+      <task:repeatFlag>False</task:repeatFlag>
+      <task:repeatDelay>00:00:00:30</task:repeatDelay>
+    </task:Schedule>
+    <!--task:Action itsName="sendmail" itemClass="osaf.mail.MailTasks.SMTPSendAction"/>
+    <task:schedule itemref="mail:SMTPClient/MailSchedule"/>
+    <task:actions itemref="mail:SMTPClient/sendmail"/-->
+  </task:Task>
+
+
 </core:Parcel>



More information about the Commits mailing list