annotate roundup/scripts/roundup_mailgw.py @ 603:986354c4b1fb config-0-4-0-branch

missed the scripts dir in the merge from HEAD
author Richard Jones <richard@users.sourceforge.net>
date Wed, 06 Feb 2002 04:29:17 +0000
parents 912029653c1c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
601
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
1 #! /usr/bin/python
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
2 #
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
3 # Copyright (c) 2001 Bizar Software Pty Ltd (http://www.bizarsoftware.com.au/)
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
4 # This module is free software, and you may redistribute it and/or modify
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
5 # under the same terms as Python, so long as this copyright message and
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
6 # disclaimer are retained in their original form.
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
7 #
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
8 # IN NO EVENT SHALL BIZAR SOFTWARE PTY LTD BE LIABLE TO ANY PARTY FOR
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
9 # DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
10 # OUT OF THE USE OF THIS CODE, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
11 # POSSIBILITY OF SUCH DAMAGE.
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
12 #
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
13 # BIZAR SOFTWARE PTY LTD SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
14 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
15 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
16 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
17 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
18 #
603
986354c4b1fb missed the scripts dir in the merge from HEAD
Richard Jones <richard@users.sourceforge.net>
parents: 601
diff changeset
19 # $Id: roundup_mailgw.py,v 1.2.2.1 2002-02-06 04:29:17 richard Exp $
601
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
20
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
21 # python version check
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
22 from roundup import version_check
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
23
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
24 import sys, os, re, cStringIO
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
25
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
26 from roundup.mailgw import Message
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
27 from roundup.i18n import _
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
28
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
29 def do_pipe(handler):
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
30 '''Read a message from standard input and pass it to the mail handler.
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
31 '''
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
32 handler.main(sys.stdin)
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
33 return 0
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
34
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
35 def do_mailbox(handler, filename):
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
36 '''Read a series of messages from the specified unix mailbox file and
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
37 pass each to the mail handler.
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
38 '''
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
39 # open the spool file and lock it
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
40 import fcntl, FCNTL
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
41 f = open(filename, 'r+')
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
42 fcntl.flock(f.fileno(), FCNTL.LOCK_EX)
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
43
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
44 # handle and clear the mailbox
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
45 try:
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
46 from mailbox import UnixMailbox
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
47 mailbox = UnixMailbox(f, factory=Message)
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
48 # grab one message
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
49 message = mailbox.next()
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
50 while message:
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
51 # call the instance mail handler
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
52 handler.handle_Message(message)
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
53 message = mailbox.next()
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
54 # nuke the file contents
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
55 os.ftruncate(f.fileno(), 0)
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
56 except:
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
57 import traceback
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
58 traceback.print_exc()
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
59 return 1
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
60 fcntl.flock(f.fileno(), FCNTL.LOCK_UN)
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
61 return 0
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
62
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
63 def do_pop(handler, server, user='', password=''):
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
64 '''Read a series of messages from the specified POP server.
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
65 '''
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
66 import getpass, poplib, socket
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
67 try:
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
68 if not user:
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
69 user = raw_input(_('User: '))
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
70 if not password:
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
71 password = getpass.getpass()
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
72 except (KeyboardInterrupt, EOFError):
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
73 # Ctrl C or D maybe also Ctrl Z under Windows.
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
74 print "\nAborted by user."
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
75 return 1
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
76
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
77 # open a connection to the server and retrieve all messages
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
78 try:
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
79 server = poplib.POP3(server)
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
80 except socket.error, message:
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
81 print "POP server error:", message
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
82 return 1
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
83 server.user(user)
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
84 server.pass_(password)
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
85 numMessages = len(server.list()[1])
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
86 for i in range(1, numMessages+1):
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
87 # retr: returns
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
88 # [ pop response e.g. '+OK 459 octets',
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
89 # [ array of message lines ],
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
90 # number of octets ]
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
91 lines = server.retr(i)[1]
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
92 s = cStringIO.StringIO('\n'.join(lines))
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
93 s.seek(0)
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
94 handler.handle_Message(Message(s))
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
95 # delete the message
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
96 server.dele(i)
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
97
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
98 # quit the server to commit changes.
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
99 server.quit()
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
100 return 0
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
101
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
102 def usage(args, message=None):
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
103 if message is not None:
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
104 print message
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
105 print _('Usage: %(program)s <instance home> [source spec]')%{'program': args[0]}
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
106 print _('''
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
107 The roundup mail gateway may be called in one of two ways:
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
108 . with an instance home as the only argument,
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
109 . with both an instance home and a mail spool file, or
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
110 . with both an instance home and a pop server account.
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
111
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
112 PIPE:
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
113 In the first case, the mail gateway reads a single message from the
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
114 standard input and submits the message to the roundup.mailgw module.
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
115
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
116 UNIX mailbox:
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
117 In the second case, the gateway reads all messages from the mail spool
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
118 file and submits each in turn to the roundup.mailgw module. The file is
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
119 emptied once all messages have been successfully handled. The file is
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
120 specified as:
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
121 mailbox /path/to/mailbox
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
122
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
123 POP:
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
124 In the third case, the gateway reads all messages from the POP server
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
125 specified and submits each in turn to the roundup.mailgw module. The
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
126 server is specified as:
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
127 pop username:password@server
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
128 The username and password may be omitted:
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
129 pop username@server
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
130 pop server
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
131 are both valid. The username and/or password will be prompted for if
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
132 not supplied on the command-line.
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
133 ''')
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
134 return 1
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
135
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
136 def main(args):
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
137 '''Handle the arguments to the program and initialise environment.
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
138 '''
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
139 # figure the instance home
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
140 if len(args) > 1:
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
141 instance_home = args[1]
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
142 else:
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
143 instance_home = os.environ.get('ROUNDUP_INSTANCE', '')
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
144 if not instance_home:
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
145 return usage(args)
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
146
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
147 # get the instance
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
148 import roundup.instance
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
149 instance = roundup.instance.open(instance_home)
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
150
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
151 # get a mail handler
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
152 db = instance.open('admin')
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
153 handler = instance.MailGW(instance, db)
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
154
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
155 # if there's no more arguments, read a single message from stdin
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
156 if len(args) == 2:
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
157 return do_pipe(handler)
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
158
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
159 # otherwise, figure what sort of mail source to handle
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
160 if len(args) < 4:
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
161 return usage(args, _('Error: not enough source specification information'))
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
162 source, specification = args[2:]
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
163 if source == 'mailbox':
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
164 return do_mailbox(handler, specification)
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
165 elif source == 'pop':
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
166 m = re.match(r'((?P<user>[^:]+)(:(?P<pass>.+))?@)?(?P<server>.+)',
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
167 specification)
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
168 if m:
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
169 return do_pop(handler, m.group('server'), m.group('user'),
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
170 m.group('pass'))
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
171 return usage(args, _('Error: pop specification not valid'))
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
172
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
173 return usage(args, _('Error: The source must be either "mailbox" or "pop"'))
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
174
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
175 def run():
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
176 sys.exit(main(sys.argv))
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
177
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
178 # call main
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
179 if __name__ == '__main__':
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
180 run()
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
181
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
182 #
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
183 # $Log: not supported by cvs2svn $
603
986354c4b1fb missed the scripts dir in the merge from HEAD
Richard Jones <richard@users.sourceforge.net>
parents: 601
diff changeset
184 # Revision 1.2 2002/01/29 20:07:15 jhermann
986354c4b1fb missed the scripts dir in the merge from HEAD
Richard Jones <richard@users.sourceforge.net>
parents: 601
diff changeset
185 # Conversion to generated script stubs
986354c4b1fb missed the scripts dir in the merge from HEAD
Richard Jones <richard@users.sourceforge.net>
parents: 601
diff changeset
186 #
601
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
187 # Revision 1.1 2002/01/29 19:53:08 jhermann
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
188 # Moved scripts from top-level dir to roundup.scripts subpackage
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
189 #
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
190 # Revision 1.21 2002/01/11 07:02:29 grubert
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
191 # put an exception around: do_pop user and password entry to catch ctrl-c/d.
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
192 #
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
193 # Revision 1.20 2002/01/07 10:43:48 richard
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
194 # #500329 ] exception on server not reachable-patch
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
195 #
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
196 # Revision 1.19 2002/01/05 02:19:03 richard
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
197 # i18n'ification
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
198 #
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
199 # Revision 1.18 2001/12/13 00:20:01 richard
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
200 # . Centralised the python version check code, bumped version to 2.1.1 (really
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
201 # needs to be 2.1.2, but that isn't released yet :)
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
202 #
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
203 # Revision 1.17 2001/12/02 05:06:16 richard
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
204 # . We now use weakrefs in the Classes to keep the database reference, so
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
205 # the close() method on the database is no longer needed.
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
206 # I bumped the minimum python requirement up to 2.1 accordingly.
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
207 # . #487480 ] roundup-server
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
208 # . #487476 ] INSTALL.txt
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
209 #
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
210 # I also cleaned up the change message / post-edit stuff in the cgi client.
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
211 # There's now a clearly marked "TODO: append the change note" where I believe
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
212 # the change note should be added there. The "changes" list will obviously
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
213 # have to be modified to be a dict of the changes, or somesuch.
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
214 #
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
215 # More testing needed.
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
216 #
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
217 # Revision 1.16 2001/11/30 18:23:55 jhermann
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
218 # Cleaned up strange import (less pollution, too)
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
219 #
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
220 # Revision 1.15 2001/11/30 13:16:37 rochecompaan
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
221 # Fixed bug. Mail gateway was not using the extended Message class
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
222 # resulting in failed submissions when mails were processed from a Unix
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
223 # mailbox
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
224 #
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
225 # Revision 1.14 2001/11/13 21:44:44 richard
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
226 # . re-open the database as the author in mail handling
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
227 #
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
228 # Revision 1.13 2001/11/09 01:05:55 richard
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
229 # Fixed bug #479511 ] mailgw to pop once engelbert gruber tested the POP
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
230 # gateway.
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
231 #
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
232 # Revision 1.12 2001/11/08 05:16:55 richard
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
233 # Rolled roundup-popgw into roundup-mailgw. Cleaned mailgw up significantly,
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
234 # tested unix mailbox some more. POP still untested.
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
235 #
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
236 # Revision 1.11 2001/11/07 05:32:58 richard
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
237 # More roundup-mailgw usage help.
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
238 #
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
239 # Revision 1.10 2001/11/07 05:30:11 richard
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
240 # Nicer usage message.
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
241 #
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
242 # Revision 1.9 2001/11/07 05:29:26 richard
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
243 # Modified roundup-mailgw so it can read e-mails from a local mail spool
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
244 # file. Truncates the spool file after parsing.
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
245 # Fixed a couple of small bugs introduced in roundup.mailgw when I started
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
246 # the popgw.
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
247 #
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
248 # Revision 1.8 2001/11/01 22:04:37 richard
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
249 # Started work on supporting a pop3-fetching server
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
250 # Fixed bugs:
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
251 # . bug #477104 ] HTML tag error in roundup-server
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
252 # . bug #477107 ] HTTP header problem
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
253 #
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
254 # Revision 1.7 2001/08/07 00:24:42 richard
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
255 # stupid typo
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
256 #
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
257 # Revision 1.6 2001/08/07 00:15:51 richard
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
258 # Added the copyright/license notice to (nearly) all files at request of
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
259 # Bizar Software.
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
260 #
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
261 # Revision 1.5 2001/08/05 07:44:25 richard
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
262 # Instances are now opened by a special function that generates a unique
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
263 # module name for the instances on import time.
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
264 #
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
265 # Revision 1.4 2001/08/03 01:28:33 richard
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
266 # Used the much nicer load_package, pointed out by Steve Majewski.
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
267 #
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
268 # Revision 1.3 2001/08/03 00:59:34 richard
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
269 # Instance import now imports the instance using imp.load_module so that
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
270 # we can have instance homes of "roundup" or other existing python package
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
271 # names.
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
272 #
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
273 # Revision 1.2 2001/07/29 07:01:39 richard
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
274 # Added vim command to all source so that we don't get no steenkin' tabs :)
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
275 #
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
276 # Revision 1.1 2001/07/23 03:46:48 richard
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
277 # moving the bin files to facilitate out-of-the-boxness
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
278 #
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
279 # Revision 1.1 2001/07/22 11:15:45 richard
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
280 # More Grande Splite stuff
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
281 #
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
282 #
912029653c1c [[Metadata associated with this commit was garbled during conversion from CVS
No Author <no-author@users.sourceforge.net>
parents:
diff changeset
283 # vim: set filetype=python ts=4 sw=4 et si

Roundup Issue Tracker: http://roundup-tracker.org/