Update schema.pg

schema.pg was upgraded to match what "aox upgrade schema" produces, but doesn't work on a clean install as aox will still believe it is at version 95 and it will bail if the citext extension already exists
Merge pull request #2 from felderado/patch-1

fix schema.pg for new installs
Generate 'pid' for Postgres >= 9.3 and 'procpid' otherwise
Don't check lockSanity at startup

We composed the query before the server_version was discovered, so the
test to decide whether to generate procpid or pid was always generating
procpid.

The point of the failing query was to warn users about locks at startup,
but the utility of the nice log message is outweighed by the price of
having to generate version-dependent queries.

(LockSpotter stays, because it runs much later.)
make the imap thread extension work
avoid sending bare linefeeds along with overlong message-ids
there's no need to =?...?= when the client speaks eai
recycle thread identifiers

it's not enough to release threads properly, we also have to release
thread identifiers. if we ever run out of identifiers, the server has to
stop.
aox ... younger 2 accidentally used the wrong time unit

this makes the code match the documentation
speling
base 'younger' on delete time if searching deleted mail.

this takes care of to the presumably rather common use case "undelete
whatever has been deleted in the past day", which I just now assumed to
be what "aox undelete /users/arnt/inbox younger 1" does. it wasn't. noe
it is, as a matter of DWIM.

the previous behaviour used the original insertion time.

I've also updated the documentation on the web, but not pushed that
change.
thread more outlook messages

we already had code that handled outlook replies to long threads, but
accidentally nothing to handle outlook replies to the thread root, which
is quite a common case. this should fix that.
add the first part of RFC5162 support (quick resync)

sogo needs this and I want sogo to work.

there's more to come... in Dave Cridland's words, 5162 has many moving
parts:

the parts where Select executes a Fetch are not done. it's actually
optional, so the client has to issue Fetch anyway. a splendid example of
pointless complexity.

Select retrieves the deleted messages, but does not yet issue vanished
(earlier).

fetch (vanished) is not done.
set Message::threadId() correctly when caching at injection

Message::threadId() isn't used much, only for the gmail compatibility
blah, so it's safe to say that noone will run into this bug. but I fix it
all the same.
update to latest root zone
procpid was renamed in pg 9.2, not 9.3
fix incomprehensible typo
be compatible with older versions of g++
teach AddressParser about unicode addresses.

this should've been in 3.2.0, but I put it aside by mistake when some
tests didn't pass. fixed now.
disable -Werror

Old and new version of g++ disagree about core/md5.cpp. The easiest way
out of that is to turn off -Werror. (Personally I resolve it by mostly
using Clang instead.)