| 1 |
.. _imap-developer-thoughts-notes: |
| 2 |
|
| 3 |
.. Note: This document was converted from the original by Nic Bernstein |
| 4 |
(Onlight). Any formatting mistakes are my fault and not the |
| 5 |
original author's. Converted via the pandoc tool from HTML. |
| 6 |
|
| 7 |
Cyrus IMAP Server: Notes |
| 8 |
======================== |
| 9 |
|
| 10 |
- appending: it's important that the index records for individual |
| 11 |
messages make it to disk before the index header indicating that |
| 12 |
they're there. so something like: |
| 13 |
|
| 14 |
#. sync messages to disk (or depend on ``link()`` being atomic) |
| 15 |
#. create new index records, flush to disk |
| 16 |
#. create new header if necessary (adding new user flag), flush to |
| 17 |
disk |
| 18 |
#. flush cache file |
| 19 |
#. update index header, flush to disk |