$ 0 0 And a belated thanks for this, I'm using it and it appears to be working nicely! I just ported some old pop code over to imapx and it has gone really smoothly, thanks! Darren