Arun Isaac writes: > Did the parse-email snippet I sent in my previous mail work on the > attached mbox you sent earlier? Yes, this worked. Thank you. In any case this simplifies the code. >> (parse-email >> (and=> (call-with-input-string contents mbox->emails) first)) > > Also, it isn't a good idea to handle emails or mboxes as strings (the > `contents' variable). They should be handled as bytevectors. Perhaps it > doesn't matter here, but just saying. Yeah, I figured as much, but I shied away from reading the file in bytevector chunks that would then need to be searched for control characters to split the parts of the log file. I’ll probably do that later, but for the first pass I just decided to use read-line. > And, just out of curiosity, if there's no sensitive information in it, > could you share a copy of a debbugs log file? An example is attached. I picked it arbitrarily from the many logs that fail when I don’t drop the first line. The mbox begins at the first ^G and ends at the next ^C.