Code

Added some rollbacks where we were catching exceptions that would otherwise
[roundup.git] / roundup / mailgw.py
1 #
2 # Copyright (c) 2001 Bizar Software Pty Ltd (http://www.bizarsoftware.com.au/)
3 # This module is free software, and you may redistribute it and/or modify
4 # under the same terms as Python, so long as this copyright message and
5 # disclaimer are retained in their original form.
6 #
7 # IN NO EVENT SHALL BIZAR SOFTWARE PTY LTD BE LIABLE TO ANY PARTY FOR
8 # DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING
9 # OUT OF THE USE OF THIS CODE, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE
10 # POSSIBILITY OF SUCH DAMAGE.
11 #
12 # BIZAR SOFTWARE PTY LTD SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
14 # FOR A PARTICULAR PURPOSE.  THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
17 #
19 __doc__ = '''
20 An e-mail gateway for Roundup.
22 Incoming messages are examined for multiple parts:
23  . In a multipart/mixed message or part, each subpart is extracted and
24    examined. The text/plain subparts are assembled to form the textual
25    body of the message, to be stored in the file associated with a "msg"
26    class node. Any parts of other types are each stored in separate files
27    and given "file" class nodes that are linked to the "msg" node. 
28  . In a multipart/alternative message or part, we look for a text/plain
29    subpart and ignore the other parts.
31 Summary
32 -------
33 The "summary" property on message nodes is taken from the first non-quoting
34 section in the message body. The message body is divided into sections by
35 blank lines. Sections where the second and all subsequent lines begin with
36 a ">" or "|" character are considered "quoting sections". The first line of
37 the first non-quoting section becomes the summary of the message. 
39 Addresses
40 ---------
41 All of the addresses in the To: and Cc: headers of the incoming message are
42 looked up among the user nodes, and the corresponding users are placed in
43 the "recipients" property on the new "msg" node. The address in the From:
44 header similarly determines the "author" property of the new "msg"
45 node. The default handling for addresses that don't have corresponding
46 users is to create new users with no passwords and a username equal to the
47 address. (The web interface does not permit logins for users with no
48 passwords.) If we prefer to reject mail from outside sources, we can simply
49 register an auditor on the "user" class that prevents the creation of user
50 nodes with no passwords. 
52 Actions
53 -------
54 The subject line of the incoming message is examined to determine whether
55 the message is an attempt to create a new item or to discuss an existing
56 item. A designator enclosed in square brackets is sought as the first thing
57 on the subject line (after skipping any "Fwd:" or "Re:" prefixes). 
59 If an item designator (class name and id number) is found there, the newly
60 created "msg" node is added to the "messages" property for that item, and
61 any new "file" nodes are added to the "files" property for the item. 
63 If just an item class name is found there, we attempt to create a new item
64 of that class with its "messages" property initialized to contain the new
65 "msg" node and its "files" property initialized to contain any new "file"
66 nodes. 
68 Triggers
69 --------
70 Both cases may trigger detectors (in the first case we are calling the
71 set() method to add the message to the item's spool; in the second case we
72 are calling the create() method to create a new node). If an auditor raises
73 an exception, the original message is bounced back to the sender with the
74 explanatory message given in the exception. 
76 $Id: mailgw.py,v 1.39 2001-12-02 05:06:16 richard Exp $
77 '''
80 import string, re, os, mimetools, cStringIO, smtplib, socket, binascii, quopri
81 import traceback, MimeWriter
82 import hyperdb, date, password
84 class MailGWError(ValueError):
85     pass
87 class MailUsageError(ValueError):
88     pass
90 class Message(mimetools.Message):
91     ''' subclass mimetools.Message so we can retrieve the parts of the
92         message...
93     '''
94     def getPart(self):
95         ''' Get a single part of a multipart message and return it as a new
96             Message instance.
97         '''
98         boundary = self.getparam('boundary')
99         mid, end = '--'+boundary, '--'+boundary+'--'
100         s = cStringIO.StringIO()
101         while 1:
102             line = self.fp.readline()
103             if not line:
104                 break
105             if line.strip() in (mid, end):
106                 break
107             s.write(line)
108         if not s.getvalue().strip():
109             return None
110         s.seek(0)
111         return Message(s)
113 subject_re = re.compile(r'(?P<refwd>\s*\W?\s*(fwd|re)\s*\W?\s*)*'
114     r'\s*(\[(?P<classname>[^\d\s]+)(?P<nodeid>\d+)?\])'
115     r'\s*(?P<title>[^[]+)?(\[(?P<args>.+?)\])?', re.I)
117 class MailGW:
118     def __init__(self, instance, db):
119         self.instance = instance
120         self.db = db
122     def main(self, fp):
123         ''' fp - the file from which to read the Message.
124         '''
125         self.handle_Message(Message(fp))
127     def handle_Message(self, message):
128         '''Handle an RFC822 Message
130         Handle the Message object by calling handle_message() and then cope
131         with any errors raised by handle_message.
132         This method's job is to make that call and handle any
133         errors in a sane manner. It should be replaced if you wish to
134         handle errors in a different manner.
135         '''
136         # in some rare cases, a particularly stuffed-up e-mail will make
137         # its way into here... try to handle it gracefully
138         sendto = message.getaddrlist('from')
139         if sendto:
140             try:
141                 return self.handle_message(message)
142             except MailUsageError, value:
143                 # bounce the message back to the sender with the usage message
144                 fulldoc = '\n'.join(string.split(__doc__, '\n')[2:])
145                 sendto = [sendto[0][1]]
146                 m = ['']
147                 m.append(str(value))
148                 m.append('\n\nMail Gateway Help\n=================')
149                 m.append(fulldoc)
150                 m = self.bounce_message(message, sendto, m)
151             except:
152                 # bounce the message back to the sender with the error message
153                 sendto = [sendto[0][1]]
154                 m = ['']
155                 m.append('----  traceback of failure  ----')
156                 s = cStringIO.StringIO()
157                 import traceback
158                 traceback.print_exc(None, s)
159                 m.append(s.getvalue())
160                 m = self.bounce_message(message, sendto, m)
161         else:
162             # very bad-looking message - we don't even know who sent it
163             sendto = [self.ADMIN_EMAIL]
164             m = ['Subject: badly formed message from mail gateway']
165             m.append('')
166             m.append('The mail gateway retrieved a message which has no From:')
167             m.append('line, indicating that it is corrupt. Please check your')
168             m.append('mail gateway source. Failed message is attached.')
169             m.append('')
170             m = self.bounce_message(message, sendto, m,
171                 subject='Badly formed message from mail gateway')
173         # now send the message
174         try:
175             smtp = smtplib.SMTP(self.MAILHOST)
176             smtp.sendmail(self.ADMIN_EMAIL, sendto, m.getvalue())
177         except socket.error, value:
178             raise MailGWError, "Couldn't send confirmation email: "\
179                 "mailhost %s"%value
180         except smtplib.SMTPException, value:
181             raise MailGWError, "Couldn't send confirmation email: %s"%value
183     def bounce_message(self, message, sendto, error,
184             subject='Failed issue tracker submission'):
185         ''' create a message that explains the reason for the failed
186             issue submission to the author and attach the original
187             message.
188         '''
189         msg = cStringIO.StringIO()
190         writer = MimeWriter.MimeWriter(msg)
191         writer.addheader('Subject', subject)
192         writer.addheader('From', '%s <%s>'% (self.instance.INSTANCE_NAME,
193                                             self.ISSUE_TRACKER_EMAIL))
194         writer.addheader('To', ','.join(sendto))
195         writer.addheader('MIME-Version', '1.0')
196         part = writer.startmultipartbody('mixed')
197         part = writer.nextpart()
198         body = part.startbody('text/plain')
199         body.write('\n'.join(error))
201         # reconstruct the original message
202         m = cStringIO.StringIO()
203         w = MimeWriter.MimeWriter(m)
204         for header in message.headers:
205             header_name = header.split(':')[0]
206             if message.getheader(header_name):
207                 w.addheader(header_name,message.getheader(header_name))
208         body = w.startbody('text/plain')
209         try:
210             message.fp.seek(0)
211         except:
212             pass
213         body.write(message.fp.read())
215         # attach the original message to the returned message
216         part = writer.nextpart()
217         part.addheader('Content-Disposition','attachment')
218         part.addheader('Content-Transfer-Encoding', '7bit')
219         body = part.startbody('message/rfc822')
220         body.write(m.getvalue())
222         writer.lastpart()
223         return msg
225     def handle_message(self, message):
226         ''' message - a Message instance
228         Parse the message as per the module docstring.
229         '''
230         # handle the subject line
231         subject = message.getheader('subject', '')
232         m = subject_re.match(subject)
233         if not m:
234             raise MailUsageError, '''
235 The message you sent to roundup did not contain a properly formed subject
236 line. The subject must contain a class name or designator to indicate the
237 "topic" of the message. For example:
238     Subject: [issue] This is a new issue
239       - this will create a new issue in the tracker with the title "This is
240         a new issue".
241     Subject: [issue1234] This is a followup to issue 1234
242       - this will append the message's contents to the existing issue 1234
243         in the tracker.
245 Subject was: "%s"
246 '''%subject
248         # get the classname
249         classname = m.group('classname')
250         try:
251             cl = self.db.getclass(classname)
252         except KeyError:
253             raise MailUsageError, '''
254 The class name you identified in the subject line ("%s") does not exist in the
255 database.
257 Valid class names are: %s
258 Subject was: "%s"
259 '''%(classname, ', '.join(self.db.getclasses()), subject)
261         # get the optional nodeid
262         nodeid = m.group('nodeid')
264         # title is optional too
265         title = m.group('title')
266         if title:
267             title = title.strip()
268         else:
269             title = ''
271         # but we do need either a title or a nodeid...
272         if not nodeid and not title:
273             raise MailUsageError, '''
274 I cannot match your message to a node in the database - you need to either
275 supply a full node identifier (with number, eg "[issue123]" or keep the
276 previous subject title intact so I can match that.
278 Subject was: "%s"
279 '''%(classname, subject)
281         # extract the args
282         subject_args = m.group('args')
284         # If there's no nodeid, check to see if this is a followup and
285         # maybe someone's responded to the initial mail that created an
286         # entry. Try to find the matching nodes with the same title, and
287         # use the _last_ one matched (since that'll _usually_ be the most
288         # recent...)
289         if not nodeid and m.group('refwd'):
290             l = cl.stringFind(title=title)
291             if l:
292                 nodeid = l[-1]
294         # start of the props
295         properties = cl.getprops()
296         props = {}
298         # handle the args
299         args = m.group('args')
300         if args:
301             for prop in string.split(args, ';'):
302                 try:
303                     key, value = prop.split('=')
304                 except ValueError, message:
305                     raise MailUsageError, '''
306 Subject argument list not of form [arg=value,value,...;arg=value,value...]
307    (specific exception message was "%s")
309 Subject was: "%s"
310 '''%(message, subject)
311                 key = key.strip()
312                 try:
313                     proptype =  properties[key]
314                 except KeyError:
315                     raise MailUsageError, '''
316 Subject argument list refers to an invalid property: "%s"
318 Subject was: "%s"
319 '''%(key, subject)
320                 if isinstance(proptype, hyperdb.String):
321                     props[key] = value.strip()
322                 if isinstance(proptype, hyperdb.Password):
323                     props[key] = password.Password(value.strip())
324                 elif isinstance(proptype, hyperdb.Date):
325                     try:
326                         props[key] = date.Date(value.strip())
327                     except ValueError, message:
328                         raise UsageError, '''
329 Subject argument list contains an invalid date for %s.
331 Error was: %s
332 Subject was: "%s"
333 '''%(key, message, subject)
334                 elif isinstance(proptype, hyperdb.Interval):
335                     try:
336                         props[key] = date.Interval(value) # no strip needed
337                     except ValueError, message:
338                         raise UsageError, '''
339 Subject argument list contains an invalid date interval for %s.
341 Error was: %s
342 Subject was: "%s"
343 '''%(key, message, subject)
344                 elif isinstance(proptype, hyperdb.Link):
345                     props[key] = value.strip()
346                 elif isinstance(proptype, hyperdb.Multilink):
347                     props[key] = [x.strip() for x in value.split(',')]
349         #
350         # handle the users
351         #
352         author = self.db.uidFromAddress(message.getaddrlist('from')[0])
353         # reopen the database as the author
354         username = self.db.user.get(author, 'username')
355         self.db = self.instance.open(username)
357         # re-get the class with the new database connection
358         cl = self.db.getclass(classname)
360         # now update the recipients list
361         recipients = []
362         tracker_email = self.ISSUE_TRACKER_EMAIL.lower()
363         for recipient in message.getaddrlist('to') + message.getaddrlist('cc'):
364             if recipient[1].strip().lower() == tracker_email:
365                 continue
366             recipients.append(self.db.uidFromAddress(recipient))
368         # now handle the body - find the message
369         content_type =  message.gettype()
370         attachments = []
371         if content_type == 'multipart/mixed':
372             # skip over the intro to the first boundary
373             part = message.getPart()
374             content = None
375             while 1:
376                 # get the next part
377                 part = message.getPart()
378                 if part is None:
379                     break
380                 # parse it
381                 subtype = part.gettype()
382                 if subtype == 'text/plain' and not content:
383                     # add all text/plain parts to the message content
384                     if content is None:
385                         content = part.fp.read()
386                     else:
387                         content = content + part.fp.read()
389                 elif subtype == 'message/rfc822':
390                     # handle message/rfc822 specially - the name should be
391                     # the subject of the actual e-mail embedded here
392                     i = part.fp.tell()
393                     mailmess = Message(part.fp)
394                     name = mailmess.getheader('subject')
395                     part.fp.seek(i)
396                     attachments.append((name, 'message/rfc822', part.fp.read()))
398                 else:
399                     # try name on Content-Type
400                     name = part.getparam('name')
401                     # this is just an attachment
402                     encoding = part.getencoding()
403                     if encoding == 'base64':
404                         data = binascii.a2b_base64(part.fp.read())
405                     elif encoding == 'quoted-printable':
406                         # the quopri module wants to work with files
407                         decoded = cStringIO.StringIO()
408                         quopri.decode(part.fp, decoded)
409                         data = decoded.getvalue()
410                     elif encoding == 'uuencoded':
411                         data = binascii.a2b_uu(part.fp.read())
412                     attachments.append((name, part.gettype(), data))
414             if content is None:
415                 raise MailUsageError, '''
416 Roundup requires the submission to be plain text. The message parser could
417 not find a text/plain part to use.
418 '''
420         elif content_type[:10] == 'multipart/':
421             # skip over the intro to the first boundary
422             message.getPart()
423             content = None
424             while 1:
425                 # get the next part
426                 part = message.getPart()
427                 if part is None:
428                     break
429                 # parse it
430                 if part.gettype() == 'text/plain' and not content:
431                     # this one's our content
432                     content = part.fp.read()
433             if content is None:
434                 raise MailUsageError, '''
435 Roundup requires the submission to be plain text. The message parser could
436 not find a text/plain part to use.
437 '''
439         elif content_type != 'text/plain':
440             raise MailUsageError, '''
441 Roundup requires the submission to be plain text. The message parser could
442 not find a text/plain part to use.
443 '''
445         else:
446             content = message.fp.read()
448         summary, content = parseContent(content)
450         # handle the files
451         files = []
452         for (name, mime_type, data) in attachments:
453             files.append(self.db.file.create(type=mime_type, name=name,
454                 content=data))
456         # now handle the db stuff
457         if nodeid:
458             # If an item designator (class name and id number) is found there,
459             # the newly created "msg" node is added to the "messages" property
460             # for that item, and any new "file" nodes are added to the "files" 
461             # property for the item. 
462             message_id = self.db.msg.create(author=author,
463                 recipients=recipients, date=date.Date('.'), summary=summary,
464                 content=content, files=files)
465             try:
466                 messages = cl.get(nodeid, 'messages')
467             except IndexError:
468                 raise MailUsageError, '''
469 The node specified by the designator in the subject of your message ("%s")
470 does not exist.
472 Subject was: "%s"
473 '''%(nodeid, subject)
474             messages.append(message_id)
475             props['messages'] = messages
477             # if the message is currently 'unread' or 'resolved', then set
478             # it to 'chatting'
479             if properties.has_key('status'):
480                 try:
481                     # determine the id of 'unread', 'resolved' and 'chatting'
482                     unread_id = self.db.status.lookup('unread')
483                     resolved_id = self.db.status.lookup('resolved')
484                     chatting_id = self.db.status.lookup('chatting')
485                 except KeyError:
486                     pass
487                 else:
488                     if (not props.has_key('status') or
489                             props['status'] == unread_id or
490                             props['status'] == resolved_id):
491                         props['status'] = chatting_id
493             # add nosy in arguments to issue's nosy list, don't replace
494             if props.has_key('nosy'):
495                 n = {}
496                 for nid in cl.get(nodeid, 'nosy'):
497                     n[nid] = 1
498                 for value in props['nosy']:
499                     if self.db.hasnode('user', value):
500                         nid = value
501                     else:
502                         try:
503                             nid = self.db.user.lookup(value)
504                         except:
505                             continue
506                     if n.has_key(nid): continue
507                     n[nid] = 1
508                 props['nosy'] = n.keys()
510             # now apply the changes
511             try:
512                 cl.set(nodeid, **props)
513             except (TypeError, IndexError, ValueError), message:
514                 raise MailUsageError, '''
515 There was a problem with the message you sent:
516    %s
517 '''%message
518             # commit the changes to the DB
519             self.db.commit()
520         else:
521             # If just an item class name is found there, we attempt to create a
522             # new item of that class with its "messages" property initialized to
523             # contain the new "msg" node and its "files" property initialized to
524             # contain any new "file" nodes. 
525             message_id = self.db.msg.create(author=author,
526                 recipients=recipients, date=date.Date('.'), summary=summary,
527                 content=content, files=files)
529             # pre-set the issue to unread
530             if properties.has_key('status') and not props.has_key('status'):
531                 try:
532                     # determine the id of 'unread'
533                     unread_id = self.db.status.lookup('unread')
534                 except KeyError:
535                     pass
536                 else:
537                     props['status'] = '1'
539             # set the title to the subject
540             if properties.has_key('title') and not props.has_key('title'):
541                 props['title'] = title
543             # pre-load the messages list and nosy list
544             props['messages'] = [message_id]
545             props['nosy'] = props.get('nosy', []) + recipients
546             props['nosy'].append(author)
547             props['nosy'].sort()
549             # and attempt to create the new node
550             try:
551                 nodeid = cl.create(**props)
552             except (TypeError, IndexError, ValueError), message:
553                 raise MailUsageError, '''
554 There was a problem with the message you sent:
555    %s
556 '''%message
558             # commit the new node(s) to the DB
559             self.db.commit()
561 def parseContent(content, blank_line=re.compile(r'[\r\n]+\s*[\r\n]+'),
562         eol=re.compile(r'[\r\n]+'), signature=re.compile(r'^[>|\s]*[-_]+\s*$')):
563     ''' The message body is divided into sections by blank lines.
564     Sections where the second and all subsequent lines begin with a ">" or "|"
565     character are considered "quoting sections". The first line of the first
566     non-quoting section becomes the summary of the message. 
567     '''
568     # strip off leading carriage-returns / newlines
569     i = 0
570     for i in range(len(content)):
571         if content[i] not in '\r\n':
572             break
573     if i > 0:
574         sections = blank_line.split(content[i:])
575     else:
576         sections = blank_line.split(content)
578     # extract out the summary from the message
579     summary = ''
580     l = []
581     for section in sections:
582         #section = section.strip()
583         if not section:
584             continue
585         lines = eol.split(section)
586         if lines[0] and lines[0][0] in '>|':
587             continue
588         if len(lines) > 1 and lines[1] and lines[1][0] in '>|':
589             continue
590         if not summary:
591             summary = lines[0]
592             l.append(section)
593             continue
594         if signature.match(lines[0]):
595             break
596         l.append(section)
597     return summary, '\n\n'.join(l)
600 # $Log: not supported by cvs2svn $
601 # Revision 1.38  2001/12/01 07:17:50  richard
602 # . We now have basic transaction support! Information is only written to
603 #   the database when the commit() method is called. Only the anydbm
604 #   backend is modified in this way - neither of the bsddb backends have been.
605 #   The mail, admin and cgi interfaces all use commit (except the admin tool
606 #   doesn't have a commit command, so interactive users can't commit...)
607 # . Fixed login/registration forwarding the user to the right page (or not,
608 #   on a failure)
610 # Revision 1.37  2001/11/28 21:55:35  richard
611 #  . login_action and newuser_action return values were being ignored
612 #  . Woohoo! Found that bloody re-login bug that was killing the mail
613 #    gateway.
614 #  (also a minor cleanup in hyperdb)
616 # Revision 1.36  2001/11/26 22:55:56  richard
617 # Feature:
618 #  . Added INSTANCE_NAME to configuration - used in web and email to identify
619 #    the instance.
620 #  . Added EMAIL_SIGNATURE_POSITION to indicate where to place the roundup
621 #    signature info in e-mails.
622 #  . Some more flexibility in the mail gateway and more error handling.
623 #  . Login now takes you to the page you back to the were denied access to.
625 # Fixed:
626 #  . Lots of bugs, thanks Roché and others on the devel mailing list!
628 # Revision 1.35  2001/11/22 15:46:42  jhermann
629 # Added module docstrings to all modules.
631 # Revision 1.34  2001/11/15 10:24:27  richard
632 # handle the case where there is no file attached
634 # Revision 1.33  2001/11/13 21:44:44  richard
635 #  . re-open the database as the author in mail handling
637 # Revision 1.32  2001/11/12 22:04:29  richard
638 # oops, left debug in there
640 # Revision 1.31  2001/11/12 22:01:06  richard
641 # Fixed issues with nosy reaction and author copies.
643 # Revision 1.30  2001/11/09 22:33:28  richard
644 # More error handling fixes.
646 # Revision 1.29  2001/11/07 05:29:26  richard
647 # Modified roundup-mailgw so it can read e-mails from a local mail spool
648 # file. Truncates the spool file after parsing.
649 # Fixed a couple of small bugs introduced in roundup.mailgw when I started
650 # the popgw.
652 # Revision 1.28  2001/11/01 22:04:37  richard
653 # Started work on supporting a pop3-fetching server
654 # Fixed bugs:
655 #  . bug #477104 ] HTML tag error in roundup-server
656 #  . bug #477107 ] HTTP header problem
658 # Revision 1.27  2001/10/30 11:26:10  richard
659 # Case-insensitive match for ISSUE_TRACKER_EMAIL in address in e-mail.
661 # Revision 1.26  2001/10/30 00:54:45  richard
662 # Features:
663 #  . #467129 ] Lossage when username=e-mail-address
664 #  . #473123 ] Change message generation for author
665 #  . MailGW now moves 'resolved' to 'chatting' on receiving e-mail for an issue.
667 # Revision 1.25  2001/10/28 23:22:28  richard
668 # fixed bug #474749 ] Indentations lost
670 # Revision 1.24  2001/10/23 22:57:52  richard
671 # Fix unread->chatting auto transition, thanks Roch'e
673 # Revision 1.23  2001/10/21 04:00:20  richard
674 # MailGW now moves 'unread' to 'chatting' on receiving e-mail for an issue.
676 # Revision 1.22  2001/10/21 03:35:13  richard
677 # bug #473125: Paragraph in e-mails
679 # Revision 1.21  2001/10/21 00:53:42  richard
680 # bug #473130: Nosy list not set correctly
682 # Revision 1.20  2001/10/17 23:13:19  richard
683 # Did a fair bit of work on the admin tool. Now has an extra command "table"
684 # which displays node information in a tabular format. Also fixed import and
685 # export so they work. Removed freshen.
686 # Fixed quopri usage in mailgw from bug reports.
688 # Revision 1.19  2001/10/11 23:43:04  richard
689 # Implemented the comma-separated printing option in the admin tool.
690 # Fixed a typo (more of a vim-o actually :) in mailgw.
692 # Revision 1.18  2001/10/11 06:38:57  richard
693 # Initial cut at trying to handle people responding to CC'ed messages that
694 # create an issue.
696 # Revision 1.17  2001/10/09 07:25:59  richard
697 # Added the Password property type. See "pydoc roundup.password" for
698 # implementation details. Have updated some of the documentation too.
700 # Revision 1.16  2001/10/05 02:23:24  richard
701 #  . roundup-admin create now prompts for property info if none is supplied
702 #    on the command-line.
703 #  . hyperdb Class getprops() method may now return only the mutable
704 #    properties.
705 #  . Login now uses cookies, which makes it a whole lot more flexible. We can
706 #    now support anonymous user access (read-only, unless there's an
707 #    "anonymous" user, in which case write access is permitted). Login
708 #    handling has been moved into cgi_client.Client.main()
709 #  . The "extended" schema is now the default in roundup init.
710 #  . The schemas have had their page headings modified to cope with the new
711 #    login handling. Existing installations should copy the interfaces.py
712 #    file from the roundup lib directory to their instance home.
713 #  . Incorrectly had a Bizar Software copyright on the cgitb.py module from
714 #    Ping - has been removed.
715 #  . Fixed a whole bunch of places in the CGI interface where we should have
716 #    been returning Not Found instead of throwing an exception.
717 #  . Fixed a deviation from the spec: trying to modify the 'id' property of
718 #    an item now throws an exception.
720 # Revision 1.15  2001/08/30 06:01:17  richard
721 # Fixed missing import in mailgw :(
723 # Revision 1.14  2001/08/13 23:02:54  richard
724 # Make the mail parser a little more robust.
726 # Revision 1.13  2001/08/12 06:32:36  richard
727 # using isinstance(blah, Foo) now instead of isFooType
729 # Revision 1.12  2001/08/08 01:27:00  richard
730 # Added better error handling to mailgw.
732 # Revision 1.11  2001/08/08 00:08:03  richard
733 # oops ;)
735 # Revision 1.10  2001/08/07 00:24:42  richard
736 # stupid typo
738 # Revision 1.9  2001/08/07 00:15:51  richard
739 # Added the copyright/license notice to (nearly) all files at request of
740 # Bizar Software.
742 # Revision 1.8  2001/08/05 07:06:07  richard
743 # removed some print statements
745 # Revision 1.7  2001/08/03 07:18:22  richard
746 # Implemented correct mail splitting (was taking a shortcut). Added unit
747 # tests. Also snips signatures now too.
749 # Revision 1.6  2001/08/01 04:24:21  richard
750 # mailgw was assuming certain properties existed on the issues being created.
752 # Revision 1.5  2001/07/29 07:01:39  richard
753 # Added vim command to all source so that we don't get no steenkin' tabs :)
755 # Revision 1.4  2001/07/28 06:43:02  richard
756 # Multipart message class has the getPart method now. Added some tests for it.
758 # Revision 1.3  2001/07/28 00:34:34  richard
759 # Fixed some non-string node ids.
761 # Revision 1.2  2001/07/22 12:09:32  richard
762 # Final commit of Grande Splite
765 # vim: set filetype=python ts=4 sw=4 et si