Pulling imapConnection var. Still causes segfaults which cannot be tracked down.