KisHan SarsecHa writes:
« HTML content follows »Hello Sam,If we use the Seen flag itself to detect if mail is downloaded by pop, then some mail will not be downloaded to user's pop account under certain cases. For eg.1. User accesses account using courier-imap and views a mail, so it gets marked as seen but not yet downloaded by qmail-pop client. 2. Then user accesses account using qmail-pop - but the mail is already marked as seen, so it will not be downloaded.So we need a custom flag to identify that mail has been downloaded by qmail- pop.
Well, adding some code for that should be fine, I suppose. I can't think of, offhand, any problem with that. "make check" runs some simple tests of IMAP functionality, that's what you were looking for. It's not a complete, thorough, test suite, but it does cover the basics.
But sounds like you want POP3 mail completely segregated from IMAP mail, so you may want to simply consider having separate mailboxes for each one, and have mail delivered to both mailboxes.
Or, another thing to consider would be extended file attributes, available on most modern filesystems, and using an extended file attribute to mark POP3-downloaded mail.
Regards, Kishan Sarsecha -- Original Message -- From: "KisHan SarsecHa" <kis...@mithi.com> To: courier-imap@lists.sourceforge.net Date: Thu, 19 Jun 2014 18:48:28 +0530 Subject: [Courier-imap] Courier-IMAP removing custom flags appended in filename Hello, We have qmail-pop + courier imap server setup, where users access same mailbox using both services alternatively. We are trying to extend qmail- pop so that it maintains state of mail which are downloaded by appending a custom flag at the end of mail file name. Eg. xyz,S=1:2,d The d at the end will indicate that this mail is downloaded. However when we put such flag, courier-imap removes it, when that mail is accessed. I'm fairly new to the courier code. I have found that there is an append_flags function in fetch.c which is doing this. I think I can do the change at the code level, but I'm not sure how it will impact other things. Is there any kind of auto test / unit test that I can run to check things are ok ? How do I confirm that there is no impact ? Thanks and Regards, Kishan Sarsecha This email has been sent via the <URL:http://www.mithi.com/solutions- cloudemail-mithiskyconnect.html>Mithi SkyConnect cloud service based on <URL:http://www.mithi.com/product-overview.html>Mithi's Connect Xf platform and has been scrubbed for your protection by <URL:http://securemx.in/>SecureMX. Disclaimer : This mail is meant only for intended recipients. Please discard the mail if you are not an intended recipient. Sent by Connect Xf® at "Mithi Software Technologies Pvt. Ltd." -------------------------------------------------------------------------- ---- HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions Find What Matters Most in Your Big Data with HPCC Systems Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. Leverages Graph Analysis for Fast Processing & Easy Data Exploration http://p.sf.net/sfu/hpccsystems___________________________________________ ____ Courier-imap mailing list Courier-imap@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imapThis email has been sent via the <URL:http://www.mithi.com/solutions- cloudemail-mithiskyconnect.html>Mithi SkyConnect cloud service based on <URL:http://www.mithi.com/product-overview.html>Mithi's Connect Xf platform and has been scrubbed for your protection by <URL:http://securemx.in/>SecureMX. Disclaimer : This mail is meant only for intended recipients. Please discard the mail if you are not an intended recipient.
pgpazsyWxKuyA.pgp
Description: PGP signature
------------------------------------------------------------------------------ HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions Find What Matters Most in Your Big Data with HPCC Systems Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. Leverages Graph Analysis for Fast Processing & Easy Data Exploration http://p.sf.net/sfu/hpccsystems
_______________________________________________ Courier-imap mailing list Courier-imap@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap