Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

chaoticset (2105)

chaoticset
  (email not shown publicly)
http://chaoticset.perlmonk.org/
AOL IM: chaoticset23 (Add Buddy, Send Message)
Yahoo! ID: illuminatus_foil (Add User, Send Message)

JAPH. (That's right -- I'm not Really Inexperienced any more.)

I'm not just here, I'm here [perlmonks.org], and here [javajunkies.org] too, I ramble randomly in my philosophical blog [blogspot.com] and my other blog [blogspot.com]. Soon I'll come in a convenient six-pack.

Journal of chaoticset (2105)

Friday October 25, 2002
01:34 PM

Comedy Of Errors

[ #8606 ]
Outlook, in its infinite wisdom, produced a directory of files named the email they contained.

And Windows 2000, in its infinite wisdom, will not handle filenames longer than a certain length.

The upshot of this is that the script which should be able to burn through a whole directory of student emails and attempt to filter filth from them is stopped cold merely because one lone student decided to send an email named 'doooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo oooooooooooooooood'. Further, it fails silently (possibly because there's really such a low-level system issue with the filename being a couple hundred characters). Even worse, it only gets through 91 messages out of 1600 or so.

Just have to zip over to the Cougar and see about that "check if the file's working, if not, skip and keep going" script. I may have to write something that parses a Win2K dir output, too, because opendir fails silently and disgustingly at email 91.

This is all assuming there's no way to delete that file that Les can find without me. There's got to be a way. I mean, something has to be able to delete it...

...right?

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • Your problem is getting rid of a file with a far too long name? Have you thought of using the 8.3 filename (AKA "DOS", or "short" file name) to identify the file? In case you didn't know: ActivePerl has some functions to convert the long file name to the short file name and vice versa, built in. See `perldoc win32`, under "Win32::GetLongPathName" and "Win32::GetShortPathName".

    Granted, I don't have W2k here, so I can't be 100% sure it actually works.