9 Feb 2011 15:28
Re: Problem with attach (slight correction)
Hi, Where I've wrote "it returns -1", I should have wrote "it returns 0". Now that I'm fully awake, I've read it again and realize of the error... That's it. Thanks! Cheers, Gustavo 2011/2/8 Gustavo Castro <gcastrop@...>: > Hi, > > Well, I've continued my research on this matter and found something > interesting. Long story short: somehow, when ripmime is executed over > this email containing a single word file, it extracts a zero length > file named just "d". Then, when the function str_rstr() compares the > file name with the extensions provided in the simcontrol file (inside > check_attach()), it returns -1 when the last character of the > extension tested matches the only character in this filename. The bad > extension "found" was ".cmd", so this last "d" is equal to the > filename of the supposedly attached file generated by ripmime, so > simscan returns exit code 82 and game over. > The solution should be to fix ripmime, as it's extracting a > non-existent zero length file (adding endless fun to my otherwise > boring week), but as I was trying to get this to work asap (so no more > flaming arrows hit my door), I've wrote a small workaround in > simscan.c so it ignores the file when its name length is shorter than > the extension to check at that time. That way, I rest assured that the > extension will be checked more properly (from my point of view), and > it's faster for me than to debug ripmime... (BTW: I'm using ripmime(Continue reading)
RSS Feed