Permalink
Commits on Jun 1, 2018
  1. Adapt server_version parsing for Postgres 10+

    amenonsen committed Jun 1, 2018
    The major version used to be 9.x, but with Postgres 10, the project has
    switched to using x.y version numbers instead of x.y.z version numbers.
    This means the major version is 10, and we can't expect the version
    string to have a "section 2" at all.
    
    We don't care about the minor version anyway, so we can decide what to
    do based on the first section (9 or 10), at least until Postgres adopts
    an Oracle-esque 12i versioning scheme.
  2. Use server_version_num instead of parsing version()

    amenonsen committed Jun 1, 2018
    The release of 10.x broke our earlier version checking ('ok' wasn't true
    any more, because there were only two components).
Commits on Apr 6, 2018
Commits on Feb 7, 2018
Commits on Feb 6, 2018
  1. Oops.

    arnt committed Feb 6, 2018
  2. Disable qresync due to interop problems with trojita

    arnt committed Feb 6, 2018
    I haven't found out whether it's aox or trojita, and realistically I'm not
    going to. QResync has too many moving parts for me to enjoy that
    debugging. So this disables qresync for now.
Commits on Sep 26, 2017
  1. support RFC 6154

    arnt committed Sep 26, 2017
    this does nothing so far, it only stores a single per-mailbox flag
Commits on Jul 18, 2017
  1. don't cache messages on injection

    arnt committed Jul 18, 2017
    they may be read straight away, or not, but don't cache them here, to
    avoid breakage since the PGP patch. however, this patch keeps the cache in
    case clients read the same message repeatedly, e.g. by reading
    body[2]<0.1000>, <1000.2000> etc.
Commits on Apr 18, 2017
Commits on Apr 10, 2017
  1. Merge pull request #5 from mc3/master

    arnt committed Apr 10, 2017
    Fix of PGP sig patch for nested MIME trees.
Commits on Feb 16, 2017
  1. Change 'options' to long per SSL_CTX_set_options() documentation

    amenonsen authored and mc3 committed Jan 10, 2017
    Thanks to clang via Mark Felder for the error report.
Commits on Feb 14, 2017
  1. drop the session preloader

    arnt authored and mc3 committed Dec 5, 2016
    it didn't produce any benefit, and it seems conceivable that it contained
    a bug... I killed it withouth thinking very much.
  2. don't break nextmodseq when copying/moving to this mailbox

    arnt authored and mc3 committed Nov 23, 2016
    (which noone should do, but it happens)
  3. Fix more highestmodseq/nextmodseq confusion

    arnt authored and mc3 committed Nov 16, 2016
  4. Fix more highestmodseq/nextmodseq confusion

    arnt authored and mc3 committed Nov 9, 2016
  5. Avoid negative modseqs

    arnt authored and mc3 committed Nov 9, 2016
    d->lastModSeq is a a highestmodseq from the client and it's not necessary
    to report any messages that have that exact modseq, only messages with
    greater modseqs.
  6. Fix fromNumber failing to handle negative int64 numbers

    nsscan authored and mc3 committed Sep 19, 2016
    appendNumber only handles positive numbers, but fromNumber(int64 n,unit base)
    was passing a negative value to it which resulted in an invalid result string
    which then cascaded into causing PostgreSQL syntax errors and caused queries
    to fail.
  7. Yet another try at qresync without damage

    arnt authored and mc3 committed Jun 30, 2016
    This de-unifies the fetch responses again, to a degree, but makes sure
    that the FETCHes are neither too early (before EXISTS) or late (after OK),
    and that the state machine changes don't adversely affect FETCH FLAGS
    updates.
  8. Unify qresync and other session updates

    arnt authored and mc3 committed Jun 29, 2016
  9. Fix qresync

    arnt authored and mc3 committed Jun 25, 2016
    The code was too convoluted and with repetitions. This relies entirely on
    FETCH FLAG updates to do quick resync. But I can guess why it was
    convoluted; making this work wasn't at all simple.
    
    This leaves a performance problem; the session does too many selects on
    deleted_messages.
  10. Typo fixes from Jim at NSS

    amenonsen authored and mc3 committed Jun 24, 2016
  11. Add spaces when interpolating string literals

    amenonsen authored and mc3 committed Jun 24, 2016
    Patch from Jim at NSS.
  12. Use 'throw;' to rethrow exceptions without copying

    amenonsen authored and mc3 committed Jun 24, 2016
    Also catch ( const Exception & ) rather than just Exception.
    
    Patch from Jim at NSS.
  13. Use %u for uint, reported by Jim at NSS

    amenonsen authored and mc3 committed Jun 22, 2016
  14. Add missing breaks, reported by Jim at NSS

    amenonsen authored and mc3 committed Jun 22, 2016
Commits on Jan 10, 2017
  1. Change 'options' to long per SSL_CTX_set_options() documentation

    amenonsen committed Jan 10, 2017
    Thanks to clang via Mark Felder for the error report.
Commits on Dec 5, 2016
  1. drop the session preloader

    arnt committed Dec 5, 2016
    it didn't produce any benefit, and it seems conceivable that it contained
    a bug... I killed it withouth thinking very much.