| 1 |
From [email protected] Sat Mar 1 13:51:44 2003 |
| 2 |
Return-Path: <[email protected]> |
| 3 |
Received: from pop3.demon.co.uk |
| 4 |
by localhost with POP3 (fetchmail-6.2.1) |
| 5 |
for richardc@localhost (single-drop); Sat, 01 Mar 2003 13:51:44 +0000 (GMT) |
| 6 |
Received: from punt-2.mail.demon.net by mailstore for [email protected] |
| 7 |
id 1046477935:20:04275:7; Sat, 01 Mar 2003 00:18:55 GMT |
| 8 |
Received: from penderel.state51.co.uk ([193.82.57.128]) by punt-2.mail.demon.net |
| 9 |
id aa2002979; 1 Mar 2003 0:18 GMT |
| 10 |
Received: from localhost ([127.0.0.1] helo=penderel.state51.co.uk) |
| 11 |
by penderel.state51.co.uk with esmtp (Exim 3.35 #1 (Debian)) |
| 12 |
id 18oudn-000563-00; Sat, 01 Mar 2003 00:14:11 +0000 |
| 13 |
Received: from theproject.fierypit.org ([217.10.129.148]) |
| 14 |
by penderel.state51.co.uk with esmtp (Exim 3.35 #1 (Debian)) |
| 15 |
id 18oucw-00055d-00 |
| 16 |
for <[email protected]>; Sat, 01 Mar 2003 00:13:18 +0000 |
| 17 |
Received: from bob (helo=localhost) |
| 18 |
by theproject.fierypit.org with local-esmtp (Exim 3.36 #1) |
| 19 |
id 18ougI-0007Qc-00 |
| 20 |
for [email protected]; Sat, 01 Mar 2003 00:16:46 +0000 |
| 21 |
From: Bob Walker <[email protected]> |
| 22 |
X-X-Sender: [email protected] |
| 23 |
To: [email protected] |
| 24 |
Subject: Re: spamassassin |
| 25 |
In-Reply-To: <[email protected]> |
| 26 |
Message-ID: <[email protected]> |
| 27 |
References: <[email protected]> |
| 28 |
<[email protected]> |
| 29 |
<[email protected]> |
| 30 |
<[email protected]> |
| 31 |
MIME-Version: 1.0 |
| 32 |
Content-Type: TEXT/PLAIN; charset=US-ASCII |
| 33 |
Sender: [email protected] |
| 34 |
Errors-To: [email protected] |
| 35 |
X-BeenThere: [email protected] |
| 36 |
X-Mailman-Version: 2.0.11 |
| 37 |
Precedence: bulk |
| 38 |
Reply-To: [email protected] |
| 39 |
List-Help: <mailto:[email protected]?subject=help> |
| 40 |
List-Post: <mailto:[email protected]> |
| 41 |
List-Subscribe: <http://london.pm.org/mailman/listinfo/london.pm>, |
| 42 |
<mailto:[email protected]?subject=subscribe> |
| 43 |
List-Id: London.pm Perl M[ou]ngers <london.pm.london.pm.org> |
| 44 |
List-Unsubscribe: <http://london.pm.org/mailman/listinfo/london.pm>, |
| 45 |
<mailto:[email protected]?subject=unsubscribe> |
| 46 |
List-Archive: <http://london.pm.org/pipermail/london.pm/> |
| 47 |
X-Original-Date: Sat, 1 Mar 2003 00:16:46 +0000 (GMT) |
| 48 |
Date: Sat, 1 Mar 2003 00:16:46 +0000 (GMT) |
| 49 |
Status: RO |
| 50 |
Content-Length: 1208 |
| 51 |
|
| 52 |
On Fri, 28 Feb 2003, Robin Szemeti wrote: |
| 53 |
|
| 54 |
> On Friday 28 February 2003 22:34, Bob Walker wrote: |
| 55 |
> > On Fri, 28 Feb 2003, David Cantrell wrote: |
| 56 |
> > > I'd forgotten about running stuff out of inittab though - I don't often |
| 57 |
> > > go delving in there. It's a bit of a nasty hack though. |
| 58 |
> |
| 59 |
> I saved forgetting abut innittab by not knowing about it in the first place :) |
| 60 |
> |
| 61 |
> > you could always do it with DJB's deamontools. which checks to make sure |
| 62 |
> > things are runnign and if not starts them. |
| 63 |
> |
| 64 |
> ooh .. wild guess .. (ive not seen that particular peice of DJB crackware) .. |
| 65 |
> mmm it will need a /daemontools directory (as in a new directory in / ) the |
| 66 |
> config files are in /var, the binaries too. the there will be some lock |
| 67 |
> files, they could be anywhere .. there will be no man pages (except on the |
| 68 |
> net, that way they are never out of date, but may not match your software) ... |
| 69 |
> |
| 70 |
> am I close? |
| 71 |
|
| 72 |
yep. som eo fhis tuff is quite nice though. and yes he does have slight |
| 73 |
quirks. Im led to belive he doesnt comment his code either. |
| 74 |
|
| 75 |
> |
| 76 |
> |
| 77 |
|
| 78 |
-- |
| 79 |
Bob Walker |
| 80 |
http://www.randomness.org.uk/ |
| 81 |
Help! Mutated Tigers from the Antartic are invading Outer Mongolia. |
| 82 |
Send the Mashed Bunnies of Perpignan to defeat them. |
| 83 |
|
| 84 |
|
| 85 |
From [email protected] Sat Mar 1 13:51:46 2003 |
| 86 |
Return-Path: <[email protected]> |
| 87 |
Received: from pop3.demon.co.uk |
| 88 |
by localhost with POP3 (fetchmail-6.2.1) |
| 89 |
for richardc@localhost (single-drop); Sat, 01 Mar 2003 13:51:46 +0000 (GMT) |
| 90 |
Received: from punt-2.mail.demon.net by mailstore for [email protected] |
| 91 |
id 1046483429:20:10963:20; Sat, 01 Mar 2003 01:50:29 GMT |
| 92 |
Received: from penderel.state51.co.uk ([193.82.57.128]) by punt-2.mail.demon.net |
| 93 |
id aa2010747; 1 Mar 2003 1:50 GMT |
| 94 |
Received: from localhost ([127.0.0.1] helo=penderel.state51.co.uk) |
| 95 |
by penderel.state51.co.uk with esmtp (Exim 3.35 #1 (Debian)) |
| 96 |
id 18ow0A-0005iA-00; Sat, 01 Mar 2003 01:41:22 +0000 |
| 97 |
Received: from anchor-post-35.mail.demon.net ([194.217.242.85]) |
| 98 |
by penderel.state51.co.uk with esmtp (Exim 3.35 #1 (Debian)) |
| 99 |
id 18ovzM-0005hi-00 |
| 100 |
for <[email protected]>; Sat, 01 Mar 2003 01:40:32 +0000 |
| 101 |
Received: from rszemeti.demon.co.uk ([158.152.98.107]) |
| 102 |
by anchor-post-35.mail.demon.net with esmtp (Exim 3.36 #2) |
| 103 |
id 18ow2i-0003A2-0Z |
| 104 |
for [email protected]; Sat, 01 Mar 2003 01:44:00 +0000 |
| 105 |
Received: from localhost (localhost [[UNIX: localhost]]) |
| 106 |
by rszemeti.demon.co.uk (8.11.6/8.11.2) id h211hvD16626 |
| 107 |
for [email protected]; Sat, 1 Mar 2003 01:43:57 GMT |
| 108 |
Message-Id: <[email protected]> |
| 109 |
Content-Type: text/plain; |
| 110 |
charset="iso-8859-1" |
| 111 |
From: Robin Szemeti <[email protected]> |
| 112 |
Organization: home |
| 113 |
To: [email protected] |
| 114 |
Subject: Re: spamassassin |
| 115 |
X-Mailer: KMail [version 1.3.1] |
| 116 |
References: <[email protected]> <[email protected]> <[email protected]> |
| 117 |
In-Reply-To: <[email protected]> |
| 118 |
X-No-Archive: No |
| 119 |
X-Mail-Archiver: Aardvark Platinum V2.03 ( with XML parse tree options ) |
| 120 |
MIME-Version: 1.0 |
| 121 |
Content-Transfer-Encoding: 8bit |
| 122 |
Sender: [email protected] |
| 123 |
Errors-To: [email protected] |
| 124 |
X-BeenThere: [email protected] |
| 125 |
X-Mailman-Version: 2.0.11 |
| 126 |
Precedence: bulk |
| 127 |
Reply-To: [email protected] |
| 128 |
X-Reply-To: [email protected] |
| 129 |
List-Help: <mailto:[email protected]?subject=help> |
| 130 |
List-Post: <mailto:[email protected]> |
| 131 |
List-Subscribe: <http://london.pm.org/mailman/listinfo/london.pm>, |
| 132 |
<mailto:[email protected]?subject=subscribe> |
| 133 |
List-Id: London.pm Perl M[ou]ngers <london.pm.london.pm.org> |
| 134 |
List-Unsubscribe: <http://london.pm.org/mailman/listinfo/london.pm>, |
| 135 |
<mailto:[email protected]?subject=unsubscribe> |
| 136 |
List-Archive: <http://london.pm.org/pipermail/london.pm/> |
| 137 |
X-Original-Date: Sat, 1 Mar 2003 01:43:56 +0000 |
| 138 |
Date: Sat, 1 Mar 2003 01:43:56 +0000 |
| 139 |
Status: RO |
| 140 |
Content-Length: 478 |
| 141 |
|
| 142 |
On Saturday 01 March 2003 00:16, Bob Walker wrote: |
| 143 |
> On Fri, 28 Feb 2003, Robin Szemeti wrote: |
| 144 |
> > am I close? |
| 145 |
> |
| 146 |
> yep. som eo fhis tuff is quite nice though. and yes he does have slight |
| 147 |
> quirks. Im led to belive he doesnt comment his code either. |
| 148 |
|
| 149 |
oh for sure .. qmail works well etc etc ... the only things I find odd are |
| 150 |
his layout .. new dirs in / whenever he feels like it ... binaries in /var |
| 151 |
etc .. weirdass stuff .. but yes .. it *does* work well |
| 152 |
|
| 153 |
-- |
| 154 |
Robin Szemeti |
| 155 |
|
| 156 |
|
| 157 |
From [email protected] Sat Mar 1 13:51:43 2003 |
| 158 |
Return-Path: <[email protected]> |
| 159 |
Received: from pop3.demon.co.uk |
| 160 |
by localhost with POP3 (fetchmail-6.2.1) |
| 161 |
for richardc@localhost (single-drop); Sat, 01 Mar 2003 13:51:43 +0000 (GMT) |
| 162 |
Received: from punt-1.mail.demon.net by mailstore for [email protected] |
| 163 |
id 1046514550:10:05020:11; Sat, 01 Mar 2003 10:29:10 GMT |
| 164 |
Received: from penderel.state51.co.uk ([193.82.57.128]) by punt-1.mail.demon.net |
| 165 |
id aa1004775; 1 Mar 2003 10:28 GMT |
| 166 |
Received: from localhost ([127.0.0.1] helo=penderel.state51.co.uk) |
| 167 |
by penderel.state51.co.uk with esmtp (Exim 3.35 #1 (Debian)) |
| 168 |
id 18p4B5-0000g6-00; Sat, 01 Mar 2003 10:25:11 +0000 |
| 169 |
Received: from colon.colondot.net ([193.201.200.70] ident=mailnull) |
| 170 |
by penderel.state51.co.uk with esmtp (Exim 3.35 #1 (Debian)) |
| 171 |
id 18p4AG-0000fa-00 |
| 172 |
for <[email protected]>; Sat, 01 Mar 2003 10:24:20 +0000 |
| 173 |
Received: from mbm by colon.colondot.net with local (Exim 4.10) |
| 174 |
id 18p4Dc-000HiF-00 |
| 175 |
for [email protected]; Sat, 01 Mar 2003 10:27:48 +0000 |
| 176 |
From: Lusercop <`the.lusercop'@lusercop.net> |
| 177 |
To: [email protected] |
| 178 |
Subject: Re: spamassassin |
| 179 |
Message-ID: <[email protected]> |
| 180 |
References: <[email protected]> <[email protected]> <[email protected]> <[email protected]> <[email protected]> |
| 181 |
Mime-Version: 1.0 |
| 182 |
Content-Type: text/plain; charset=us-ascii |
| 183 |
Content-Disposition: inline |
| 184 |
In-Reply-To: <[email protected]> |
| 185 |
User-Agent: Mutt/1.4i |
| 186 |
Organization: Lusercop |
| 187 |
Mail-Copies-To: never |
| 188 |
Sender: [email protected] |
| 189 |
Errors-To: [email protected] |
| 190 |
X-BeenThere: [email protected] |
| 191 |
X-Mailman-Version: 2.0.11 |
| 192 |
Precedence: bulk |
| 193 |
Reply-To: [email protected] |
| 194 |
List-Help: <mailto:[email protected]?subject=help> |
| 195 |
List-Post: <mailto:[email protected]> |
| 196 |
List-Subscribe: <http://london.pm.org/mailman/listinfo/london.pm>, |
| 197 |
<mailto:[email protected]?subject=subscribe> |
| 198 |
List-Id: London.pm Perl M[ou]ngers <london.pm.london.pm.org> |
| 199 |
List-Unsubscribe: <http://london.pm.org/mailman/listinfo/london.pm>, |
| 200 |
<mailto:[email protected]?subject=unsubscribe> |
| 201 |
List-Archive: <http://london.pm.org/pipermail/london.pm/> |
| 202 |
X-Original-Date: Sat, 1 Mar 2003 10:27:48 +0000 |
| 203 |
Date: Sat, 1 Mar 2003 10:27:48 +0000 |
| 204 |
Status: RO |
| 205 |
Content-Length: 3117 |
| 206 |
|
| 207 |
On Sat, Mar 01, 2003 at 12:16:46AM +0000, Bob Walker wrote: |
| 208 |
> yep. som eo fhis tuff is quite nice though. and yes he does have slight |
| 209 |
> quirks. Im led to belive he doesnt comment his code either. |
| 210 |
|
| 211 |
(qmail-1.03/datetime.c) |
| 212 |
| void datetime_tai(dt,t) |
| 213 |
| struct datetime *dt; |
| 214 |
| datetime_sec t; |
| 215 |
| { |
| 216 |
| int day; |
| 217 |
| int tod; |
| 218 |
| int year; |
| 219 |
| int yday; |
| 220 |
| int wday; |
| 221 |
| int mon; |
| 222 |
| |
| 223 |
| tod = t % 86400; |
| 224 |
| day = t / 86400; |
| 225 |
| if (tod < 0) { tod += 86400; --day; } |
| 226 |
| |
| 227 |
| dt->hour = tod / 3600; |
| 228 |
| tod %= 3600; |
| 229 |
| dt->min = tod / 60; |
| 230 |
| dt->sec = tod % 60; |
| 231 |
| |
| 232 |
| wday = (day + 4) % 7; if (wday < 0) wday += 7; |
| 233 |
| dt->wday = wday; |
| 234 |
| |
| 235 |
| day -= 11017; |
| 236 |
| /* day 0 is march 1, 2000 */ |
| 237 |
|
| 238 |
First comment |
| 239 |
|
| 240 |
| year = 5 + day / 146097; |
| 241 |
| day = day % 146097; if (day < 0) { day += 146097; --year; } |
| 242 |
| /* from now on, day is nonnegative */ |
| 243 |
|
| 244 |
Second comment |
| 245 |
|
| 246 |
| year *= 4; |
| 247 |
| if (day == 146096) { year += 3; day = 36524; } |
| 248 |
| else { year += day / 36524; day %= 36524; } |
| 249 |
| year *= 25; |
| 250 |
| year += day / 1461; |
| 251 |
| day %= 1461; |
| 252 |
| year *= 4; |
| 253 |
| yday = (day < 306); |
| 254 |
| if (day == 1460) { year += 3; day = 365; } |
| 255 |
| else { year += day / 365; day %= 365; } |
| 256 |
| yday += day; |
| 257 |
| |
| 258 |
| day *= 10; |
| 259 |
| mon = (day + 5) / 306; |
| 260 |
| day = day + 5 - 306 * mon; |
| 261 |
| day /= 10; |
| 262 |
| if (mon >= 10) { yday -= 306; ++year; mon -= 10; } |
| 263 |
| else { yday += 59; mon += 2; } |
| 264 |
| |
| 265 |
| dt->yday = yday; |
| 266 |
| dt->year = year - 1900; |
| 267 |
| dt->mon = mon; |
| 268 |
| dt->mday = day + 1; |
| 269 |
| } |
| 270 |
|
| 271 |
So 2 comments and at least 12 unique unobvious undocumented constants. |
| 272 |
|
| 273 |
(qmail-1.03/qmail-send.c) has lots of: |
| 274 |
| /* this file is too long ----------------------------------------- xxxxx */ |
| 275 |
|
| 276 |
which is really helpful. But of course, the main code is self-documenting: |
| 277 |
| void fnmake_info(id) unsigned long id; { fn.len = fmtqfn(fn.s,"info/",id,1); } |
| 278 |
| void fnmake_todo(id) unsigned long id; { fn.len = fmtqfn(fn.s,"todo/",id,0); } |
| 279 |
| void fnmake_mess(id) unsigned long id; { fn.len = fmtqfn(fn.s,"mess/",id,1); } |
| 280 |
| void fnmake_foop(id) unsigned long id; { fn.len = fmtqfn(fn.s,"foop/",id,0); } |
| 281 |
|
| 282 |
and then we see: |
| 283 |
| /* 1 if by land, 2 if by sea, 0 if out of memory. not allowed to barf. */ |
| 284 |
| /* may trash recip. must set up rwline, between a T and a \0. */ |
| 285 |
| int rewrite(recip) |
| 286 |
| char *recip; |
| 287 |
|
| 288 |
In (qmail-1.03/qmail-qmtpd.c): |
| 289 |
| while (len > 0) { /* XXX: could speed this up, obviously */ |
| 290 |
| substdio_get(&ssin,&ch,1); |
| 291 |
| --len; |
| 292 |
| qmail_put(&qq,&ch,1); |
| 293 |
| } |
| 294 |
|
| 295 |
Obviously? With his random functions it's not obvious at all. |
| 296 |
|
| 297 |
That's enough of the *worst* things I've found. Most of it is completely |
| 298 |
uncommented, and the source is scattered in loads of little files with a |
| 299 |
single function in them. There are man pages though. |
| 300 |
|
| 301 |
I'd also like to bring your attention to a quote by Tony Finch: |
| 302 |
| <fanf2> what kind of dickwit writes install scripts in C? |
| 303 |
| <fanf2> oh djb *sigh* |
| 304 |
|
| 305 |
Unfortunately I can't find all the "/* I hate NFS */" comments, and I |
| 306 |
suspect they might be in ezmlm rather than qmail. Rest assured that I |
| 307 |
like the code for ezmlm just as much as I like the code for qmail. |
| 308 |
|
| 309 |
-- |
| 310 |
Lusercop.net - LARTing Lusers everywhere since 2002 |
| 311 |
|
| 312 |
|