| OLD | NEW |
| (Empty) |
| 1 Return-Path: <warner@users.sourceforge.net> | |
| 2 Delivered-To: warner-sourceforge@luther.lothar.com | |
| 3 Received: (qmail 24111 invoked by uid 1000); 28 Jul 2003 08:01:54 -0000 | |
| 4 Delivered-To: warner-sourceforge@lothar.com | |
| 5 Received: (qmail 68756 invoked by uid 13574); 28 Jul 2003 08:01:46 -0000 | |
| 6 Received: from unknown (HELO sc8-sf-list1.sourceforge.net) ([66.35.250.206]) (en
velope-sender <warner@users.sourceforge.net>) | |
| 7 by 130.94.181.6 (qmail-ldap-1.03) with SMTP | |
| 8 for <warner-sourceforge@lothar.com>; 28 Jul 2003 08:01:46 -0000 | |
| 9 Received: from sc8-sf-sshgate.sourceforge.net ([66.35.250.220] helo=sc8-sf-netmi
sc.sourceforge.net) | |
| 10 by sc8-sf-list1.sourceforge.net with esmtp | |
| 11 (Cipher TLSv1:DES-CBC3-SHA:168) (Exim 3.31-VA-mm2 #1 (Debian)) | |
| 12 id 19h2wz-00029d-00 | |
| 13 for <warner@users.sourceforge.net>; Mon, 28 Jul 2003 01:01:45 -0700 | |
| 14 Received: from sc8-pr-cvs1-b.sourceforge.net ([10.5.1.7] helo=sc8-pr-cvs1.source
forge.net) | |
| 15 by sc8-sf-netmisc.sourceforge.net with esmtp (Exim 3.36 #1 (Debian)) | |
| 16 id 19h2wz-0002XB-00 | |
| 17 for <warner@users.sourceforge.net>; Mon, 28 Jul 2003 01:01:45 -0700 | |
| 18 Received: from localhost ([127.0.0.1] helo=sc8-pr-cvs1.sourceforge.net) | |
| 19 by sc8-pr-cvs1.sourceforge.net with esmtp (Exim 3.22 #1 (Debian)) | |
| 20 id 19h2wz-0005a9-00 | |
| 21 for <warner@users.sourceforge.net>; Mon, 28 Jul 2003 01:01:45 -0700 | |
| 22 From: warner@users.sourceforge.net | |
| 23 To: warner@users.sourceforge.net | |
| 24 Subject: buildbot/test/mail syncmail.1,NONE,1.1 syncmail.2,NONE,1.1 syncmail.3,N
ONE,1.1 | |
| 25 Message-Id: <E19h2wz-0005a9-00@sc8-pr-cvs1.sourceforge.net> | |
| 26 Date: Mon, 28 Jul 2003 01:01:45 -0700 | |
| 27 Status: | |
| 28 | |
| 29 Update of /cvsroot/buildbot/buildbot/test/mail | |
| 30 In directory sc8-pr-cvs1:/tmp/cvs-serv21445 | |
| 31 | |
| 32 Added Files: | |
| 33 syncmail.1 syncmail.2 syncmail.3 | |
| 34 Log Message: | |
| 35 test cases for syncmail parser | |
| 36 | |
| 37 --- NEW FILE: syncmail.1 --- | |
| 38 Return-Path: <warner@users.sourceforge.net> | |
| 39 Delivered-To: warner-sourceforge@luther.lothar.com | |
| 40 Received: (qmail 23758 invoked by uid 1000); 28 Jul 2003 07:22:14 -0000 | |
| 41 Delivered-To: warner-sourceforge@lothar.com | |
| 42 Received: (qmail 62715 invoked by uid 13574); 28 Jul 2003 07:22:03 -0000 | |
| 43 Received: from unknown (HELO sc8-sf-list1.sourceforge.net) ([66.35.250.206]) (en
velope-sender <warner@users.sourceforge.net>) | |
| 44 by 130.94.181.6 (qmail-ldap-1.03) with SMTP | |
| 45 for <warner-sourceforge@lothar.com>; 28 Jul 2003 07:22:03 -0000 | |
| 46 Received: from sc8-sf-sshgate.sourceforge.net ([66.35.250.220] helo=sc8-sf-netmi
sc.sourceforge.net) | |
| 47 by sc8-sf-list1.sourceforge.net with esmtp | |
| 48 (Cipher TLSv1:DES-CBC3-SHA:168) (Exim 3.31-VA-mm2 #1 (Debian)) | |
| 49 id 19h2KY-0004Nr-00 | |
| 50 for <warner@users.sourceforge.net>; Mon, 28 Jul 2003 00:22:02 -0700 | |
| 51 Received: from sc8-pr-cvs1-b.sourceforge.net ([10.5.1.7] helo=sc8-pr-cvs1.source
forge.net) | |
| 52 by sc8-sf-netmisc.sourceforge.net with esmtp (Exim 3.36 #1 (Debian)) | |
| 53 id 19h2KY-0001rv-00 | |
| 54 for <warner@users.sourceforge.net>; Mon, 28 Jul 2003 00:22:02 -0700 | |
| 55 Received: from localhost ([127.0.0.1] helo=sc8-pr-cvs1.sourceforge.net) | |
| 56 by sc8-pr-cvs1.sourceforge.net with esmtp (Exim 3.22 #1 (Debian)) | |
| 57 id 19h2KY-0003r4-00 | |
| 58 for <warner@users.sourceforge.net>; Mon, 28 Jul 2003 00:22:02 -0700 | |
| 59 From: warner@users.sourceforge.net | |
| 60 To: warner@users.sourceforge.net | |
| 61 Subject: buildbot/buildbot/changes freshcvsmail.py,1.2,1.3 | |
| 62 Message-Id: <E19h2KY-0003r4-00@sc8-pr-cvs1.sourceforge.net> | |
| 63 Date: Mon, 28 Jul 2003 00:22:02 -0700 | |
| 64 Status: | |
| 65 | |
| 66 Update of /cvsroot/buildbot/buildbot/buildbot/changes | |
| 67 In directory sc8-pr-cvs1:/tmp/cvs-serv14795/buildbot/changes | |
| 68 | |
| 69 Modified Files: | |
| 70 freshcvsmail.py | |
| 71 Log Message: | |
| 72 remove leftover code, leave a temporary compatibility import. Note! Start | |
| 73 importing FCMaildirSource from changes.mail instead of changes.freshcvsmail | |
| 74 | |
| 75 | |
| 76 Index: freshcvsmail.py | |
| 77 =================================================================== | |
| 78 RCS file: /cvsroot/buildbot/buildbot/buildbot/changes/freshcvsmail.py,v | |
| 79 retrieving revision 1.2 | |
| 80 retrieving revision 1.3 | |
| 81 diff -C2 -d -r1.2 -r1.3 | |
| 82 *** freshcvsmail.py 27 Jul 2003 18:54:08 -0000 1.2 | |
| 83 --- freshcvsmail.py 28 Jul 2003 07:22:00 -0000 1.3 | |
| 84 *************** | |
| 85 *** 1,96 **** | |
| 86 #! /usr/bin/python | |
| 87 | |
| 88 ! from buildbot.interfaces import IChangeSource | |
| 89 ! from buildbot.changes.maildirtwisted import MaildirTwisted | |
| 90 ! from buildbot.changes.changes import Change | |
| 91 ! from rfc822 import Message | |
| 92 ! import os, os.path | |
| 93 ! | |
| 94 ! def parseFreshCVSMail(fd, prefix=None): | |
| 95 ! """Parse mail sent by FreshCVS""" | |
| 96 ! # this uses rfc822.Message so it can run under python2.1 . In the future | |
| 97 ! # it will be updated to use python2.2's "email" module. | |
| 98 ! | |
| 99 ! m = Message(fd) | |
| 100 ! # FreshCVS sets From: to "user CVS <user>", but the <> part may be | |
| 101 ! # modified by the MTA (to include a local domain) | |
| 102 ! name, addr = m.getaddr("from") | |
| 103 ! if not name: | |
| 104 ! return None # no From means this message isn't from FreshCVS | |
| 105 ! cvs = name.find(" CVS") | |
| 106 ! if cvs == -1: | |
| 107 ! return None # this message isn't from FreshCVS | |
| 108 ! who = name[:cvs] | |
| 109 ! | |
| 110 ! # we take the time of receipt as the time of checkin. Not correct, | |
| 111 ! # but it avoids the out-of-order-changes issue | |
| 112 ! #when = m.getdate() # and convert from 9-tuple, and handle timezone | |
| 113 ! | |
| 114 ! files = [] | |
| 115 ! comments = "" | |
| 116 ! isdir = 0 | |
| 117 ! lines = m.fp.readlines() | |
| 118 ! while lines: | |
| 119 ! line = lines.pop(0) | |
| 120 ! if line == "Modified files:\n": | |
| 121 ! break | |
| 122 ! while lines: | |
| 123 ! line = lines.pop(0) | |
| 124 ! if line == "\n": | |
| 125 ! break | |
| 126 ! line = line.rstrip("\n") | |
| 127 ! file, junk = line.split(None, 1) | |
| 128 ! if prefix: | |
| 129 ! # insist that the file start with the prefix: FreshCVS sends | |
| 130 ! # changes we don't care about too | |
| 131 ! bits = file.split(os.sep) | |
| 132 ! if bits[0] == prefix: | |
| 133 ! file = apply(os.path.join, bits[1:]) | |
| 134 ! else: | |
| 135 ! break | |
| 136 ! if junk == "0 0": | |
| 137 ! isdir = 1 | |
| 138 ! files.append(file) | |
| 139 ! while lines: | |
| 140 ! line = lines.pop(0) | |
| 141 ! if line == "Log message:\n": | |
| 142 ! break | |
| 143 ! # message is terminated by "ViewCVS links:" or "Index:..." (patch) | |
| 144 ! while lines: | |
| 145 ! line = lines.pop(0) | |
| 146 ! if line == "ViewCVS links:\n": | |
| 147 ! break | |
| 148 ! if line.find("Index: ") == 0: | |
| 149 ! break | |
| 150 ! comments += line | |
| 151 ! comments = comments.rstrip() + "\n" | |
| 152 ! | |
| 153 ! if not files: | |
| 154 ! return None | |
| 155 ! | |
| 156 ! change = Change(who, files, comments, isdir) | |
| 157 ! | |
| 158 ! return change | |
| 159 ! | |
| 160 ! | |
| 161 ! | |
| 162 ! class FCMaildirSource(MaildirTwisted): | |
| 163 ! """This source will watch a maildir that is subscribed to a FreshCVS | |
| 164 ! change-announcement mailing list. | |
| 165 ! """ | |
| 166 ! | |
| 167 ! __implements__ = IChangeSource, | |
| 168 | |
| 169 ! def __init__(self, maildir, prefix=None): | |
| 170 ! MaildirTwisted.__init__(self, maildir) | |
| 171 ! self.changemaster = None # filled in when added | |
| 172 ! self.prefix = prefix | |
| 173 ! def describe(self): | |
| 174 ! return "FreshCVS mailing list in maildir %s" % self.maildir.where | |
| 175 ! def messageReceived(self, filename): | |
| 176 ! path = os.path.join(self.basedir, "new", filename) | |
| 177 ! change = parseFreshCVSMail(open(path, "r"), self.prefix) | |
| 178 ! if change: | |
| 179 ! self.changemaster.addChange(change) | |
| 180 ! os.rename(os.path.join(self.basedir, "new", filename), | |
| 181 ! os.path.join(self.basedir, "cur", filename)) | |
| 182 --- 1,5 ---- | |
| 183 #! /usr/bin/python | |
| 184 | |
| 185 ! # leftover import for compatibility | |
| 186 | |
| 187 ! from buildbot.changes.mail import FCMaildirSource | |
| 188 | |
| 189 | |
| 190 | |
| 191 --- NEW FILE: syncmail.2 --- | |
| 192 Return-Path: <warner@users.sourceforge.net> | |
| 193 Delivered-To: warner-sourceforge@luther.lothar.com | |
| 194 Received: (qmail 23221 invoked by uid 1000); 28 Jul 2003 06:53:15 -0000 | |
| 195 Delivered-To: warner-sourceforge@lothar.com | |
| 196 Received: (qmail 58537 invoked by uid 13574); 28 Jul 2003 06:53:09 -0000 | |
| 197 Received: from unknown (HELO sc8-sf-list1.sourceforge.net) ([66.35.250.206]) (en
velope-sender <warner@users.sourceforge.net>) | |
| 198 by 130.94.181.6 (qmail-ldap-1.03) with SMTP | |
| 199 for <warner-sourceforge@lothar.com>; 28 Jul 2003 06:53:09 -0000 | |
| 200 Received: from sc8-sf-sshgate.sourceforge.net ([66.35.250.220] helo=sc8-sf-netmi
sc.sourceforge.net) | |
| 201 by sc8-sf-list1.sourceforge.net with esmtp | |
| 202 (Cipher TLSv1:DES-CBC3-SHA:168) (Exim 3.31-VA-mm2 #1 (Debian)) | |
| 203 id 19h1sb-0003nw-00 | |
| 204 for <warner@users.sourceforge.net>; Sun, 27 Jul 2003 23:53:09 -0700 | |
| 205 Received: from sc8-pr-cvs1-b.sourceforge.net ([10.5.1.7] helo=sc8-pr-cvs1.source
forge.net) | |
| 206 by sc8-sf-netmisc.sourceforge.net with esmtp (Exim 3.36 #1 (Debian)) | |
| 207 id 19h1sa-00018t-00 | |
| 208 for <warner@users.sourceforge.net>; Sun, 27 Jul 2003 23:53:08 -0700 | |
| 209 Received: from localhost ([127.0.0.1] helo=sc8-pr-cvs1.sourceforge.net) | |
| 210 by sc8-pr-cvs1.sourceforge.net with esmtp (Exim 3.22 #1 (Debian)) | |
| 211 id 19h1sa-0002mX-00 | |
| 212 for <warner@users.sourceforge.net>; Sun, 27 Jul 2003 23:53:08 -0700 | |
| 213 From: warner@users.sourceforge.net | |
| 214 To: warner@users.sourceforge.net | |
| 215 Subject: buildbot ChangeLog,1.93,1.94 | |
| 216 Message-Id: <E19h1sa-0002mX-00@sc8-pr-cvs1.sourceforge.net> | |
| 217 Date: Sun, 27 Jul 2003 23:53:08 -0700 | |
| 218 Status: | |
| 219 | |
| 220 Update of /cvsroot/buildbot/buildbot | |
| 221 In directory sc8-pr-cvs1:/tmp/cvs-serv10689 | |
| 222 | |
| 223 Modified Files: | |
| 224 ChangeLog | |
| 225 Log Message: | |
| 226 * NEWS: started adding new features | |
| 227 | |
| 228 | |
| 229 Index: ChangeLog | |
| 230 =================================================================== | |
| 231 RCS file: /cvsroot/buildbot/buildbot/ChangeLog,v | |
| 232 retrieving revision 1.93 | |
| 233 retrieving revision 1.94 | |
| 234 diff -C2 -d -r1.93 -r1.94 | |
| 235 *** ChangeLog 27 Jul 2003 22:53:27 -0000 1.93 | |
| 236 --- ChangeLog 28 Jul 2003 06:53:06 -0000 1.94 | |
| 237 *************** | |
| 238 *** 1,4 **** | |
| 239 --- 1,6 ---- | |
| 240 2003-07-27 Brian Warner <warner@lothar.com> | |
| 241 | |
| 242 + * NEWS: started adding new features | |
| 243 + | |
| 244 * buildbot/changes/mail.py: start work on Syncmail parser, move | |
| 245 mail sources into their own file | |
| 246 | |
| 247 | |
| 248 | |
| 249 --- NEW FILE: syncmail.3 --- | |
| 250 Return-Path: <warner@users.sourceforge.net> | |
| 251 Delivered-To: warner-sourceforge@luther.lothar.com | |
| 252 Received: (qmail 23196 invoked by uid 1000); 28 Jul 2003 06:51:53 -0000 | |
| 253 Delivered-To: warner-sourceforge@lothar.com | |
| 254 Received: (qmail 58269 invoked by uid 13574); 28 Jul 2003 06:51:46 -0000 | |
| 255 Received: from unknown (HELO sc8-sf-list1.sourceforge.net) ([66.35.250.206]) (en
velope-sender <warner@users.sourceforge.net>) | |
| 256 by 130.94.181.6 (qmail-ldap-1.03) with SMTP | |
| 257 for <warner-sourceforge@lothar.com>; 28 Jul 2003 06:51:46 -0000 | |
| 258 Received: from sc8-sf-sshgate.sourceforge.net ([66.35.250.220] helo=sc8-sf-netmi
sc.sourceforge.net) | |
| 259 by sc8-sf-list1.sourceforge.net with esmtp | |
| 260 (Cipher TLSv1:DES-CBC3-SHA:168) (Exim 3.31-VA-mm2 #1 (Debian)) | |
| 261 id 19h1rF-00027s-00 | |
| 262 for <warner@users.sourceforge.net>; Sun, 27 Jul 2003 23:51:46 -0700 | |
| 263 Received: from sc8-pr-cvs1-b.sourceforge.net ([10.5.1.7] helo=sc8-pr-cvs1.source
forge.net) | |
| 264 by sc8-sf-netmisc.sourceforge.net with esmtp (Exim 3.36 #1 (Debian)) | |
| 265 id 19h1rF-00017O-00 | |
| 266 for <warner@users.sourceforge.net>; Sun, 27 Jul 2003 23:51:45 -0700 | |
| 267 Received: from localhost ([127.0.0.1] helo=sc8-pr-cvs1.sourceforge.net) | |
| 268 by sc8-pr-cvs1.sourceforge.net with esmtp (Exim 3.22 #1 (Debian)) | |
| 269 id 19h1rF-0002jg-00 | |
| 270 for <warner@users.sourceforge.net>; Sun, 27 Jul 2003 23:51:45 -0700 | |
| 271 From: warner@users.sourceforge.net | |
| 272 To: warner@users.sourceforge.net | |
| 273 Subject: CVSROOT syncmail,1.1,NONE | |
| 274 Message-Id: <E19h1rF-0002jg-00@sc8-pr-cvs1.sourceforge.net> | |
| 275 Date: Sun, 27 Jul 2003 23:51:45 -0700 | |
| 276 Status: | |
| 277 | |
| 278 Update of /cvsroot/buildbot/CVSROOT | |
| 279 In directory sc8-pr-cvs1:/tmp/cvs-serv10515 | |
| 280 | |
| 281 Removed Files: | |
| 282 syncmail | |
| 283 Log Message: | |
| 284 nevermind | |
| 285 | |
| 286 --- syncmail DELETED --- | |
| 287 | |
| 288 | |
| 289 | |
| 290 | |
| OLD | NEW |