Abhijit Menon-Sen [Mon, 13 Apr 2009 09:02:08 +0000 (14:32 +0530)]
Revert "try to restart the server if a child dies"
It's not ready for release yet. Desirable, but still problematic.
This reverts commit
57361db5d8a243ba28421e38d2e43c0d7c78e203.
Abhijit Menon-Sen [Thu, 9 Apr 2009 12:03:21 +0000 (17:33 +0530)]
Fix typo.
Arnt Gulbrandsen [Thu, 9 Apr 2009 10:07:26 +0000 (12:07 +0200)]
try to restart the server if a child dies
Abhijit Menon-Sen [Sat, 4 Apr 2009 08:00:22 +0000 (13:30 +0530)]
Don't mention jam here either.
We really don't mention jam in a lot of places.
Abhijit Menon-Sen [Fri, 3 Apr 2009 16:19:17 +0000 (21:49 +0530)]
Make aox list mailboxes -s work again.
Abhijit Menon-Sen [Fri, 3 Apr 2009 16:05:51 +0000 (21:35 +0530)]
We used to accept ls->list. Do so again.
Arnt Gulbrandsen [Thu, 2 Apr 2009 13:03:58 +0000 (15:03 +0200)]
implement aox command aliases cleaner
Arnt Gulbrandsen [Fri, 3 Apr 2009 10:07:04 +0000 (12:07 +0200)]
kill dead code
Arnt Gulbrandsen [Fri, 3 Apr 2009 10:04:48 +0000 (12:04 +0200)]
all aox commands are eternal
Arnt Gulbrandsen [Fri, 3 Apr 2009 10:01:58 +0000 (12:01 +0200)]
make help/anonymise/show build/show status not need configuration
report command-line parsing errors even if the configuration files can't
be read
Abhijit Menon-Sen [Sat, 4 Apr 2009 04:14:21 +0000 (09:44 +0530)]
Update VERSION.
Abhijit Menon-Sen [Thu, 2 Apr 2009 18:18:51 +0000 (23:48 +0530)]
Make 'aox add alias' case insensitive wrt. mailbox names.
(This by looking at up the name in the mailbox tree rather than using
the name as-is. As a side effect, one can no longer create aliases
pointing to a deleted mailbox.)
Arnt Gulbrandsen [Thu, 2 Apr 2009 11:20:35 +0000 (13:20 +0200)]
survive even if users.alias is null
outgoing mail will be odd and less than legal
Arnt Gulbrandsen [Thu, 2 Apr 2009 11:16:10 +0000 (13:16 +0200)]
support LDAP without evil-but-harmless errors
Abhijit Menon-Sen [Mon, 30 Mar 2009 22:59:25 +0000 (04:29 +0530)]
udoc fixes from next.
Abhijit Menon-Sen [Thu, 2 Apr 2009 10:19:28 +0000 (15:49 +0530)]
Fix 'aox delete user [-f]'.
(a) Delete messages properly with -f.
(b) Nullify users.alias before deleting aliases.
Abhijit Menon-Sen [Thu, 2 Apr 2009 11:08:58 +0000 (16:38 +0530)]
Add downgrade_to_87() in schema.pg too.
Abhijit Menon-Sen [Thu, 2 Apr 2009 10:18:43 +0000 (15:48 +0530)]
Schema #88: make users.alias nullable to help 'aox delete user'.
Arnt Gulbrandsen [Wed, 1 Apr 2009 12:23:32 +0000 (14:23 +0200)]
also consider permissions on / properly
Arnt Gulbrandsen [Wed, 1 Apr 2009 12:15:55 +0000 (14:15 +0200)]
a hack to make "no rights" override inherited rights properly
Arnt Gulbrandsen [Wed, 1 Apr 2009 12:15:32 +0000 (14:15 +0200)]
the obvious way to set "no rights" did not work
Abhijit Menon-Sen [Wed, 1 Apr 2009 11:35:02 +0000 (17:05 +0530)]
Another (recursion-)guard needed.
Arnt Gulbrandsen [Wed, 1 Apr 2009 10:42:53 +0000 (12:42 +0200)]
Log has to consider log-level, otherwise we spam the syslog
Arnt Gulbrandsen [Wed, 1 Apr 2009 08:06:40 +0000 (10:06 +0200)]
massive SNAFU. 3.1.1, here we come
Abhijit Menon-Sen [Tue, 31 Mar 2009 10:05:07 +0000 (15:35 +0530)]
Fix 'aox help add alias': another add/create confusion.
Abhijit Menon-Sen [Tue, 31 Mar 2009 08:28:55 +0000 (13:58 +0530)]
Fix inbox creation.
We used to calculate one name for the inbox, and then use the parent
directory's name instead. WTF?
Abhijit Menon-Sen [Mon, 30 Mar 2009 21:57:35 +0000 (03:27 +0530)]
Fix confusing phrasing.
Abhijit Menon-Sen [Mon, 30 Mar 2009 18:52:05 +0000 (00:22 +0530)]
Fix add/create confusion for CreateUser.
Abhijit Menon-Sen [Mon, 30 Mar 2009 13:06:34 +0000 (18:36 +0530)]
Don't forget to reset the revision after downgrading.
Abhijit Menon-Sen [Mon, 30 Mar 2009 12:55:00 +0000 (18:25 +0530)]
Fix mis-escaped backslash.
Arnt Gulbrandsen [Fri, 27 Mar 2009 11:15:52 +0000 (12:15 +0100)]
I saw a segfault when log() was called really early
Abhijit Menon-Sen [Thu, 26 Mar 2009 17:37:33 +0000 (23:07 +0530)]
Update version.
Arnt Gulbrandsen [Thu, 26 Mar 2009 16:21:10 +0000 (17:21 +0100)]
handle "c-t-e: %random%" acceptably
Arnt Gulbrandsen [Thu, 26 Mar 2009 15:20:27 +0000 (16:20 +0100)]
parsing a header used to be O(n^2) where n is the number of fields.
some spammer sent 15,000 header fields, which was a major pain for us.
Arnt Gulbrandsen [Thu, 26 Mar 2009 14:52:18 +0000 (15:52 +0100)]
use ++i instead of i++ with iterators
postfix ++ is a lot slower and it shows up on the call graph too often
Arnt Gulbrandsen [Thu, 26 Mar 2009 14:44:18 +0000 (15:44 +0100)]
old code was O(n^something) where n is the number of addresses. better O now.
Arnt Gulbrandsen [Thu, 26 Mar 2009 12:03:46 +0000 (13:03 +0100)]
Merge branch 'master' of ssh://down/oryx/aox
Abhijit Menon-Sen [Thu, 26 Mar 2009 12:02:47 +0000 (17:32 +0530)]
Update to #87.
Abhijit Menon-Sen [Thu, 26 Mar 2009 11:46:38 +0000 (17:16 +0530)]
Update current revision.
Arnt Gulbrandsen [Thu, 26 Mar 2009 11:14:19 +0000 (12:14 +0100)]
list aliases too in the "all nouns" list. the user is right.
Arnt Gulbrandsen [Thu, 26 Mar 2009 11:10:16 +0000 (12:10 +0100)]
list aliases too in the "all verbs" list
Abhijit Menon-Sen [Thu, 26 Mar 2009 07:55:14 +0000 (13:25 +0530)]
Create non-existent intermediate mailboxes too.
Abhijit Menon-Sen [Thu, 26 Mar 2009 07:51:26 +0000 (13:21 +0530)]
Set CreateFoo command verbs to "create", not "add"
Otherwise we translate add to create and look for create and find
nothing.
Arnt Gulbrandsen [Wed, 25 Mar 2009 13:59:28 +0000 (14:59 +0100)]
Merge branch 'master' of ssh://down/oryx/aox
Arnt Gulbrandsen [Wed, 25 Mar 2009 13:55:53 +0000 (14:55 +0100)]
if a query fails, the transaction must cope
Abhijit Menon-Sen [Wed, 25 Mar 2009 13:47:05 +0000 (19:17 +0530)]
Cope with upgrade/downgrade asymmetry a bit better.
(That is, don't complain if stepTo85() is run when some of the functions
already exist.)
Arnt Gulbrandsen [Wed, 25 Mar 2009 12:59:43 +0000 (13:59 +0100)]
segfaulting is no good. is this even 3.0.7 stuff?
Arnt Gulbrandsen [Wed, 25 Mar 2009 12:52:25 +0000 (13:52 +0100)]
preserve seen and deleted in copy
has been broken since the move to mailbox_messages
Arnt Gulbrandsen [Wed, 25 Mar 2009 12:11:56 +0000 (13:11 +0100)]
sort LIST responses by the canonical titlecased name of the mailbox
we used to sort almost like that. lately we haven't really sorted, which
annoys testing.
Arnt Gulbrandsen [Wed, 25 Mar 2009 10:40:16 +0000 (11:40 +0100)]
it's not enough to BE ABLE TO take other sessions' data, we need to DO it
Arnt Gulbrandsen [Wed, 25 Mar 2009 09:42:59 +0000 (10:42 +0100)]
don't endSession() explicitly before beginSession()
beginSession() does it automatically, and better (it emits OK CLOSED)
Arnt Gulbrandsen [Wed, 25 Mar 2009 09:41:57 +0000 (10:41 +0100)]
Merge branch 'master' of ssh://down/oryx/aox
Arnt Gulbrandsen [Wed, 25 Mar 2009 09:39:36 +0000 (10:39 +0100)]
exempt commit and rollback from being cancelled.
we often issue commit() (and sometimes rollback()) and them immediately
finish. that could be wrong, but there are many cases where we wouldn't
react to a commit failure anyway.
those commits are killed by cancelQueries() if the client goes away very
soon after the command finishes.
Abhijit Menon-Sen [Tue, 24 Mar 2009 19:57:31 +0000 (01:27 +0530)]
Schema #87: materialise virtual mailbox nodes.
Seems to work, but there must be more to it.
Arnt Gulbrandsen [Tue, 24 Mar 2009 14:56:33 +0000 (15:56 +0100)]
speling
Arnt Gulbrandsen [Tue, 24 Mar 2009 14:56:22 +0000 (15:56 +0100)]
change things so Mailbox::setup() is (sometimes) unnecessary
change NO callers. I started out changing all, but rolled back change
after change. I just want 3.1 to work, prettiments can wait.
Arnt Gulbrandsen [Mon, 23 Mar 2009 15:44:17 +0000 (16:44 +0100)]
call "Global" "/" and expect no nulls
Arnt Gulbrandsen [Mon, 23 Mar 2009 15:04:54 +0000 (16:04 +0100)]
lovely. that is already done!
Arnt Gulbrandsen [Fri, 20 Mar 2009 14:40:27 +0000 (15:40 +0100)]
use explicit state so we won't happen to send the request twice
why would we do that? no idea but it happens
Arnt Gulbrandsen [Fri, 20 Mar 2009 14:35:07 +0000 (15:35 +0100)]
fix the tlsproxy race
Arnt Gulbrandsen [Fri, 20 Mar 2009 13:39:38 +0000 (14:39 +0100)]
a bit of extra debugging to see what happens on vice
Arnt Gulbrandsen [Fri, 20 Mar 2009 12:52:17 +0000 (13:52 +0100)]
Merge branch 'master' of ssh://down/oryx/aox
Arnt Gulbrandsen [Fri, 20 Mar 2009 12:51:58 +0000 (13:51 +0100)]
try to handle segfaults, but as less of a special case
Arnt Gulbrandsen [Fri, 20 Mar 2009 10:00:51 +0000 (11:00 +0100)]
typo
Arnt Gulbrandsen [Fri, 20 Mar 2009 09:18:35 +0000 (10:18 +0100)]
disable TLS as extension, too
Arnt Gulbrandsen [Fri, 20 Mar 2009 09:14:48 +0000 (10:14 +0100)]
we disable TLS only if we cannot connect to tlsproxy.
any other error (e.g. during negotiation) may prompt us to close that
connection, but we still accept TLS-wrapped connections and still
advertise TLS on future connections.
Arnt Gulbrandsen [Fri, 20 Mar 2009 09:06:00 +0000 (10:06 +0100)]
omit needless space! omit needless space! omit needless space!
Arnt Gulbrandsen [Fri, 20 Mar 2009 09:05:35 +0000 (10:05 +0100)]
new command: aox flush queue
Abhijit Menon-Sen [Thu, 19 Mar 2009 16:28:48 +0000 (21:58 +0530)]
Fix trigger.
Damn, I should have noticed this earlier. Revision #87 to fix, or not?
Abhijit Menon-Sen [Thu, 19 Mar 2009 16:24:26 +0000 (21:54 +0530)]
Split 'aox set retention' into 'aox retain/delete mail' commands.
Arnt Gulbrandsen [Thu, 19 Mar 2009 14:46:38 +0000 (15:46 +0100)]
Merge branch 'master' of ssh://down/oryx/aox
Arnt Gulbrandsen [Thu, 19 Mar 2009 14:46:07 +0000 (15:46 +0100)]
unbreak '( not flag seen ) and'
Arnt Gulbrandsen [Thu, 19 Mar 2009 09:46:32 +0000 (10:46 +0100)]
Merge branch 'master' of ssh://down.oryx.com/oryx/aox
Arnt Gulbrandsen [Thu, 19 Mar 2009 09:46:04 +0000 (10:46 +0100)]
we implement 5257
Abhijit Menon-Sen [Thu, 19 Mar 2009 05:40:15 +0000 (11:10 +0530)]
Syntax fixes etc.
Arnt Gulbrandsen [Thu, 19 Mar 2009 07:27:35 +0000 (08:27 +0100)]
Global FIRST
Arnt Gulbrandsen [Wed, 18 Mar 2009 22:30:08 +0000 (23:30 +0100)]
reorder to make the SQL queries easier to read/review
long SQL queries are hard on the eyes and brain
Arnt Gulbrandsen [Wed, 18 Mar 2009 22:25:20 +0000 (23:25 +0100)]
reorder Selector clauses to make a nicer SQL query.
I don't line "not ... and ...", it's hard to count parents.
"... and not ..." is better.
Arnt Gulbrandsen [Wed, 18 Mar 2009 22:17:04 +0000 (23:17 +0100)]
retention_policies.duration is days, not seconds
Arnt Gulbrandsen [Wed, 18 Mar 2009 22:11:07 +0000 (23:11 +0100)]
aox vacuum now handles mailbox-limited deletes
Arnt Gulbrandsen [Wed, 18 Mar 2009 22:04:41 +0000 (23:04 +0100)]
now aox vacuum consumes modseqs appropriately
Arnt Gulbrandsen [Wed, 18 Mar 2009 21:37:44 +0000 (22:37 +0100)]
make aox work a little better wrt retention
Arnt Gulbrandsen [Wed, 18 Mar 2009 16:09:26 +0000 (17:09 +0100)]
make aox vacuum enforce 'set retention delete'.
Arnt Gulbrandsen [Wed, 18 Mar 2009 15:39:47 +0000 (16:39 +0100)]
tweak output to be informative and nice
Arnt Gulbrandsen [Wed, 18 Mar 2009 15:35:57 +0000 (16:35 +0100)]
sql speling
Arnt Gulbrandsen [Wed, 18 Mar 2009 11:01:02 +0000 (12:01 +0100)]
reparse gave a warning (but worked). kill the warning.
Arnt Gulbrandsen [Wed, 18 Mar 2009 10:08:52 +0000 (11:08 +0100)]
two new RFCs; we already implement both
Arnt Gulbrandsen [Wed, 18 Mar 2009 09:06:28 +0000 (10:06 +0100)]
base log IDs on the pid instead of a small integer or nothing.
if using syslog, the log IDs would be rather redundant. if using logd,
most of the interesting IDs would start with 2/. this change uses the pid
as base, which should make the log more greppable.
good in general and particularly when starting from the deleted_messages
table.
Arnt Gulbrandsen [Tue, 17 Mar 2009 17:10:40 +0000 (18:10 +0100)]
sql speling
Arnt Gulbrandsen [Tue, 17 Mar 2009 15:47:44 +0000 (16:47 +0100)]
stop using prepared statements
we do want to use them, but they have to be dynamically chosen by postgres
at the time we send queries
Arnt Gulbrandsen [Tue, 17 Mar 2009 15:42:33 +0000 (16:42 +0100)]
don't rewrite a prepared statement based on the values from any single use
Arnt Gulbrandsen [Tue, 17 Mar 2009 15:26:07 +0000 (16:26 +0100)]
don't delete things to which pointers may still exist
Arnt Gulbrandsen [Tue, 17 Mar 2009 15:12:25 +0000 (16:12 +0100)]
omit needless state
Arnt Gulbrandsen [Tue, 17 Mar 2009 14:47:40 +0000 (15:47 +0100)]
sa_restorer isn't there on most OSes and we don't use it, so...
Arnt Gulbrandsen [Tue, 17 Mar 2009 14:40:18 +0000 (15:40 +0100)]
don't specify logfile and logfile-mode in the default config file
they aren't something people really should consider changing, so why
should they be in the privileged 15% of settings that we add there?
Arnt Gulbrandsen [Tue, 17 Mar 2009 14:38:15 +0000 (15:38 +0100)]
use syslog by default and start logd only if needed
Arnt Gulbrandsen [Tue, 17 Mar 2009 11:56:38 +0000 (12:56 +0100)]
make 'set retention' delete older policies that conflict with the new one
Arnt Gulbrandsen [Tue, 17 Mar 2009 11:37:35 +0000 (12:37 +0100)]
if the root mailbox is materialised in the db, then ask for its policies
explicitly
should not matter
Arnt Gulbrandsen [Tue, 17 Mar 2009 11:31:21 +0000 (12:31 +0100)]
order the results of 'show retention'
this is partly just sense and partly testability
sense: we want to show the policies ordered from the global to the
specific, and I think it's good if retain vs. delete is shown in a
predictable order.
testability: it's easier to test if the response is 100% predictable.
Arnt Gulbrandsen [Tue, 17 Mar 2009 11:22:52 +0000 (12:22 +0100)]
show the retention policies in a sane format
untested