Line 159 reads: inc_page.set_raw_body(body[from_pos:to_pos]) It should read: inc_page.set_raw_body(body[from_pos:to_pos], 1) If you don't do this the from/to args are basically ignored and the whole page is always included. (I'm not a list subscriber so please direct replies to my personal address. Thanks!) Adrian