Email threads processing

name the function ;)