It seems the following places need changing: - imap/pop3dserver.c: scannew() - imap/imapscanclient.c: do_imapscan_maildir2() step 5 - maildir/maildir.c: maildir_checknew()
Questions: (1) sqwebmail uses maildir_checknew; would it be sensible to make the pop3 and imap servers use this function as well? Then the logic can be kept in one place.
pop3dserver.c can definitely use maildir_checknew(). imapscanclient.c does some other things in addition to renaming the file, so it can't use maildir_checknew().
pgp00000.pgp
Description: PGP signature
