[Erp5-report] r12792 - in /spec/debian/unstable/erp5-zmailin: ./ ZMailIn/ ZMailIn/debian/ Z...

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Feb 15 18:29:08 CET 2007


Author: yusei
Date: Thu Feb 15 18:29:02 2007
New Revision: 12792

URL: http://svn.erp5.org?rev=12792&view=rev
Log:
added debian package and workspace.

Added:
    spec/debian/unstable/erp5-zmailin/
    spec/debian/unstable/erp5-zmailin/ZMailIn/
    spec/debian/unstable/erp5-zmailin/ZMailIn/CHANGES.txt   (with props)
    spec/debian/unstable/erp5-zmailin/ZMailIn/CREDITS.txt
    spec/debian/unstable/erp5-zmailin/ZMailIn/INSTALL.txt
    spec/debian/unstable/erp5-zmailin/ZMailIn/LICENSE.txt
    spec/debian/unstable/erp5-zmailin/ZMailIn/README.txt   (with props)
    spec/debian/unstable/erp5-zmailin/ZMailIn/VERSION.txt
    spec/debian/unstable/erp5-zmailin/ZMailIn/ZMailIn.py   (with props)
    spec/debian/unstable/erp5-zmailin/ZMailIn/ZMailMessage.py
    spec/debian/unstable/erp5-zmailin/ZMailIn/__init__.py   (with props)
    spec/debian/unstable/erp5-zmailin/ZMailIn/debian/
    spec/debian/unstable/erp5-zmailin/ZMailIn/debian/changelog
    spec/debian/unstable/erp5-zmailin/ZMailIn/debian/compat
    spec/debian/unstable/erp5-zmailin/ZMailIn/debian/control
    spec/debian/unstable/erp5-zmailin/ZMailIn/debian/copyright
    spec/debian/unstable/erp5-zmailin/ZMailIn/debian/dzproduct
    spec/debian/unstable/erp5-zmailin/ZMailIn/debian/postinst
    spec/debian/unstable/erp5-zmailin/ZMailIn/debian/rules   (with props)
    spec/debian/unstable/erp5-zmailin/ZMailIn/dtml/
    spec/debian/unstable/erp5-zmailin/ZMailIn/dtml/ZMailInAdd.dtml   (with props)
    spec/debian/unstable/erp5-zmailin/ZMailIn/dtml/ZMailInEdit.dtml   (with props)
    spec/debian/unstable/erp5-zmailin/ZMailIn/dtml/ZMailMessageAdd.dtml
    spec/debian/unstable/erp5-zmailin/ZMailIn/dtml/ZMailMessageEdit.dtml
    spec/debian/unstable/erp5-zmailin/ZMailIn/dtml/index.dtml   (with props)
    spec/debian/unstable/erp5-zmailin/ZMailIn/dtml/message_index.dtml
    spec/debian/unstable/erp5-zmailin/ZMailIn/help/
    spec/debian/unstable/erp5-zmailin/ZMailIn/help/ZMailIn-Add.stx
    spec/debian/unstable/erp5-zmailin/ZMailIn/help/ZMailIn-Edit.stx
    spec/debian/unstable/erp5-zmailin/ZMailIn/help/ZMailIn.py   (with props)
    spec/debian/unstable/erp5-zmailin/ZMailIn/help/ZMailIn.stx
    spec/debian/unstable/erp5-zmailin/ZMailIn/help/ZMailMessage-Add.stx
    spec/debian/unstable/erp5-zmailin/ZMailIn/help/ZMailMessage-Edit.stx
    spec/debian/unstable/erp5-zmailin/ZMailIn/help/ZMailMessage.py
    spec/debian/unstable/erp5-zmailin/ZMailIn/help/ZMailMessage.stx
    spec/debian/unstable/erp5-zmailin/ZMailIn/mailmessage.txt
    spec/debian/unstable/erp5-zmailin/ZMailIn/refresh.txt
    spec/debian/unstable/erp5-zmailin/ZMailIn/sample_zmailin_method.zexp   (with props)
    spec/debian/unstable/erp5-zmailin/ZMailIn/www/
    spec/debian/unstable/erp5-zmailin/ZMailIn/www/mail.png   (with props)
    spec/debian/unstable/erp5-zmailin/ZMailIn/www/mailin.png   (with props)
    spec/debian/unstable/erp5-zmailin/ZMailIn/zopeMailIn.py
    spec/debian/unstable/erp5-zmailin/ZMailIn/zopeMailInConf.py
    spec/debian/unstable/erp5-zmailin/erp5-zmailin_1.0.1-1.diff.gz   (with props)
    spec/debian/unstable/erp5-zmailin/erp5-zmailin_1.0.1-1.dsc
    spec/debian/unstable/erp5-zmailin/erp5-zmailin_1.0.1-1_all.deb   (with props)
    spec/debian/unstable/erp5-zmailin/erp5-zmailin_1.0.1-1_i386.build
    spec/debian/unstable/erp5-zmailin/erp5-zmailin_1.0.1-1_i386.changes
    spec/debian/unstable/erp5-zmailin/erp5-zmailin_1.0.1.orig.tar.gz   (with props)

Added: spec/debian/unstable/erp5-zmailin/ZMailIn/CHANGES.txt
URL: http://svn.erp5.org/spec/debian/unstable/erp5-zmailin/ZMailIn/CHANGES.txt?rev=12792&view=auto
==============================================================================
--- spec/debian/unstable/erp5-zmailin/ZMailIn/CHANGES.txt (added)
+++ spec/debian/unstable/erp5-zmailin/ZMailIn/CHANGES.txt Thu Feb 15 18:29:02 2007
@@ -1,0 +1,143 @@
+ZMailIn - CHANGES.txt
+
+v1.0.1
+
+    * Zope 2.4.3 and Zope 2.5.0 compatibility
+
+v1.0.0
+
+    * Removed CatalogAware from ZMailMessage product
+    
+    * Created sample_zmailin_method Python Script
+    
+    * Updated product and documentation to meet with the Finished Product Guidelines
+    
+v0.9.1
+
+    * Fixed zopeMailIn.py's return values
+
+v0.9.0
+
+    * ZMailMessage:
+
+        * Removed ZMailMessage directory
+    
+        * Moved ZMailMessage product in to the ZMailIn directory
+    
+        * Merged the __init__.py of ZMailIn and ZMailMessage
+        
+        * Code tidied up, brought up to date, commented
+        
+    * getZMailInClientLocation:
+
+        * Removed External Method (file system and Product folder)
+    
+        * Recreated the functionality of External Method as function getZMailInClientLocation in __init__.py
+    
+        * Made getZMailInClientLocation accessible from anywhere from within the zope hierarchy
+    
+    * ZMailIn:
+    
+        * Removed CatalogAware from ZMailIn product
+    
+        * ZMailIn product handles indexing/unindexing/re_indexing in to 'GlobalZMailInCatalog' itself
+
+        * postZMailMessage:
+
+            * now _only_ excepts a mail file
+    
+            * uses restrictedTraverse to get the specified Method (Much more reliable/secure)
+    
+            * now raises errors when necersary
+            
+            * Returns the result of the specified Method
+    
+        * Code tidied up, brought up to date, commented
+        
+    * Completely re-written zopeMailIn.py:
+    
+        * Removed xmlrpc for standard http post
+        
+        * No longer _requires_ envelope-to header but will use it if available
+        
+        * Will use host specified in zopeMailInConf.py to query the GlobalZMailInCatalog for the ZMailInClient Location.  Alternativley you can pass the location of the ZMailIn Client as an argument on the command line
+    
+        * Prints **useful** error messages when it fails::
+          
+             ZMailIn Error: ZMailIn Client does not exist
+        
+        * Sends the mail file to postZMailMessage without messing with it
+        
+    * Updated DTML documents
+
+v0.3.2
+
+    * Added support for ZMail Clients using a domain name (e.g. @mydomain.com) instead of a complete email address
+
+v0.3.1
+
+    * Fixed minor bugs that prevented compitibility with Zope 2.2
+
+v0.3
+
+    * #zopedir#/var/ZMailIn.loc removed
+    
+    * ZCatalog created in __init__.py to replace #zopedir#/var/ZMailIn.loc
+    
+    * External Method created in __init__.py to query ZCatalog
+    
+    * Support for Multi-Mime type Messages
+    
+    * ZMailIn is now CatalogAware (default catalog = 'GlobalZMailInCatalog')
+    
+    * ZMailMessage is now Folderish
+    
+    * ZMailMessage is now CatalogAware (default catalog = 'ZMailInCatalog')
+
+v0.2
+
+    * Spilt ZMailIn in to ZMailIn and ZMailMessage
+    
+        * ZMailMessage to be the actual Email in Zope 
+	
+        * ZMailIn to become the message handeler 
+	
+    * ZMailIn Written as Python Product using the boring product as a template.
+    
+    * Saves ZMailIn instance location information to #zopedir#/var/ZMailIn.loc
+    
+    * postZMailMessage method adds folder structure /year/month/day to the current folder and adds the mail message in the day folder.
+    
+    * ZMailMessage reWritten as Python ZClasses using the boring product as a template.
+    
+    * ZMailMessage properties
+
+V0.1
+
+    * Called ZMailIn
+    
+    * Written as Zope ZClass
+    
+    * Connects with Exim mail system
+    
+    * Provides HTTP Post to Zope Method
+    
+    * Properties include
+    
+        * message-id
+	
+        * title
+	
+        * subject
+	
+        * date
+	
+        * to
+	
+        * from
+	
+        * reply-to
+	
+        * headers
+	
+        * body

Propchange: spec/debian/unstable/erp5-zmailin/ZMailIn/CHANGES.txt
------------------------------------------------------------------------------
    svn:executable = 

Added: spec/debian/unstable/erp5-zmailin/ZMailIn/CREDITS.txt
URL: http://svn.erp5.org/spec/debian/unstable/erp5-zmailin/ZMailIn/CREDITS.txt?rev=12792&view=auto
==============================================================================
--- spec/debian/unstable/erp5-zmailin/ZMailIn/CREDITS.txt (added)
+++ spec/debian/unstable/erp5-zmailin/ZMailIn/CREDITS.txt Thu Feb 15 18:29:02 2007
@@ -1,0 +1,10 @@
+CREDITS.txt
+
+New Information Paradigms Ltd would like to give credit to the following people for making this product possible.
+
+Authors
+
+    * Andy Dawkins (andyd at nipltd.com)
+    
+    * Chris Withers (chrisw at nipltd.com)
+    

Added: spec/debian/unstable/erp5-zmailin/ZMailIn/INSTALL.txt
URL: http://svn.erp5.org/spec/debian/unstable/erp5-zmailin/ZMailIn/INSTALL.txt?rev=12792&view=auto
==============================================================================
--- spec/debian/unstable/erp5-zmailin/ZMailIn/INSTALL.txt (added)
+++ spec/debian/unstable/erp5-zmailin/ZMailIn/INSTALL.txt Thu Feb 15 18:29:02 2007
@@ -1,0 +1,203 @@
+Introduction
+
+    This is the first final release version of ZMailIn, which allows you to
+    email into Zope.  Each email that is sent to a particular address
+    arrives in the Zope environment ready to be processed by your own methods.
+    
+
+Status
+
+    This is a release version and is actually in use by NIP.
+    This release has been tested using the eXtreme Programming
+    ( "XP":http://www.extremeprogramming.org/ ) methodology
+    and NIP's in-house product testing system.
+    It is intended for people who wish to be able to get emails in to their own
+    Zope environment.
+
+    We've split the problem into a number of aspects:
+    
+      - Getting the email from the mail system into a world we can program 
+        (Python).
+      
+      - Getting the mail into Zope.
+      
+      - Figuring out what to do with the mail once it is in Zope.
+      
+    As we are targetting Unix (specifically Linux) we can get the MTA (Exim, or
+    Sendmail, or most other MTAs) to send mail for a particular address to a
+    script.
+    
+    This script then queries a ZCatalog for the location of the ZMailIn Client
+    that has been configured to except messages from an email address.  It then
+    communicates with the Zope product (ZMailIn), via http post, and calls one
+    of the Products functions which pulls the mail message in to useful parts
+    before sending it to a specified method.
+
+    The setup has been developed and lightly tested using:
+    
+      - Zope 2.4.3 running on Linux (Mandrake 8.1).
+      - Zope 2.5.0 running on Linux (Mandrake 8.1).
+      
+      - Exim 3.14 as the mail transport. You can find more information about
+        Exim at http://www.exim.org/. We believe it should also work with
+        sendmail (the MTA normally found on Linux) but haven't tested it.
+        
+
+Contents
+
+    ZMailIn is provided as a single tar archive. It contains the ZMailIn
+    Python Products.
+
+
+Installation
+
+    (In the following instructions, Zope_Home means your Zope directory, for
+     example, */usr/local/zope*.)
+
+
+    1. Extract ZMailIn-1-0-0.tgz to your Zope_Home directory using
+       *tar zxvf ZMailIn-1-0-0.tgz*	          
+
+    2. Configure the
+       *Zope_Home/lib/python/Products/ZMailIn/zopeMailInConf.py*
+       file for your server settings.
+       
+    3. Change the first line of
+       *Zope_Home/lib/python/Products/ZMailIn/zopeMailIn.py*
+       to reflect your python location (*whereis python*).
+
+    4. Make sure your MTA has permission to execute zopeMailIn.py
+
+       To check this, try it, for example if your MTA runs as the user
+       mail, do 
+       *su - mail* 
+       and then
+       *./zopeMailInPost.py*
+  
+       *chmod a+x zopeMailInPost.py*
+       should fix any access problems, but don't forget to give your MTA
+       permission to access the directory
+       *Zope_Home/lib/python/Products/ZMailIn/*
+       as well.
+
+    5. Make sure your MTA (in our case, Exim) will deliver email to a program.
+       For Exim this means assuming Exim is installed and working you need to:
+       
+       a. Make sure that 'pipe transports' are enabled.
+       
+          Check */etc/exim.conf* for a section in transports like::
+          
+                address_pipe:
+                   driver = pipe
+                   user = mail
+                   return_output
+
+          This is usually found in the default exim.conf file.
+          To make ZMailIn work for mailing lists add this line::
+                
+                  envelope_to_add = true
+                    
+          This forces Exim to add the 'envelope-to' to the headers
+          of the mail message.
+
+       b. Make sure that there is a director set up to handle pipes.
+
+          This will be in the same config file in the Directors section and will
+          look something like::
+          
+                  pipe_transport = address_pipe
+
+          Again, this is already present in the default setup.
+
+       c. Make sure that local_domains is configured to deliver local mail to 
+          the host machine.
+
+          So, if your mail addresses are of the form *recipient at foo.bar.baz*
+          then you should have::
+          
+                  local_domains = foo.bar.baz
+  
+       d. Restart Exim
+          (this step may not be needed for machines running Sendmail).
+
+    6. In the file /etc/aliases set up the appropriate pipe alias.
+
+       For example - a line such as::
+
+           recipient:   "|Zope_Home/lib/python/Products/ZMailIn/zopeMailIn.py"
+          
+    7. Restart Zope.
+
+    8. Create a ZMailIn instance in Zope
+    
+       - Supply the email of the account you will be suppling emails to.
+       
+       - Supply the id of the method that will deal with message arrivals
+       
+       Note - Using Mailing Lists:
+      
+       You must configure your mail program to supply the 'envelope-to' in the
+       headers of the mail message.  You must do this for several reasons.
+        
+       - With a mailing list, the arriving mail will have the following
+         in the 'to' header of the mail, not your address::
+           
+                       mail at list.com
+  
+       - People can send a message to bob at bobsplace.com and cc or bcc it to
+         mail at list.com. This means the 'to' header will contain
+           bob at bobsplace.com
+  
+       - The 'envelope-to' header (supplied by your mail server) will always
+         contain your email address. This is important in finding the correct
+         ZMailIn Client.
+
+    9. Create a mailIn Method to handle messages as they arrive in the system.
+       When this method is called there will be an attribute called 'theMail' in
+       the namespace.  'theMail' is a dictionary containing all the information 
+       about the mail message, including a dictionary of file attachments.
+   
+       Alternatively you could use the sample method supplied in
+       *sample_zmailin_method.zexp*
+       This method will create a ZMailMessage object in the same object manager
+       as the ZMailIn Client with the id of 'Sample_Email'.
+       
+       If an email of this id already exists then it will return an error.
+       
+       This is a Python Script so you will need Zope 2.3.0 or higher.
+       
+       To import this script copy the file 
+       *sample_zmailin_method.zexp*
+       to your
+       *Zope_Home/import/*
+       directory and import it in to your Zope instance.
+       
+       Then simply point your ZMailIn Client at sample_zmailin_method by
+       entering *sample_zmailin_method* in to the method field.
+
+    10. To test the system send a mail to the above address
+        (for example recipient at foo.bar.baz) and it should appear in Zope.
+
+Domain Addresses
+
+  ZMailIn will also work for domain address, for example,
+  you can set the ZMailIn Client email address to::
+
+      @mydomain.com
+  
+  Then that ZMailIn Client will handle every message that it gets given by the
+  MTA that was addressed to that domain.
+  
+  For example::
+  
+      bob at mydomain.com
+      sam at mydomain.com
+      anyone at mydomain.com
+  
+  You will have to configure your MTA as required.
+
+Support
+
+  This was written by a number of people at NIP. For help with this release
+  contact
+  "New Information Paradigms Ltd - ZMailIn Support", mailto:zmailin-support at groups.nipltd.com

Added: spec/debian/unstable/erp5-zmailin/ZMailIn/LICENSE.txt
URL: http://svn.erp5.org/spec/debian/unstable/erp5-zmailin/ZMailIn/LICENSE.txt?rev=12792&view=auto
==============================================================================
--- spec/debian/unstable/erp5-zmailin/ZMailIn/LICENSE.txt (added)
+++ spec/debian/unstable/erp5-zmailin/ZMailIn/LICENSE.txt Thu Feb 15 18:29:02 2007
@@ -1,0 +1,37 @@
+License
+
+  Copyright (c) 2000 New Information Paradigms Ltd. http://www.nipltd.com/
+  All rights reserved.  
+
+  Redistribution and use of source and binary forms, with or without 
+  modification, are permitted provided that the following conditions 
+  are met: 
+    
+  1. Redistributions of source code must retain the above copyright 
+     notice, this list of conditions and the following disclaimer. 
+       
+  2. Redistributions in binary form must reproduce the above copyright 
+     notice, this list of conditions and the following disclaimer in the 
+     documentation and/or other materials provided with the distribution. 
+       
+  3. The name of the author may not be used to endorse or promote products 
+     derived from this software without specific prior written permission. 
+
+  THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 
+  IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 
+  OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
+  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 
+  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 
+  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
+  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 
+  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 
+  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 
+  THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+  
+   In accordance with the license provided for by the software upon 
+   which some of the source code has been derived or used, the following  
+   acknowledgement is hereby provided : 
+
+       "This product includes software developed by Digital Creations 
+       for use in the Z Object Publishing Environment 
+       (http://www.zope.org/)." 

Added: spec/debian/unstable/erp5-zmailin/ZMailIn/README.txt
URL: http://svn.erp5.org/spec/debian/unstable/erp5-zmailin/ZMailIn/README.txt?rev=12792&view=auto
==============================================================================
--- spec/debian/unstable/erp5-zmailin/ZMailIn/README.txt (added)
+++ spec/debian/unstable/erp5-zmailin/ZMailIn/README.txt Thu Feb 15 18:29:02 2007
@@ -1,0 +1,29 @@
+README.txt
+
+  ZMailIn
+
+      ZMailIn, a product designed by New Information Paradigms Ltd, provides the means to send emails directly in to Zope.
+
+      If an email is sent to a configured email address then it will arrive in the Zope environment ready for processing by any Zope method or script.
+
+  Getting Started:
+
+      (More detailed installation and setup instructions can be found in INSTALL.txt and in the help system.)
+
+      1. Extract ZMailIn in to your Zope Products directory (i.e. *Zope_Home/lib/python/Products* ).
+    
+      2. Restart Zope.
+    
+      3. Create a ZMailIn Client and set it to recieve emails form a specified account (i.e. *andyd at nipltd.com* ).
+    
+      4. Create a Method (Python Script/DTML Method/Product Method) to deal with incoming emails.
+    
+      5. Modify the ZMailIn Client's method field to point to you newly created method.
+    
+      6. Configure your Message Transport Agent (MTA) to pipe messages to a specific email (i.e. *andyd at nipltd.com* ).
+    
+      7. Restart your MTA and send a message to the configured email address (i.e. *andyd at nipltd.com* ).
+    
+
+  All questions and comments to "New Information Paradigms Ltd - ZMailIn Support", mailto:zmailin-support at nipltd.com .
+

Propchange: spec/debian/unstable/erp5-zmailin/ZMailIn/README.txt
------------------------------------------------------------------------------
    svn:executable = 

Added: spec/debian/unstable/erp5-zmailin/ZMailIn/VERSION.txt
URL: http://svn.erp5.org/spec/debian/unstable/erp5-zmailin/ZMailIn/VERSION.txt?rev=12792&view=auto
==============================================================================
--- spec/debian/unstable/erp5-zmailin/ZMailIn/VERSION.txt (added)
+++ spec/debian/unstable/erp5-zmailin/ZMailIn/VERSION.txt Thu Feb 15 18:29:02 2007
@@ -1,0 +1,1 @@
+ZMailIn-1_0_1

Added: spec/debian/unstable/erp5-zmailin/ZMailIn/ZMailIn.py
URL: http://svn.erp5.org/spec/debian/unstable/erp5-zmailin/ZMailIn/ZMailIn.py?rev=12792&view=auto
==============================================================================
--- spec/debian/unstable/erp5-zmailin/ZMailIn/ZMailIn.py (added)
+++ spec/debian/unstable/erp5-zmailin/ZMailIn/ZMailIn.py Thu Feb 15 18:29:02 2007
@@ -1,0 +1,170 @@
+
+
+__doc__ = """ZMailIn product module."""
+
+# Version string. Usually updated automatically by CVS. 
+
+# $Id: ZMailIn.py,v 1.9 2001/03/09 10:37:28 andyd Exp $
+
+__version__='$Revision: 1.9 $'[11:-2]  
+
+# Imports go here.  Fosters, Carling etc. 
+import string, rfc822, multifile, StringIO, mimetools, re
+
+from Globals import HTMLFile, default__class_init__
+from Globals import MessageDialog
+
+from OFS.SimpleItem import SimpleItem
+
+manage_addZMailInForm = HTMLFile('dtml/ZMailInAdd', globals()) 
+
+def manage_addZMailIn(self, id, title='', email_address='', method='', REQUEST=None):
+    """Add a ZMailIn to a folder."""
+    self._setObject(id, ZMailIn(id, self, title, email_address, method, REQUEST))
+    if REQUEST is not None:
+        return self.manage_main(self, REQUEST)
+
+localpart_re=re.compile('<?(.*)@.*>?')
+
+class ZMailIn(SimpleItem): 
+    """ZMailIn object. """
+
+    meta_type = 'ZMailIn Client'
+
+    index_html = HTMLFile('dtml/index', globals()) # View Interface
+
+    manage_main = HTMLFile('dtml/ZMailInEdit', globals()) # Management Interface
+
+    manage_options = ( # what management options are there?
+        {'label': 'Edit',       'action': 'manage_main'},
+        {'label': 'Security',   'action': 'manage_access'},
+    ) 
+
+    __ac_permissions__=( # what permissions make sense for us? 
+        ('View management screens', ['manage_tabs','manage_main'],('Manager',)  ),
+        ('Change permissions',      ['manage_access'],('Manager',)              ),
+        ('Change ZMailIn'     ,     ['manage_edit'],('Manager',)                ),
+        ('Post mail to ZMailIn',    ['postZMailMessage'],('Anonymous','Manager')),
+    )
+
+    def __init__(self, id, parent, title='', email_address='', method='',REQUEST=None): 
+        """initialise a new instance of ZMailIn"""
+
+        wrapped_self = self.__of__(parent)
+        self.id = id
+        self.title = title
+        self.email_address = email_address
+        self.method = method
+        
+        # Catalog this object
+        catalog = wrapped_self.restrictedTraverse("/GlobalZMailInCatalog",None)
+        catalog.catalog_object(wrapped_self, string.join(wrapped_self.getPhysicalPath(),'/'))
+
+    def manage_edit(self, title, email_address, method, REQUEST=None): 
+        """ Edit """
+        self.title = title
+        self.email_address = email_address
+        self.method = method
+
+        # Catalog this object
+        catalog = self.restrictedTraverse("/GlobalZMailInCatalog",None)
+        catalog.catalog_object(self, string.join(self.getPhysicalPath(),'/'))
+
+        if REQUEST is not None:
+            return MessageDialog(
+                title = 'Edited',
+                message = "Properties for <I>%s</I> changed." % self.id,
+                action = './manage_main',
+        )
+        
+    def manage_beforeDelete(self, container, unknown):
+        # Remove the object from the catalog
+        catalog = self.restrictedTraverse("/GlobalZMailInCatalog",None)
+        catalog.uncatalog_object(string.join(self.getPhysicalPath(),'/'))
+        # cha-ching
+
+    def postZMailMessage(self, file=None):
+        """
+        This method will create a dictionary containing all the information about the Mail Message
+        The dictionary is then handed to the method stated in self.method for processing
+        """
+
+        if not file:
+            raise IOError, 'No Mail Message Supplied'
+        
+        sio = StringIO.StringIO(file)  # Put it in a StringIO so we can play with it over and over
+        m = rfc822.Message(sio)  # Render the message through rfc822 so we can get the headers
+        sio.seek(0)
+
+        theMail = {}  # A New Dictionary
+        
+        # Place all the email header in the headers dictionary in theMail
+        headers = theMail['headers'] = {}
+        for (name,value) in m.items():
+            headers[name]=value
+        
+        # put localpart in theMail
+        address_to = headers.get('envelope-to',headers.get('to',''))
+        if not address_to:
+            raise KeyError,'neither envelope-to or to found in supplied mail message'
+
+        theMail['localpart'] = self._getLocalPart(address_to)
+         
+        # Process mime encoded mail messages
+        mf = multifile.MultiFile(sio,0)
+        theMail['attachments'] = {}
+        self._unpack_part(theMail,mf,1)
+
+        if self.method:
+            return self.restrictedTraverse(self.method)(theMail=theMail)
+        
+        self.REQUEST.RESPONSE.notFoundError('ZMailIn method not specified')
+
+    def _unpack_part(self,theMail, file, partno):
+        # Will unpack a multipart message in the MIME format and enter it in to
+        # the dictionary theMail
+
+        headers = mimetools.Message(file)
+        type = headers.getmaintype()
+        if type == 'multipart':
+            boundary = headers.getparam("boundary")
+            file.push(boundary)
+            file.readlines()
+            while not file.last:
+                file.next()
+                partno = partno + 1
+                self._unpack_part(theMail, file, partno)
+            file.pop()
+            return
+
+        name = headers.getparam("name")
+        subtype = headers.getsubtype()
+        if type=='text' and subtype=='plain' and not name:
+            # overwrite the body so that we get _only_ the body text.
+            # (Uses the plain version of the body in all situations.
+            #  HTML formated body will be in the attachments dictionary)
+            theMail['body'] = file.read()
+        else:
+            if not name:
+                name = 'part%d' % (partno,)
+                name = name + '-'+subtype
+
+            encoding = headers.getencoding()
+
+
+            outfile = StringIO.StringIO()
+            if encoding == '7bit':
+                mimetools.copyliteral(file,outfile)
+            else:
+                mimetools.decode(file,outfile,encoding)
+
+            theMail['attachments'][name]=outfile.getvalue()
+            outfile.close()
+
+    def _getLocalPart(self, address):
+        str1 = address[:string.find(address,'@')]
+        if string.find(str1,'<')>-1:
+            return str1[string.find(str1,'<')+1:]
+        return str1            
+    
+default__class_init__(ZMailIn)

Propchange: spec/debian/unstable/erp5-zmailin/ZMailIn/ZMailIn.py
------------------------------------------------------------------------------
    svn:executable = 

Added: spec/debian/unstable/erp5-zmailin/ZMailIn/ZMailMessage.py
URL: http://svn.erp5.org/spec/debian/unstable/erp5-zmailin/ZMailIn/ZMailMessage.py?rev=12792&view=auto
==============================================================================
--- spec/debian/unstable/erp5-zmailin/ZMailIn/ZMailMessage.py (added)
+++ spec/debian/unstable/erp5-zmailin/ZMailIn/ZMailMessage.py Thu Feb 15 18:29:02 2007
@@ -1,0 +1,115 @@
+__doc__ = """ZMailMessage product module."""
+
+# $Id: ZMailMessage.py,v 1.6 2001/03/06 10:33:03 andyd Exp $
+
+# Version string.
+
+__version__='$Revision: 1.6 $'[11:-2] 
+
+# Imports go here
+import rfc822, string, urllib
+
+from Products.ZCatalog.CatalogAwareness import CatalogAware   # Makes messages catalog aware
+from Products.ZCatalog import ZCatalog
+from Globals import HTMLFile      # fakes a method from a DTML file
+from Globals import MessageDialog # provid
+from Globals import Persistent    # makes an object stick in the ZODB
+
+from OFS.Folder import Folder
+from Acquisition import Implicit
+import AccessControl.Role
+
+manage_addZMailMessageForm = HTMLFile('dtml/ZMailMessageAdd', globals()) 
+
+def manage_addZMailMessage(self, id, title='', subject='', date='', to='', sender='', replyto='', body='', headers='', otherInfo='', REQUEST=None):
+    """Add a ZMailMessage to a folder."""
+    self._setObject(id, ZMailMessage(id, self, title, subject, date, to, sender, replyto, body, headers, otherInfo))
+    if REQUEST is not None:
+        return self.manage_main(self, REQUEST)
+
+
+class ZMailMessage(Folder): 
+    """ZMailMessage object."""
+        
+    meta_type = 'ZMailMessage'
+    
+    manage_options = ( # the management options available
+                       {'label': 'Contents',    'action': 'manage_main'},
+                       {'label': 'View',        'action': ''}, # defaults to index_html
+                       {'label': 'Properties',  'action': 'manage_propertiesForm'},
+                       {'label': 'Security',    'action': 'manage_access'},
+                       ) 
+
+    __ac_permissions__=( # what permissions make sense for us? 
+                         ('View management screens', ('manage_tabs','manage_main')),
+                         ('Change permissions',      ('manage_access',)           ),
+                         ('Change ZMailMessages',    ('manage_edit',)             ),
+                         ('View ZMailMessage',       ('',)                        ),
+                         )
+
+    index_html = HTMLFile('dtml/message_index', globals()) # View Interface
+    
+    manage_propertiesForm = HTMLFile('dtml/ZMailMessageEdit', globals()) # Properties Interface
+
+    def __init__(self, id, parent, title='', subject='', date='', to='', sender='', replyto='', body='', headers='', otherInfo=''): 
+        """initialise a new instance of ZMailMessage"""
+
+        wrapped_self = self.__of__(parent)
+
+        self.id = id
+        self.title = title
+        self.subject = subject
+        self.date = date
+        self.sortableDate = self._convertToSortableDate(date)
+        self.to = to
+        self.sender = sender
+        self.replyto = replyto
+        self.body = body
+        self.headers = headers
+        self.otherInfo = otherInfo
+        
+        # Catalog this object
+        catalog = wrapped_self.restrictedTraverse("ZMailInCatalog",None)
+        if catalog:
+            catalog.catalog_object(wrapped_self, string.join(wrapped_self.getPhysicalPath(),'/'))
+
+    def _convertToSortableDate(self, date):
+        # Converts a date in to a string which can be sorted to produce the correct results
+        if not date:
+            return ""
+        dateTuple = rfc822.parsedate(date)
+        return str('%04d%02d%02d%02d%02d%02d' % (dateTuple[0],dateTuple[1],dateTuple[2],dateTuple[3],dateTuple[4],dateTuple[5]))
+
+    def highlightKeyword(self, keyword):
+        # Given a keyword this method will put HTML around it to make it highlighted
+        keyword2 = urllib.unquote_plus(keyword)
+        return string.replace(self.body,keyword2,'<FONT COLOR="#008000"><B>'+keyword2+'</B></FONT>')
+
+    def manage_edit(self, title, subject, date, to, sender, replyto, body, headers, REQUEST=None): 
+        """After editing the Object this function is called."""
+        self.title = title
+        self.subject = subject
+        self.date = date
+        self.sortableDate = self._convertToSortableDate(date)
+        self.to = to
+        self.sender = sender
+        self.replyto = replyto
+        self.body = body
+        self.headers = headers
+
+        # Catalog this object
+        catalog = self.restrictedTraverse("ZMailInCatalog",None)
+        catalog.catalog_object(self, string.join(self.getPhysicalPath(),'/'))
+        
+        if REQUEST is not None:
+            return MessageDialog(
+                                 title = 'Edited',
+                                 message = "Properties for <I>%s</I> changed." % self.id,
+                                 action = './manage_main',
+                                 )
+
+    def manage_beforeDelete(self, container, unknown):
+        # Remove the object from the catalog
+        catalog = self.restrictedTraverse("ZMailInCatalog",None)
+        catalog.uncatalog_object(string.join(self.getPhysicalPath(),'/'))
+        # cha-ching

Added: spec/debian/unstable/erp5-zmailin/ZMailIn/__init__.py
URL: http://svn.erp5.org/spec/debian/unstable/erp5-zmailin/ZMailIn/__init__.py?rev=12792&view=auto
==============================================================================
--- spec/debian/unstable/erp5-zmailin/ZMailIn/__init__.py (added)
+++ spec/debian/unstable/erp5-zmailin/ZMailIn/__init__.py Thu Feb 15 18:29:02 2007
@@ -1,0 +1,81 @@
+__doc__ = """ZMailIn initialisation module."""
+
+# $Id: __init__.py,v 1.6 2002/02/05 15:22:16 andyd Exp $
+
+__version__='$Revision: 1.6 $'[11:-2]  
+
+from ZMailIn import ZMailIn, manage_addZMailIn, manage_addZMailInForm
+from ZMailMessage import ZMailMessage, manage_addZMailMessage, manage_addZMailMessageForm
+from Products.ZCatalog import ZCatalog
+from Products.PluginIndexes.FieldIndex.FieldIndex import FieldIndex
+
+def initialize(context): 
+    """Initialise the ZMailIn product."""
+    
+    # Get the product context app
+    app = context._ProductContext__app
+    proddir = app #.Control_Panel.Products.ZMailIn # Change this to place Global catalog somewhere different
+            
+    #This bit adds a Catalog to the ZMailIn Product folder of zope for cataloging instances of ZMailIn
+    if hasattr(proddir, 'GlobalZMailInCatalog'):
+            globalcat = getattr(proddir, 'GlobalZMailInCatalog', None) # get the catalog
+    else:
+            oglobalcat = ZCatalog.ZCatalog('GlobalZMailInCatalog','Global ZMailIn Catalog')
+            proddir._setObject('GlobalZMailInCatalog', oglobalcat)
+            get_transaction().note('Added GlobalZMailInCatalog')
+            get_transaction().commit()
+            globalcat = getattr(proddir, 'GlobalZMailInCatalog', None)
+            globalcat._catalog.addColumn('absolute_url') # Add absolute_url to the meta data
+            globalcat._catalog.addIndex('email_address',FieldIndex('email_address')) # Add email_address to the index of the catalog
+
+    # Register the products
+    context.registerClass(
+            
+        ZMailIn,                           # Which is the addable bit? 
+            
+        constructors = (                   # The first of these is called 
+            manage_addZMailInForm,         # when someone adds the product; 
+            manage_addZMailIn),            # the second is named here so we 
+                                           # can give people permission to 
+                                           # call it. 
+                                             
+        icon = 'www/mailin.png'
+        )
+
+    context.registerClass(
+            
+        ZMailMessage,                                # Which is the addable bit? 
+            
+        constructors = (                             # The first of these is called 
+            manage_addZMailMessageForm,              # when someone adds the product; 
+            manage_addZMailMessage),                 # the second is named here so we 
+                                                     # can give people permission to 
+                                                     # call it. 
+                                             
+        icon = 'www/mail.png'                            
+            
+        )
+    
+    context.registerHelp()
+    context.registerHelpTitle('ZMailIn Help')
+       
+
+def getZMailInClientLocation(self):
+        """Uses the GlobalZMailInCatalog to get the location of the ZMailIn client for this current email address"""
+
+        REQUEST = self.REQUEST
+        
+        # Get the GlobalZMailInCatalog from the Product folder
+        catalog = self.restrictedTraverse("/GlobalZMailInCatalog",None) #Control_Panel/Products/ZMailIn/GlobalZMailInCatalog",None)
+        
+        if catalog:
+                results = catalog.searchResults(REQUEST=REQUEST,email_address=REQUEST['email_address'])
+                if results:
+                        return "%s"%results[0].absolute_url
+                else:
+                        return 'Not Found'
+        else:
+                return 'FAIL: Unable to find GlobalZMailInCatalog'
+            
+# make the getZMailInClientLocation method accessible
+methods={ 'getZMailInClientLocation': getZMailInClientLocation}  

Propchange: spec/debian/unstable/erp5-zmailin/ZMailIn/__init__.py
------------------------------------------------------------------------------
    svn:executable = 

Added: spec/debian/unstable/erp5-zmailin/ZMailIn/debian/changelog
URL: http://svn.erp5.org/spec/debian/unstable/erp5-zmailin/ZMailIn/debian/changelog?rev=12792&view=auto
==============================================================================
--- spec/debian/unstable/erp5-zmailin/ZMailIn/debian/changelog (added)
+++ spec/debian/unstable/erp5-zmailin/ZMailIn/debian/changelog Thu Feb 15 18:29:02 2007
@@ -1,0 +1,6 @@
+erp5-zmailin (1.0.1-1) unstable; urgency=low
+
+  * Initial Release.
+
+ -- Yusei TAHARA <yusei at domen.cx>  Wed, 14 Feb 2007 03:27:56 +0900
+

Added: spec/debian/unstable/erp5-zmailin/ZMailIn/debian/compat
URL: http://svn.erp5.org/spec/debian/unstable/erp5-zmailin/ZMailIn/debian/compat?rev=12792&view=auto
==============================================================================
--- spec/debian/unstable/erp5-zmailin/ZMailIn/debian/compat (added)
+++ spec/debian/unstable/erp5-zmailin/ZMailIn/debian/compat Thu Feb 15 18:29:02 2007
@@ -1,0 +1,1 @@
+5

Added: spec/debian/unstable/erp5-zmailin/ZMailIn/debian/control
URL: http://svn.erp5.org/spec/debian/unstable/erp5-zmailin/ZMailIn/debian/control?rev=12792&view=auto
==============================================================================
--- spec/debian/unstable/erp5-zmailin/ZMailIn/debian/control (added)
+++ spec/debian/unstable/erp5-zmailin/ZMailIn/debian/control Thu Feb 15 18:29:02 2007
@@ -1,0 +1,13 @@
+Source: erp5-zmailin
+Section: web
+Priority: optional
+Maintainer: Yusei TAHARA
+Build-Depends: debhelper (>= 5.0)
+Build-Depends-Indep: zope-debhelper (>= 0.3.6)
+Standards-Version: 3.7.2
+
+Package: erp5-zmailin
+Architecture: all
+Depends: erp5-zope
+Description: A Zope product to import emails into Zope sites
+ ZMailIn is a Zope product to import emails into Zope sites.

Added: spec/debian/unstable/erp5-zmailin/ZMailIn/debian/copyright
URL: http://svn.erp5.org/spec/debian/unstable/erp5-zmailin/ZMailIn/debian/copyright?rev=12792&view=auto
==============================================================================
--- spec/debian/unstable/erp5-zmailin/ZMailIn/debian/copyright (added)
+++ spec/debian/unstable/erp5-zmailin/ZMailIn/debian/copyright Thu Feb 15 18:29:02 2007
@@ -1,0 +1,8 @@
+New Information Paradigms Ltd would like to give credit to the following people for making this product possible.
+
+Authors
+
+    * Andy Dawkins (andyd at nipltd.com)
+    
+    * Chris Withers (chrisw at nipltd.com)
+    

Added: spec/debian/unstable/erp5-zmailin/ZMailIn/debian/dzproduct
URL: http://svn.erp5.org/spec/debian/unstable/erp5-zmailin/ZMailIn/debian/dzproduct?rev=12792&view=auto
==============================================================================
--- spec/debian/unstable/erp5-zmailin/ZMailIn/debian/dzproduct (added)
+++ spec/debian/unstable/erp5-zmailin/ZMailIn/debian/dzproduct Thu Feb 15 18:29:02 2007
@@ -1,0 +1,3 @@
+Name: ZMailIn
+Package: erp5-zmailin
+ZopeVersions: >= 2.7

Added: spec/debian/unstable/erp5-zmailin/ZMailIn/debian/postinst
URL: http://svn.erp5.org/spec/debian/unstable/erp5-zmailin/ZMailIn/debian/postinst?rev=12792&view=auto
==============================================================================
--- spec/debian/unstable/erp5-zmailin/ZMailIn/debian/postinst (added)
+++ spec/debian/unstable/erp5-zmailin/ZMailIn/debian/postinst Thu Feb 15 18:29:02 2007
@@ -1,0 +1,7 @@
+#!/bin/sh -e
+
+. /usr/share/debconf/confmodule
+
+#DEBHELPER#
+
+db_stop

Added: spec/debian/unstable/erp5-zmailin/ZMailIn/debian/rules
URL: http://svn.erp5.org/spec/debian/unstable/erp5-zmailin/ZMailIn/debian/rules?rev=12792&view=auto
==============================================================================
--- spec/debian/unstable/erp5-zmailin/ZMailIn/debian/rules (added)
+++ spec/debian/unstable/erp5-zmailin/ZMailIn/debian/rules Thu Feb 15 18:29:02 2007
@@ -1,0 +1,44 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+pwd        := $(shell pwd)
+debian     := $(pwd)/debian/erp5-zmailin
+
+build: build-stamp
+build-stamp:
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+	dh_installerp5zope .
+
+binary-indep: build install
+	dh_testdir
+	dh_testroot
+	dh_installdocs
+	dh_installexamples
+	dh_installchangelogs
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary-arch:
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary install

Propchange: spec/debian/unstable/erp5-zmailin/ZMailIn/debian/rules
------------------------------------------------------------------------------
    svn:executable = 

Added: spec/debian/unstable/erp5-zmailin/ZMailIn/dtml/ZMailInAdd.dtml
URL: http://svn.erp5.org/spec/debian/unstable/erp5-zmailin/ZMailIn/dtml/ZMailInAdd.dtml?rev=12792&view=auto
==============================================================================
--- spec/debian/unstable/erp5-zmailin/ZMailIn/dtml/ZMailInAdd.dtml (added)
+++ spec/debian/unstable/erp5-zmailin/ZMailIn/dtml/ZMailInAdd.dtml Thu Feb 15 18:29:02 2007
@@ -1,0 +1,44 @@
+<html>
+  <head>
+    <title>Add ZMailIn</title>
+  </head>
+  <body bgcolor="#FFFFFF" link="#000099" vlink="#555555" alink="#77003B">
+    <h2>Add ZMailIn</h2>
+    <form action="manage_addZMailIn" method="POST">
+      <table cellspacing="2">
+	<tr>
+	  <th align="LEFT" valign="TOP">Id</th>
+	  <td align="LEFT" valign="TOP">
+            <input type="TEXT" name="id" size="50">
+          </td>
+	</tr>
+	<tr>
+	  <th align="LEFT" valign="TOP">Title</th>
+	  <td align="LEFT" valign="TOP">
+            <input type="TEXT" name="title" size="50">
+          </td>
+	</tr>
+	<tr>
+	  <th align="LEFT" valign="TOP">Email</th>
+	  <td align="LEFT" valign="TOP">
+            <input type="TEXT" name="email_address" size="50"><BR>
+            This client will receive all emails destined for this address.<BR>
+		(Note: Absolute Address or for any address to a domain use '@mydomain.com')
+          </td>
+	</tr>
+	<tr>
+	  <th align="LEFT" valign="TOP">Method</th>
+	  <td align="LEFT" valign="TOP">
+            <input type="TEXT" name="method" size="50"><BR>
+		The relative id of the method that will handle your email messages.
+		(Note: This can be almost anything including a DTML-Method, a Python Script or a method of a product.)
+          </td>
+	</tr>
+	<tr>
+	  <td>&nbsp;</td>
+	  <td><br><input type="SUBMIT" value="Add"></td>
+	</tr>
+      </table>
+    </form>
+  </body>
+</html>

Propchange: spec/debian/unstable/erp5-zmailin/ZMailIn/dtml/ZMailInAdd.dtml
------------------------------------------------------------------------------
    svn:executable = 

Added: spec/debian/unstable/erp5-zmailin/ZMailIn/dtml/ZMailInEdit.dtml
URL: http://svn.erp5.org/spec/debian/unstable/erp5-zmailin/ZMailIn/dtml/ZMailInEdit.dtml?rev=12792&view=auto
==============================================================================
--- spec/debian/unstable/erp5-zmailin/ZMailIn/dtml/ZMailInEdit.dtml (added)
+++ spec/debian/unstable/erp5-zmailin/ZMailIn/dtml/ZMailInEdit.dtml Thu Feb 15 18:29:02 2007
@@ -1,0 +1,55 @@
+<html>
+  <head><title>Edit <dtml-var title_or_id></title></head>
+  <body bgcolor="#FFFFFF" link="#000099" vlink="#555555" alink="#77003B">
+    <dtml-var manage_tabs>
+    
+    <h2>Edit <dtml-var title_or_id></h2>
+    
+    <form action="manage_edit" method="POST">
+      <table cellspacing="2">
+
+        <tr>
+	  <th align="LEFT" valign="TOP">Id</th>
+	  <td align="LEFT" valign="TOP"><dtml-var id></td>
+	</tr>
+
+	<tr>
+	  <th align="LEFT" valign="TOP"><em>Title</em></th>
+	  <td align="LEFT" valign="TOP">
+	    <input type="TEXT" name="title" size="50"
+                   value="<dtml-var title>">
+	  </td>
+	</tr>
+
+	<tr>
+	  <th align="LEFT" valign="TOP"><em>Email</em></th>
+	  <td align="LEFT" valign="TOP">
+	    <!-- Can't edit email field in version 0.2-->
+	    <input type="TEXT" name="email_address" size="50"
+                   value="<dtml-var email_address>"><BR>
+            This client will receive all emails destined for this address.<BR>
+		(Note: Absolute Address or for any address to a domain use '@mydomain.com')
+
+	  </td>
+	</tr>
+
+	<tr>
+	  <th align="LEFT" valign="TOP"><em>method</em></th>
+	  <td align="LEFT" valign="TOP">
+	    <input type="TEXT" name="method" size="50"
+                   value="<dtml-var method>"><BR>
+		The relative id of the method that will handle your email messages.
+		(Note: This can be almost anything including a DTML-Method, a Python Script or a method of a product.)
+	  </td>
+	</tr>
+
+	<tr>
+	  <td></td>
+	  <td><br><input type="SUBMIT" value="Change"></td>
+	</tr>
+
+      </table>
+    </form>
+
+  </body>
+</html>

Propchange: spec/debian/unstable/erp5-zmailin/ZMailIn/dtml/ZMailInEdit.dtml
------------------------------------------------------------------------------
    svn:executable = 

Added: spec/debian/unstable/erp5-zmailin/ZMailIn/dtml/ZMailMessageAdd.dtml
URL: http://svn.erp5.org/spec/debian/unstable/erp5-zmailin/ZMailIn/dtml/ZMailMessageAdd.dtml?rev=12792&view=auto
==============================================================================
--- spec/debian/unstable/erp5-zmailin/ZMailIn/dtml/ZMailMessageAdd.dtml (added)
+++ spec/debian/unstable/erp5-zmailin/ZMailIn/dtml/ZMailMessageAdd.dtml Thu Feb 15 18:29:02 2007
@@ -1,0 +1,28 @@
+<html>
+  <head>
+    <title>Add ZMailMessage</title>
+  </head>
+  <body bgcolor="#FFFFFF" link="#000099" vlink="#555555" alink="#77003B">
+    <h2>Add ZMailMessage</h2>
+    <form action="manage_addZMailMessage" method="POST">
+      <table cellspacing="2">
+	<tr>
+	  <th align="LEFT" valign="TOP">Id</th>
+	  <td align="LEFT" valign="TOP">
+            <input type="TEXT" name="id" size="50">
+          </td>
+	</tr>
+	<tr>
+	  <th align="LEFT" valign="TOP">Title</th>
+	  <td align="LEFT" valign="TOP">
+            <input type="TEXT" name="title" size="50">
+          </td>
+	</tr>
+	<tr>
+	  <td>&nbsp;</td>
+	  <td><br><input type="SUBMIT" value="Add"></td>
+	</tr>
+      </table>
+    </form>
+  </body>
+</html>

Added: spec/debian/unstable/erp5-zmailin/ZMailIn/dtml/ZMailMessageEdit.dtml
URL: http://svn.erp5.org/spec/debian/unstable/erp5-zmailin/ZMailIn/dtml/ZMailMessageEdit.dtml?rev=12792&view=auto
==============================================================================
--- spec/debian/unstable/erp5-zmailin/ZMailIn/dtml/ZMailMessageEdit.dtml (added)
+++ spec/debian/unstable/erp5-zmailin/ZMailIn/dtml/ZMailMessageEdit.dtml Thu Feb 15 18:29:02 2007
@@ -1,0 +1,90 @@
+<html>
+  <head><title>Edit <dtml-var title_or_id></title></head>
+  <body bgcolor="#FFFFFF" link="#000099" vlink="#555555" alink="#77003B">
+    <!--#var manage_tabs-->
+    
+    <h2>Edit <dtml-var title_or_id></h2>
+    
+    <form action="manage_edit" method="POST">
+      <table cellspacing="2">
+
+        <tr>
+	  <th align="LEFT" valign="TOP">Id</th>
+	  <td align="LEFT" valign="TOP"><dtml-var id html_quote></td>
+	</tr>
+
+	<tr>
+	  <th align="LEFT" valign="TOP"><em>Title</em></th>
+	  <td align="LEFT" valign="TOP">
+	    <input type="TEXT" name="title" size="50"
+                   value="<dtml-var title html_quote>">
+	  </td>
+	</tr>
+
+	<tr>
+	  <th align="LEFT" valign="TOP"><em>Subject</em></th>
+	  <td align="LEFT" valign="TOP">
+	    <input type="TEXT" name="subject" size="50"
+                   value="<dtml-var subject html_quote>">
+	  </td>
+	</tr>
+
+	<tr>
+	  <th align="LEFT" valign="TOP"><em>Date</em></th>
+	  <td align="LEFT" valign="TOP">
+	    <input type="TEXT" name="date" size="50"
+                   value="<dtml-var date html_quote>">
+	  </td>
+	</tr>
+
+	<tr>
+	  <th align="LEFT" valign="TOP"><em>To</em></th>
+	  <td align="LEFT" valign="TOP">
+	    <input type="TEXT" name="to" size="50"
+                   value="<dtml-var to html_quote>">
+	  </td>
+	</tr>
+	
+	<tr>
+	  <th align="LEFT" valign="TOP"><em>Sender</em></th>
+	  <td align="LEFT" valign="TOP">
+	    <input type="TEXT" name="sender" size="50"
+                   value="<dtml-var sender html_quote>">
+	  </td>
+	</tr>
+	
+	<tr>
+	  <th align="LEFT" valign="TOP"><em>ReplyTo</em></th>
+	  <td align="LEFT" valign="TOP">
+	    <input type="TEXT" name="replyto" size="50"
+                   value="<dtml-var replyto html_quote>">
+	  </td>
+	</tr>
+	
+	<tr>
+	  <th align="LEFT" valign="TOP"><em>Body</em></th>
+	  <td align="LEFT" valign="TOP">
+	    <TEXTAREA NAME="body" COLS="50" ROWS="7">
+<dtml-var body>
+	    </TEXTAREA>
+	  </td>
+	</tr>
+	
+	<tr>
+	  <th align="LEFT" valign="TOP"><em>Headers</em></th>
+	  <td align="LEFT" valign="TOP">
+	    <input type="TEXT" name="headers" size="50"
+                   value="<dtml-var headers html_quote>">
+	  </td>
+	</tr>
+	
+	<tr>
+	  <td></td>
+	  <td><br><input type="SUBMIT" value="Change"></td>
+	</tr>
+
+      </table>
+    </form>
+
+  </body>
+</html>

Added: spec/debian/unstable/erp5-zmailin/ZMailIn/dtml/index.dtml
URL: http://svn.erp5.org/spec/debian/unstable/erp5-zmailin/ZMailIn/dtml/index.dtml?rev=12792&view=auto
==============================================================================
--- spec/debian/unstable/erp5-zmailin/ZMailIn/dtml/index.dtml (added)
+++ spec/debian/unstable/erp5-zmailin/ZMailIn/dtml/index.dtml Thu Feb 15 18:29:02 2007
@@ -1,0 +1,15 @@
+<html>
+  <head>
+    <title><dtml-var title_or_id></title>
+  </head>
+  <body>
+    <dtml-var manage_tabs>
+
+    <h2><dtml-var title_or_id></h2><BR>
+
+    This is <dtml-var title_and_id><BR>
+    <BR>
+    Client for email address: <I><dtml-var email></I><BR>
+    When email arrives marshall it to: <I><dtml-var method></I><BR>
+  </body>
+</html>

Propchange: spec/debian/unstable/erp5-zmailin/ZMailIn/dtml/index.dtml
------------------------------------------------------------------------------
    svn:executable = 

Added: spec/debian/unstable/erp5-zmailin/ZMailIn/dtml/message_index.dtml
URL: http://svn.erp5.org/spec/debian/unstable/erp5-zmailin/ZMailIn/dtml/message_index.dtml?rev=12792&view=auto
==============================================================================
--- spec/debian/unstable/erp5-zmailin/ZMailIn/dtml/message_index.dtml (added)
+++ spec/debian/unstable/erp5-zmailin/ZMailIn/dtml/message_index.dtml Thu Feb 15 18:29:02 2007
@@ -1,0 +1,27 @@
+<html>
+  <head>
+    <title><dtml-var title_or_id></title>
+  </head>
+  <body>
+    <dtml-var manage_tabs>
+
+    <h2><dtml-var title_or_id></h2>
+
+    This is <dtml-var title_and_id><BR>
+    <HR>
+    <B>To:</B> <dtml-var to html_quote><BR>
+    <B>Sender:</B> <dtml-var sender html_quote><BR>
+    <B>Subject:</B> <dtml-var subject html_quote><BR>
+    <HR>
+    <PRE>
+<dtml-if "REQUEST.has_key('keyword')">
+<dtml-var "highlightKeyword(keyword)">
+<dtml-else>
+<dtml-var body html_quote>
+</dtml-if>
+    </PRE>
+    <dtml-in "objectIds()">
+    	<A HREF="<dtml-var sequence-item>"><dtml-var sequence-item></A><BR>
+    </dtml-in>
+  </body>
+</html>

Added: spec/debian/unstable/erp5-zmailin/ZMailIn/help/ZMailIn-Add.stx
URL: http://svn.erp5.org/spec/debian/unstable/erp5-zmailin/ZMailIn/help/ZMailIn-Add.stx?rev=12792&view=auto
==============================================================================
--- spec/debian/unstable/erp5-zmailin/ZMailIn/help/ZMailIn-Add.stx (added)
+++ spec/debian/unstable/erp5-zmailin/ZMailIn/help/ZMailIn-Add.stx Thu Feb 15 18:29:02 2007
@@ -1,0 +1,22 @@
+ZMailIn - Add: Create New ZMailIn
+       
+    Fields required to create a new ZMailIn instance.
+        
+    ID
+
+        A unique identifier to the object in the current Object Manager.
+            
+    Title
+        
+        A textural name for the object.
+            
+    Email
+        
+        The email address that this ZMailIn Client will be interested in.
+            
+        This can be a whole email address (e.g. *localpart at domain*)
+        or just the domain (e.g. *@domain*).
+            
+    Method
+                
+        The relative id of a method that will handle your email messages.

Added: spec/debian/unstable/erp5-zmailin/ZMailIn/help/ZMailIn-Edit.stx
URL: http://svn.erp5.org/spec/debian/unstable/erp5-zmailin/ZMailIn/help/ZMailIn-Edit.stx?rev=12792&view=auto
==============================================================================
--- spec/debian/unstable/erp5-zmailin/ZMailIn/help/ZMailIn-Edit.stx (added)
+++ spec/debian/unstable/erp5-zmailin/ZMailIn/help/ZMailIn-Edit.stx Thu Feb 15 18:29:02 2007
@@ -1,0 +1,18 @@
+ZMailIn - Edit: Edit an existing ZMailIn
+
+    Fields required to edit an existing ZMailIn instance.
+        
+    Title
+        
+        A textural name for the object.
+            
+    Email
+        
+        The email address that this ZMailIn Client will be interested in.
+            
+        This can be a whole email address (e.g. *localpart at domain*)
+        or just the domain (e.g. *@domain*).
+            
+    Method
+                
+        The relative id of a method that will handle your email messages.

Added: spec/debian/unstable/erp5-zmailin/ZMailIn/help/ZMailIn.py
URL: http://svn.erp5.org/spec/debian/unstable/erp5-zmailin/ZMailIn/help/ZMailIn.py?rev=12792&view=auto
==============================================================================
--- spec/debian/unstable/erp5-zmailin/ZMailIn/help/ZMailIn.py (added)
+++ spec/debian/unstable/erp5-zmailin/ZMailIn/help/ZMailIn.py Thu Feb 15 18:29:02 2007
@@ -1,0 +1,53 @@
+
+def manage_addZMailIn(self, id, title, email_address, method, REQUEST=None):
+    """
+
+    Add a ZMailIn Instance to an Object Manager.
+    
+    """
+
+class ZMailIn: 
+    """
+
+    A ZMailIn object has an email address, or email domain address, associated with it.
+    This ZMailIn object is responsible for handling all emails arriving for that email address
+    or email domain address.
+
+    """
+    
+    __constructor__ = manage_addZMailIn
+    
+    #__extends__ = ('OFS.SimpleItem.SimpleItem',)
+
+    def manage_edit(self, title, email_address, method, REQUEST): 
+        """
+
+        Edit an existing ZMailIn Object.
+  
+        """
+        
+    def manage_beforeDelete(self, container, unknown):
+        """
+
+        Removes the ZMailIn object from the GlobalZMailInCatalog.
+        
+        """
+        
+    def postZMailMessage(self, file):
+        """
+        
+        This method is the first to be called with the email file.
+        It will create a dictionary containing all the information about the Mail Message
+        The dictionary is then handed to the method stated in self.method for processing.
+        
+        Passes to the method a dictionary in the following format
+        
+             theMail['localpart'] = The local part of the email address
+             
+             theMail['body'] = The body of the email
+             
+             theMail['headers'] = {'header':'value'} dictionary
+             
+             theMail['attachments'] = {'filename':'file'} dictionary
+        
+        """

Propchange: spec/debian/unstable/erp5-zmailin/ZMailIn/help/ZMailIn.py
------------------------------------------------------------------------------
    svn:executable = 

Added: spec/debian/unstable/erp5-zmailin/ZMailIn/help/ZMailIn.stx
URL: http://svn.erp5.org/spec/debian/unstable/erp5-zmailin/ZMailIn/help/ZMailIn.stx?rev=12792&view=auto
==============================================================================
--- spec/debian/unstable/erp5-zmailin/ZMailIn/help/ZMailIn.stx (added)
+++ spec/debian/unstable/erp5-zmailin/ZMailIn/help/ZMailIn.stx Thu Feb 15 18:29:02 2007
@@ -1,0 +1,8 @@
+ZMailIn: The ZMailIn Product
+
+    Description
+        
+        The ZMailIn object handles the recieving of emails from a specified address
+        and hands them off to a specified method after preparing them for use within
+        the Zope environment.
+        

Added: spec/debian/unstable/erp5-zmailin/ZMailIn/help/ZMailMessage-Add.stx
URL: http://svn.erp5.org/spec/debian/unstable/erp5-zmailin/ZMailIn/help/ZMailMessage-Add.stx?rev=12792&view=auto
==============================================================================
--- spec/debian/unstable/erp5-zmailin/ZMailIn/help/ZMailMessage-Add.stx (added)
+++ spec/debian/unstable/erp5-zmailin/ZMailIn/help/ZMailMessage-Add.stx Thu Feb 15 18:29:02 2007
@@ -1,0 +1,11 @@
+ZMailMessage - Add: Create a new ZMailMessage
+
+    Fields required to create a new ZMailMessage instance.
+
+    ID
+
+        A unique identifier to the object in the current Object Manager.
+            
+    Title
+        
+        A textural name for the object.

Added: spec/debian/unstable/erp5-zmailin/ZMailIn/help/ZMailMessage-Edit.stx
URL: http://svn.erp5.org/spec/debian/unstable/erp5-zmailin/ZMailIn/help/ZMailMessage-Edit.stx?rev=12792&view=auto
==============================================================================
--- spec/debian/unstable/erp5-zmailin/ZMailIn/help/ZMailMessage-Edit.stx (added)
+++ spec/debian/unstable/erp5-zmailin/ZMailIn/help/ZMailMessage-Edit.stx Thu Feb 15 18:29:02 2007
@@ -1,0 +1,43 @@
+ZMailMessage - Edit: Edit an existing ZMailMessage
+
+    Fields required to edit an existing ZMailMessage instance.
+
+    Title
+        
+        A textural name for the object.
+        
+    Subject
+    
+        A textural subject for the email.
+    
+    Date
+    
+        The date stamped on the email (textural or DateTime object).
+    
+    To
+    
+        Textural information on who the email was sent to.
+        
+        Usually in the format of an email address.
+    
+    Sender
+    
+        Textural information on who the email was sent by.
+    
+        Usually in the format of an email address.
+
+    ReplyTo
+    
+        Textural information on who to send your reply to
+        (if different from the to address).
+    
+        Usually in the format of an email address.
+    
+    Body
+    
+        The body of the email message.
+    
+    Headers
+    
+        All the headers from the email message, including the ones above,
+        in a dictionary of {'headerName':'value'}.

Added: spec/debian/unstable/erp5-zmailin/ZMailIn/help/ZMailMessage.py
URL: http://svn.erp5.org/spec/debian/unstable/erp5-zmailin/ZMailIn/help/ZMailMessage.py?rev=12792&view=auto
==============================================================================
--- spec/debian/unstable/erp5-zmailin/ZMailIn/help/ZMailMessage.py (added)
+++ spec/debian/unstable/erp5-zmailin/ZMailIn/help/ZMailMessage.py Thu Feb 15 18:29:02 2007
@@ -1,0 +1,41 @@
+def manage_addZMailMessage(self, id, title, subject, date, to, sender, replyto, body, headers, otherInfo, REQUEST):
+    """
+
+    Add a ZMailMessage Instance to an Object Manager.
+
+    """
+
+class ZMailMessage: 
+    """
+
+    The ZMailMessage object is a mail message.  It stores everything about the email and indexes itself in the
+    catalog called 'ZMailInCatalog'.
+
+    """
+    __constructor__ = manage_addZMailMessage
+    
+    #__extends__ = ('Products.ZCatalog.CatalogAwareness.CatalogAware',
+    #               'OFS.Folder.Folder')
+    
+        
+    def highlightKeyword(self, keyword):
+        """
+
+        Given a keyword this method will put HTML around it to make it highlighted.
+        
+        """
+
+    def manage_edit(self, title, subject, date, to, sender, replyto, body, headers, REQUEST): 
+        """
+
+        Edit an existing ZMailMessage Object.
+
+        """
+
+    def manage_beforeDelete(self, container, unknown):
+        """
+
+        Removes the ZMailMessage object from the ZMailInCatalog.
+        
+        """
+        

Added: spec/debian/unstable/erp5-zmailin/ZMailIn/help/ZMailMessage.stx
URL: http://svn.erp5.org/spec/debian/unstable/erp5-zmailin/ZMailIn/help/ZMailMessage.stx?rev=12792&view=auto
==============================================================================
--- spec/debian/unstable/erp5-zmailin/ZMailIn/help/ZMailMessage.stx (added)
+++ spec/debian/unstable/erp5-zmailin/ZMailIn/help/ZMailMessage.stx Thu Feb 15 18:29:02 2007
@@ -1,0 +1,28 @@
+ZMailMessage: The ZMailMessage Product
+
+    Description
+    
+        This is an email object held within a Zope Object Manager.
+        
+        It consists of the following attributes:
+        
+            * id - A unique reference to the object.
+            
+            * title - A Title for the mail message.
+            
+            * subject - The subject line from the email message.
+            
+            * date - The date from the email message.
+            
+            * sortableDate - The same date but in a sortable text format.
+            
+            * to - Who the email was addressed to.
+            
+            * sender - Who the email was from.
+            
+            * replyto - The reply to from the email.
+            
+            * body - The body of the email.
+            
+            * headers - The entire headers from the email as a dictionary.
+                          

Added: spec/debian/unstable/erp5-zmailin/ZMailIn/mailmessage.txt
URL: http://svn.erp5.org/spec/debian/unstable/erp5-zmailin/ZMailIn/mailmessage.txt?rev=12792&view=auto
==============================================================================
--- spec/debian/unstable/erp5-zmailin/ZMailIn/mailmessage.txt (added)
+++ spec/debian/unstable/erp5-zmailin/ZMailIn/mailmessage.txt Thu Feb 15 18:29:02 2007
@@ -1,0 +1,31 @@
+From andyd at nipltd.com Tue Jun 13 09:36:10 2000
+Received: from marvin.nipltd.com ([194.193.44.1] ident=root)
+	by hivemind.nipltd.com with esmtp (Exim 3.14 #1)
+	id 131mB8-0001Qa-00
+	for zmail at hivemind.nipltd.com; Tue, 13 Jun 2000 09:36:10 +0100
+Received: from andyd.nipltd.com ([194.193.44.133] helo=bilbo)
+	by marvin.nipltd.com with smtp (AMailer 1.2.02 #1)
+	id 131m7M-0000Yr-00
+	for zmail at hivemind.nipltd.com; Tue, 13 Jun 2000 09:32:16 +0100
+From: "Andy Dawkins" <andyd at nipltd.com>
+To: <testing at legolas.private.nipltd.com>
+Envelope-to: testing at legolas.private.nipltd.com
+Subject: Mail In Test
+Date: Tue, 13 Jun 2000 09:34:08 +0100
+Message-ID: <NEBBLGACMKDPCFFIIEALKEDDCBAA.andyd at nipltd.com>
+MIME-Version: 1.0
+Content-Type: text/plain;
+	charset="iso-8859-1"
+Content-Transfer-Encoding: 7bit
+X-Priority: 3 (Normal)
+X-MSMail-Priority: Normal
+X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
+Importance: Normal
+X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
+
+THis is a mailIn test from ME.
+
+Ha Ha
+
+-Andy
+

Added: spec/debian/unstable/erp5-zmailin/ZMailIn/refresh.txt
URL: http://svn.erp5.org/spec/debian/unstable/erp5-zmailin/ZMailIn/refresh.txt?rev=12792&view=auto
==============================================================================
--- spec/debian/unstable/erp5-zmailin/ZMailIn/refresh.txt (added)
+++ spec/debian/unstable/erp5-zmailin/ZMailIn/refresh.txt Thu Feb 15 18:29:02 2007
@@ -1,0 +1,1 @@
+Refresh

Added: spec/debian/unstable/erp5-zmailin/ZMailIn/sample_zmailin_method.zexp
URL: http://svn.erp5.org/spec/debian/unstable/erp5-zmailin/ZMailIn/sample_zmailin_method.zexp?rev=12792&view=auto
==============================================================================
Binary file - no diff available.

Propchange: spec/debian/unstable/erp5-zmailin/ZMailIn/sample_zmailin_method.zexp
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: spec/debian/unstable/erp5-zmailin/ZMailIn/www/mail.png
URL: http://svn.erp5.org/spec/debian/unstable/erp5-zmailin/ZMailIn/www/mail.png?rev=12792&view=auto
==============================================================================
Binary file - no diff available.

Propchange: spec/debian/unstable/erp5-zmailin/ZMailIn/www/mail.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: spec/debian/unstable/erp5-zmailin/ZMailIn/www/mailin.png
URL: http://svn.erp5.org/spec/debian/unstable/erp5-zmailin/ZMailIn/www/mailin.png?rev=12792&view=auto
==============================================================================
Binary file - no diff available.

Propchange: spec/debian/unstable/erp5-zmailin/ZMailIn/www/mailin.png
------------------------------------------------------------------------------
    svn:executable = 

Propchange: spec/debian/unstable/erp5-zmailin/ZMailIn/www/mailin.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: spec/debian/unstable/erp5-zmailin/ZMailIn/zopeMailIn.py
URL: http://svn.erp5.org/spec/debian/unstable/erp5-zmailin/ZMailIn/zopeMailIn.py?rev=12792&view=auto
==============================================================================
--- spec/debian/unstable/erp5-zmailin/ZMailIn/zopeMailIn.py (added)
+++ spec/debian/unstable/erp5-zmailin/ZMailIn/zopeMailIn.py Thu Feb 15 18:29:02 2007
@@ -1,0 +1,88 @@
+#!/usr/bin/python
+
+# This python module will send a mail message to a zope instance that has the relevent
+# ZMailIn client present.
+
+# $Id: zopeMailIn.py,v 1.9 2001/02/20 16:36:24 andyd Exp $
+
+__version__='$Revision: 1.9 $'[11:-2]  
+
+import sys, zopeMailInConf, urllib
+import rfc822, StringIO, string
+
+def GetLocationHTTP(host, emailaddress):
+        # Attempt to get the location of the ZMailIn client for the given email address
+        try:
+                returned = urllib.urlopen(host, urllib.urlencode({'email_address':emailaddress})).read()
+        except IOError,e:
+                print "ZMailIn Error: Problem Connecting to server",e
+                sys.exit(73)
+        return returned
+
+def _make_url(host=zopeMailInConf.host, path=''):
+        user_and_pass=''
+        
+        if zopeMailInConf.username and zopeMailInConf.password:
+                user_and_pass="%s:%s@"%(zopeMailInConf.username,zopeMailInConf.password)
+                
+        return host[:7] + user_and_pass + host[7:] + path
+
+if __name__ == '__main__':
+        # This gets called by the MTA when a new message arrives.
+        # The mail message file gets passed in on the stdin
+        
+        f = sys.stdin   # First get a handle on the message file
+        messageText = f.read()
+        
+        url = ''
+        if len(sys.argv)>1:
+                url = sys.argv[1]
+        
+        if not url:
+                # get a url
+                mf = rfc822.Message(StringIO.StringIO(messageText))
+                messageTo = mf.get('envelope-to',mf.get('to',''))
+                if not messageTo:
+                        print "ZMailIn Error: No 'envelope-to' or 'to' header in message"
+                        sys.exit(1)
+                        
+                host = _make_url(path='getZMailInClientLocation')
+
+                # Try to get the exact email address
+                url = GetLocationHTTP(host, messageTo)
+                
+                if url[:4]=='FAIL':
+                        print "ZMailIn Error:",url
+                        sys.exit(1)
+                
+                if url=='Not Found':
+                        # We didn't get the exact email address so try for a domain match only
+                        domain = messageTo[string.rfind(messageTo,'@'):]
+                        url = GetLocationHTTP(host, domain)
+                
+                if url=='Not Found' or '\n' in url:
+                        print "ZMailIn Error: ZMailIn Client does not exist"
+                        sys.exit(1)
+                        
+                url = _make_url(url)
+
+        if url:
+                
+                url = url + '/postZMailMessage'
+                try:
+                        result = urllib.urlopen(url, urllib.urlencode({'file':messageText})).read()
+                except (IOError,EOFError),e:
+                        print "ZMailIn Error: Problem Connecting to server",e
+                        sys.exit(73)
+                
+                # if the ZMailIn Client's method returned anything, then 'something bad' happened.
+                if result:
+                        print result
+                        sys.exit(1)
+                        
+                sys.exit(0)
+
+        print "ZMailIn Error: No ZMailIn Client URL found or specified."
+        sys.exit(1)
+        
+        

Added: spec/debian/unstable/erp5-zmailin/ZMailIn/zopeMailInConf.py
URL: http://svn.erp5.org/spec/debian/unstable/erp5-zmailin/ZMailIn/zopeMailInConf.py?rev=12792&view=auto
==============================================================================
--- spec/debian/unstable/erp5-zmailin/ZMailIn/zopeMailInConf.py (added)
+++ spec/debian/unstable/erp5-zmailin/ZMailIn/zopeMailInConf.py Thu Feb 15 18:29:02 2007
@@ -1,0 +1,8 @@
+# Insert the Host to connect to
+# Inculde username/password in the url if required
+
+# $Id: zopeMailInConf.py,v 1.3 2001/02/26 14:52:45 andyd Exp $
+
+host="""http://www.myserver.com:8080/"""
+username="username"
+password="password"

Added: spec/debian/unstable/erp5-zmailin/erp5-zmailin_1.0.1-1.diff.gz
URL: http://svn.erp5.org/spec/debian/unstable/erp5-zmailin/erp5-zmailin_1.0.1-1.diff.gz?rev=12792&view=auto
==============================================================================
Binary file - no diff available.

Propchange: spec/debian/unstable/erp5-zmailin/erp5-zmailin_1.0.1-1.diff.gz
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: spec/debian/unstable/erp5-zmailin/erp5-zmailin_1.0.1-1.dsc
URL: http://svn.erp5.org/spec/debian/unstable/erp5-zmailin/erp5-zmailin_1.0.1-1.dsc?rev=12792&view=auto
==============================================================================
--- spec/debian/unstable/erp5-zmailin/erp5-zmailin_1.0.1-1.dsc (added)
+++ spec/debian/unstable/erp5-zmailin/erp5-zmailin_1.0.1-1.dsc Thu Feb 15 18:29:02 2007
@@ -1,0 +1,12 @@
+Format: 1.0
+Source: erp5-zmailin
+Version: 1.0.1-1
+Binary: erp5-zmailin
+Maintainer: Yusei TAHARA
+Architecture: all
+Standards-Version: 3.7.2
+Build-Depends: debhelper (>= 5.0)
+Build-Depends-Indep: zope-debhelper (>= 0.3.6)
+Files: 
+ 794fa79518087fc72e6c8c99b4fda742 15638 erp5-zmailin_1.0.1.orig.tar.gz
+ 6cb45f9440201ad2444bdc07891e883d 983 erp5-zmailin_1.0.1-1.diff.gz

Added: spec/debian/unstable/erp5-zmailin/erp5-zmailin_1.0.1-1_all.deb
URL: http://svn.erp5.org/spec/debian/unstable/erp5-zmailin/erp5-zmailin_1.0.1-1_all.deb?rev=12792&view=auto
==============================================================================
Binary file - no diff available.

Propchange: spec/debian/unstable/erp5-zmailin/erp5-zmailin_1.0.1-1_all.deb
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: spec/debian/unstable/erp5-zmailin/erp5-zmailin_1.0.1-1_i386.build
URL: http://svn.erp5.org/spec/debian/unstable/erp5-zmailin/erp5-zmailin_1.0.1-1_i386.build?rev=12792&view=auto
==============================================================================
--- spec/debian/unstable/erp5-zmailin/erp5-zmailin_1.0.1-1_i386.build (added)
+++ spec/debian/unstable/erp5-zmailin/erp5-zmailin_1.0.1-1_i386.build Thu Feb 15 18:29:02 2007
@@ -1,0 +1,34 @@
+ fakeroot debian/rules clean
+dh_testdir
+dh_testroot
+rm -f build-stamp configure-stamp
+dh_clean
+ dpkg-source -b ZMailIn
+dpkg-source: warning: source directory `./ZMailIn' is not <sourcepackage>-<upstreamversion> `erp5-zmailin-1.0.1'
+dpkg-source: warning: .orig directory name ZMailIn.orig is not <package>-<upstreamversion> (wanted erp5-zmailin-1.0.1.orig)
+dpkg-source: building erp5-zmailin using existing erp5-zmailin_1.0.1.orig.tar.gz
+dpkg-source: building erp5-zmailin in erp5-zmailin_1.0.1-1.diff.gz
+dpkg-source: building erp5-zmailin in erp5-zmailin_1.0.1-1.dsc
+ debian/rules build
+touch build-stamp
+ fakeroot debian/rules binary
+dh_testdir
+dh_testroot
+dh_clean -k
+dh_installdirs
+dh_installerp5zope .
+dh_testdir
+dh_testroot
+dh_installdocs
+dh_installexamples
+dh_installchangelogs
+dh_compress
+dh_fixperms
+dh_installdeb
+dh_gencontrol
+dh_md5sums
+dh_builddeb
+dpkg-deb: `../erp5-zmailin_1.0.1-1_all.deb' ¤Ë¥Ñ¥Ã¥±¡¼¥¸ `erp5-zmailin' ¤ò¹½ÃÛ¤·¤Æ¤¤¤Þ¤¹¡£
+ dpkg-genchanges
+dpkg-genchanges: including full source code in upload
+dpkg-buildpackage (debuild emulation): full upload (original source is included)

Added: spec/debian/unstable/erp5-zmailin/erp5-zmailin_1.0.1-1_i386.changes
URL: http://svn.erp5.org/spec/debian/unstable/erp5-zmailin/erp5-zmailin_1.0.1-1_i386.changes?rev=12792&view=auto
==============================================================================
--- spec/debian/unstable/erp5-zmailin/erp5-zmailin_1.0.1-1_i386.changes (added)
+++ spec/debian/unstable/erp5-zmailin/erp5-zmailin_1.0.1-1_i386.changes Thu Feb 15 18:29:02 2007
@@ -1,0 +1,21 @@
+Format: 1.7
+Date: Wed, 14 Feb 2007 03:27:56 +0900
+Source: erp5-zmailin
+Binary: erp5-zmailin
+Architecture: source all
+Version: 1.0.1-1
+Distribution: unstable
+Urgency: low
+Maintainer: Yusei TAHARA
+Changed-By: Yusei TAHARA <yusei at domen.cx>
+Description: 
+ erp5-zmailin - A Zope product to import emails into Zope sites
+Changes: 
+ erp5-zmailin (1.0.1-1) unstable; urgency=low
+ .
+   * Initial Release.
+Files: 
+ 797f49fe99bf6acad6e56039c76d4101 366 web optional erp5-zmailin_1.0.1-1.dsc
+ 794fa79518087fc72e6c8c99b4fda742 15638 web optional erp5-zmailin_1.0.1.orig.tar.gz
+ 6cb45f9440201ad2444bdc07891e883d 983 web optional erp5-zmailin_1.0.1-1.diff.gz
+ 3554bcbb68b4e4ab92932929ee0c763e 18150 web optional erp5-zmailin_1.0.1-1_all.deb

Added: spec/debian/unstable/erp5-zmailin/erp5-zmailin_1.0.1.orig.tar.gz
URL: http://svn.erp5.org/spec/debian/unstable/erp5-zmailin/erp5-zmailin_1.0.1.orig.tar.gz?rev=12792&view=auto
==============================================================================
Binary file - no diff available.

Propchange: spec/debian/unstable/erp5-zmailin/erp5-zmailin_1.0.1.orig.tar.gz
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream




More information about the Erp5-report mailing list