Package dovecot: Specfile

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
%define _libexecdir /usr/libexec
%define _ssldir %(openssl-config --openssldir)
%define _unpackaged_files_terminate_build 1

%def_disable debug

Name: dovecot
Version: 2.0.12
Release: alt1
Summary: Dovecot secure IMAP/POP3 server
License: MIT
Group: System/Servers
Url: http://www.dovecot.org/
Packager: Anton Protopopov <aspsk@altlinux.org>

Obsoletes: dovecot1.0
Obsoletes: dovecot1.2

Source0: %name-%version.tar
Source1: dovecot.pam
Source2: dovecot.init
Source3: dovecot-auth.control
Source4: http://www.unicode.org/Public/UNIDATA/UnicodeData.txt

# Automatically added by buildreq on Wed Oct 20 2010
BuildRequires: gcc-c++ libldap-devel libmysqlclient-devel libpam-devel libsqlite3-devel openssl postgresql-devel python-base libssl-devel libmysqlclient-devel libsasl2-devel zlib-devel

%description
Dovecot is an IMAP/POP3 server for Linux/UNIX-like systems, written with
security primarily in mind. Although it's written with C, it uses
several coding techniques to avoid most of the common pitfalls.

Dovecot can work with standard mbox and maildir formats and it's fully
compatible with UW-IMAP and Courier IMAP servers as well as mail clients
accessing the mailboxes directly.

%package -n %name-devel
Summary: Libraries and headers for Dovecot
Group: Development/Other

Requires: %name = %version-%release
Obsoletes: dovecot1.0-devel
Obsoletes: dovecot1.2-devel

%description -n %name-devel
Libraries and headers for Dovecot

%package -n %name-pigeonhole
Summary: Sieve and managesieve plugins for dovecot
Group: System/Servers

Requires: %name = %version-%release
Provides: %name-libsieve = %version-%release
Obsoletes: %name-libsieve < %version-%release
Provides: %name-managesieve = %version-%release
Obsoletes: %name-managesieve < %version-%release

Obsoletes: dovecot-sieve
Obsoletes: dovecot1.0-sieve
Obsoletes: dovecot1.2-libsieve
Obsoletes: dovecot1.2-managesieve

%description -n %name-pigeonhole
Sieve and managesieve plugins for dovecot

%prep
%setup

%build
export ACLOCAL='aclocal -I .'
cd %name
%autoreconf
%configure \
	    --localstatedir=%_var                   \
	    --with-moduledir=%_libdir/%name/modules \
	    --disable-static                        \
	    --with-ssl=openssl                      \
	    --with-ssldir=%_ssldir                  \
	    --with-pgsql                            \
	    --with-mysql                            \
	    --with-sqlite                           \
	    --with-ldap                             \
	    --with-gssapi                           \
	    #

# setup right ssl directory
sed -i 's|/etc/ssl|%_ssldir|' doc/mkcert.sh doc/example-config/conf.d/10-ssl.conf

%__cp %SOURCE4 src/lib
%make_build

cd ../%name-pigeonhole
%autoreconf
%configure \
	    --with-dovecot=../dovecot \
	    --disable-static \
	    #
%make_build

%install
cd %name
%makeinstall_std

# PAM
%__mkdir_p -m 0755 %buildroot%_sysconfdir/pam.d
%__install -m 0600 %SOURCE1 %buildroot%_sysconfdir/pam.d/dovecot

# init
%__mkdir_p -m 0755 %buildroot%_initdir
%__install -m 0755 %SOURCE2 %buildroot%_initdir/%name

# control(8) file
%__install -pD -m755 %SOURCE3 %buildroot%_controldir/%name-auth

%__mv %buildroot/%_docdir/%name %_builddir/%name-%version/%name/docinstall

# generate ghost .pem files
%__mkdir_p %buildroot%_ssldir/{certs,private}
touch %buildroot%_ssldir/certs/dovecot.pem
%__chmod 600 %buildroot%_ssldir/certs/dovecot.pem
touch %buildroot%_ssldir/private/dovecot.pem
%__chmod 600 %buildroot%_ssldir/private/dovecot.pem

%__mkdir_p %buildroot/var/run/dovecot/{login,empty}
%__chmod 755 %buildroot/var/run/dovecot
%__chmod 700 %buildroot/var/run/dovecot/login
%__mkdir_p %buildroot/var/cache/dovecot/indexes

# Install dovecot configuration and dovecot-openssl.cnf
%__mkdir_p %buildroot%_sysconfdir/dovecot/conf.d
%__install -p -m 644 docinstall/example-config/dovecot.conf %buildroot%_sysconfdir/dovecot
%__install -p -m 644 docinstall/example-config/conf.d/*.conf %buildroot%_sysconfdir/dovecot/conf.d
%__install -p -m 644 docinstall/example-config/conf.d/*.conf.ext %buildroot%_sysconfdir/dovecot/conf.d
%__install -p -m 644 doc/dovecot-openssl.cnf %buildroot%_ssldir/dovecot-openssl.cnf

# disable IPv6 by default
%__sed -i 's/^#\(listen = \*\).*/\1/' %buildroot%_sysconfdir/%name/dovecot.conf

%__install -p -m755 doc/mkcert.sh %buildroot%_libexecdir/%name/mkcert.sh

%__mkdir_p %buildroot/var/lib/dovecot

# remove the libtool archives
find %buildroot%_libdir/%name/ -name '*.la' | xargs rm -f

# remove what we don't want
%__rm -f %buildroot%_sysconfdir/dovecot/README
%__rm -f docinstall/{securecoding,thread-refs}.txt

# install pigeonhole
cd ../%name-pigeonhole
%make_install DESTDIR=%buildroot install
%__install -p -m 644 %buildroot/%_docdir/dovecot/example-config/conf.d/20-managesieve.conf %buildroot/%_sysconfdir/dovecot/conf.d/
%__install -p -m 644 %buildroot/%_docdir/dovecot/example-config/conf.d/90-sieve.conf %buildroot/%_sysconfdir/dovecot/conf.d/

%pre
groupadd -r -f dovecot 2>/dev/null ||:
useradd -r -n -g dovecot -c 'Dovecot internal processes' \
		-d %_var/run/%name -s /dev/null dovecot 2>/dev/null ||:
groupadd -r -f dovenull 2>/dev/null ||:
useradd -r -n -g dovenull -c 'Dovecot untrusted login processes' \
		-d %_var/run/%name -s /dev/null dovenull 2>/dev/null ||:
%pre_control %name-auth

%post
%post_control %name-auth -s none
%post_service %name

%preun
%preun_service %name

%files
%_bindir/doveconf
%_bindir/doveadm
%_bindir/dsync
%_sbindir/dovecot

%dir %_cachedir/dovecot
%dir %_cachedir/dovecot/indexes
%dir %_runtimedir/dovecot
%dir %_runtimedir/dovecot/empty
%dir %_runtimedir/dovecot/login
%dir %_localstatedir/dovecot

%_controldir/%name-auth
%_initdir/dovecot

%dir %_sysconfdir/dovecot
%dir %_sysconfdir/dovecot/conf.d
%config(noreplace) %_sysconfdir/dovecot/dovecot.conf
%config(noreplace) %_sysconfdir/dovecot/conf.d/*
%config(noreplace) %_sysconfdir/pam.d/dovecot
%config(noreplace) %_ssldir/dovecot-openssl.cnf
%attr(0600,root,root) %ghost %config(missingok,noreplace) %verify(not md5 size mtime) %_ssldir/certs/dovecot.pem
%attr(0600,root,root) %ghost %config(missingok,noreplace) %verify(not md5 size mtime) %_ssldir/private/dovecot.pem
%exclude %_sysconfdir/dovecot/conf.d/20-managesieve.conf
%exclude %_sysconfdir/dovecot/conf.d/90-sieve.conf

%_libexecdir/dovecot
%exclude %_libexecdir/dovecot/managesieve*

%_docdir/dovecot

%_man1dir/*
%_man7dir/doveadm-search-query.7.gz
%exclude %_man1dir/sieve*

%_libdir/dovecot
%exclude %_libdir/dovecot/libdovecot*.so
%exclude %_libdir/dovecot/dovecot-config
%exclude %_libdir/dovecot/modules/settings

%files -n %name-devel
%_includedir/dovecot
%_datadir/aclocal/dovecot.m4
%_libdir/dovecot/libdovecot*.so
%_libdir/dovecot/dovecot-config

%files -n %name-pigeonhole
%_bindir/sieve-dump
%_bindir/sieve-test
%_bindir/sievec
%config(noreplace) %_sysconfdir/dovecot/conf.d/20-managesieve.conf
%config(noreplace) %_sysconfdir/dovecot/conf.d/90-sieve.conf
%_libdir/dovecot/modules/settings
%_libexecdir/dovecot/managesieve*
%_man1dir/sieve*
%_man7dir/pigeonhole*

%changelog
* Thu Apr 14 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 2.0.12-alt1
- 2.0.12

* Thu Apr 14 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 2.0.5-alt3
- Repair build

* Wed Oct 27 2010 Anton Protopopov <aspsk@altlinux.org> 2.0.5-alt2
- Restore old changelog
- Merge (by ours) with gears/d/dovecot.git

* Tue Sep 28 2010 Anton Protopopov <aspsk@altlinux.org> 2.0.5-alt1
- Build dovecot 2.0.5 for Sisyphus

* Thu Sep 03 2009 Maxim Ivanov <redbaron at altlinux.org> 1.2.4-alt5
- Fixed bug with multiple sieve-before scripts

* Wed Sep 02 2009 Maxim Ivanov <redbaron at altlinux.org> 1.2.4-alt4
- Added option to compile debug version 
- sievec is now part of dovecot package

* Tue Sep 01 2009 Maxim Ivanov <redbaron at altlinux.org> 1.2.4-alt3
- conflicts and obsoletes are corrected

* Sat Aug 29 2009 Maxim Ivanov <redbaron at altlinux.org> 1.2.4-alt2
- Added GSSAPI auth fix

* Sat Aug 29 2009 Maxim Ivanov <redbaron at altlinux.org> 1.2.4-alt1
- dovecot 1.2.4, managesieve 0.11.9, sieve 0.1.12
- added dist-upgrade and upgrade notifications

* Mon May 18 2009 Ivanov Maxim <redbaron@altlinux.org> 1.2-alt2.rc3
- Use separate libexecdir to remove conflict to other dovecot version.
  BEWARE! Update your MTA config, /usr/libexec/dovecot/deliver if you
  are upgrading from obsolete dovecot1.2 package
- Spec cleanup.
- make various bundled files more universal to handle multiple versions

* Tue May 05 2009 Ivanov Maxim <redbaron@altlinux.org> v1.2-alt1.rc3
- Updated to 1.2.rc3
- Fixed macros warnings in spec

* Tue Nov 18 2008 Sergey Ivanov <seriv@altlinux.ru> v1.2-alt3_alpha3
- fix: in v1.2-alt2_alpha3 managesieve was lost due to my mistake.

* Mon Nov 17 2008 Sergey Ivanov <seriv@altlinux.ru> v1.2-alt2_alpha3
- upstream fixes ManageSieve SECURITY hole: virtual users can edit scripts of other virtual users

* Sun Oct 27 2008 Sergey Ivanov <seriv@altlinux.ru> v1.2-alt1_alpha3
- dovecot-1.2 (alpha3) for Sisyphus

* Sun Jul 06 2008 Sergey Ivanov <seriv@altlinux.ru> 1.2.rc8-alt1
- dovecot-1.2 (rc8) for Sisyphus

* Thu Jun 26 2008 Sergey Ivanov <seriv@altlinux.ru> 1.0.15-alt2
- Renamed to dovecot1.0 and set conflicts against dovecot

* Sun Jun 22 2008 Sergey Ivanov <seriv@altlinux.ru> 1.0.15-alt1
- Release v1.0.15 (see Changelog) and fix check-subdirs

* Thu Mar 13 2008 Sergey Ivanov <seriv@altlinux.ru> 1.0.13-alt1
- Release v1.0.13, see Changelog

* Thu Mar 13 2008 Sergey Ivanov <seriv@altlinux.ru> 1.0.10-alt2
- fix #14287: use cert-sh-functions instead of custom mkcert.sh

* Sat Dec 29 2007 Sergey Ivanov <seriv@altlinux.ru> 1.0.10-alt1
- Released v1.0.10, see Changelog

* Fri Dec 28 2007 Sergey Ivanov <seriv@altlinux.ru> 1.0.9.hg20071228-alt1
- applied patch http://hg.dovecot.org/dovecot-1.0/rev/0a4f86976f50 to fix 
  mailbox problem of v. 1.0.9 (got too little data).

* Thu Dec 27 2007 Sergey Ivanov <seriv@altlinux.ru> 1.0.9.hg20071225-alt3
- added symlink for better backward compatibility, 
  see http://lists.altlinux.org/pipermail/sisyphus/2007-December/210648.html

* Wed Dec 26 2007 Sergey Ivanov <seriv@altlinux.ru> 1.0.9.hg20071225-alt2
- fix bugs #13807 #12532

* Tue Dec 25 2007 Sergey Ivanov <seriv@altlinux.ru> 1.0.9.hg20071225-alt1
- 1.0.9 with many changes, see Changelog

* Wed Oct 31 2007 Sergey Ivanov <seriv@altlinux.ru> 1.0.6.hg20071030-alt1
- 1.0.6 with many changes, among them compressed with zlib mailboxes support,
  see Changelog

* Tue Aug 01 2007 Sergey Ivanov <seriv@altlinux.ru> 1.0.3.hg20070801-alt1
- updated to 1.0.3, with security fix: If user was given i (insert) right 
  for a mailbox, but not all s/t/w (seen, deleted, other flags) rights, 
  COPY and APPEND commands weren't supposed to allow saving those flags. 
  This is technically a security fix, but it's unlikely this caused problems
  for anyone.

* Tue Jul 17 2007 Sergey Ivanov <seriv@altlinux.ru> 1.0.2.hg20070717-alt1
- updated to 1.0.2, with better sieve handling errors (bounce 
  only if message couldn't be saved anywhere); fixes for UILDLIST plugins handling
  and others, see ChangeLog

* Thu Jul 05 2007 Sergey Ivanov <seriv@altlinux.ru> 1.0.1.5-alt1
- new upstream changes, including:
    crashfix if PAM returns a reply but the process doesn't die,
    Update tmp/ directory's atime+mtime with utime(NULL) so it works
    even if we're not the directory owner.

* Mon Jul 02 2007 Sergey Ivanov <seriv@altlinux.ru> 1.0.1.4-alt1
- recent upstream fixes:
  2007-07-02  Timo Sirainen  <tss@iki.fi>

	* src/auth/passdb-ldap.c, src/auth/userdb-ldap.c:
	Memory leak fix

  2007-06-28  Timo Sirainen  <tss@iki.fi>

	* dovecot-example.conf:
	Mention that flock doesn't work with NFS.

  2007-06-27  Timo Sirainen  <tss@iki.fi>

	* src/auth/passdb-pam.c:
	FIXME comment update

	* src/lib/lib-signals.c:
	Allow registering signal handlers even before lib_signals_init() is
	called. The signals won't be effective until then though, unless
	they're ignored.

	* src/lib/ioloop-notify-inotify.c:
	If inotify_init() fails with EMFILE, give an understandable error
	message.

	* src/imap/client.c, src/imap/client.h, src/imap/cmd-idle.c:
	Changes sent by IDLE shouldn't affect the client's inactivity
	timeout checking.

  2007-06-26  Timo Sirainen  <tss@iki.fi>

	* src/imap/cmd-append.c:
	APPEND {0+} didn't eat the finishing CRLF.

  2007-06-25  Timo Sirainen  <tss@iki.fi>

	* src/imap/cmd-list.c:
	LIST "" %% with INBOX. namespace returned INBOX with \HasNoChildren.

* Wed Jun 20 2007 Sergey Ivanov <seriv@altlinux.ru> 1.0.1.3-alt1
- two more 1.0.1+ fixes:
  2007-06-20  Timo Sirainen  <tss@iki.fi>

	* src/lib-index/mail-transaction-log-view.c:
	Map the log files only after they've all been found. Otherwise we
	could have skipped some transactions from the end of non-head logs.

	* src/lib-index/mail-transaction-log.c:
	mmap_disable=yes: Fixed invalid "hdr.size too large" transaction log
	corruption errors.

* Tue Jun 19 2007 Sergey Ivanov <seriv@altlinux.ru> 1.0.1.2-alt13
- two more 1.0.1+ fixes:
 2007-06-19  Timo Sirainen  <tss@iki.fi>
        * src/plugins/quota/quota-maildir.c:
        If maildirsize file is being rewritten while we're trying to do
        that, recalculate it later instead of failing with "Unknown quota
        error".
 
        * src/plugins/quota/quota.c:
        Changed "Unknown error" to "Unknown quota error".

* Mon Jun 18 2007 Sergey Ivanov <seriv@altlinux.ru> 1.0.1.1-alt13
- added last after-1.0.1 fixes:
  2007-06-17  Timo Sirainen  <tss@iki.fi>
	* src/pop3/client.c:
	Even if mailbox sync fails, commit the transaction so that cache
	file gets updated.
	* src/imap/imap-fetch.c:
	Always commit FETCH transaction to make sure cached data is
	committed.
	* src/imap/imap-fetch.c:
	We didn't update last_output timestamp with long fetches, causing
	Dovecot to idle-disconnect the client.
  2007-06-16  Timo Sirainen  <tss@iki.fi>
	* src/lib-storage/mail-copy.c:
	Added missing error logging for i_stream_read()

* Fri Jun 15 2007 Sergey Ivanov <seriv@altlinux.ru> 1.0.1-alt13
- directory structure returned to dovecot's original, thangs 
  to ldv (http://lists.altlinux.org/pipermail/devel/2007-June/047071.html).
  Dovecot-wikies dropped from this package to be a separate package with own *.src.rpm
  Update to 1.0.1 release, among the changes:
  2007-06-14  Timo Sirainen  <tss@iki.fi>
	* src/lib-storage/index/index-storage.c:
	Treat unknown errors as temporary errors.
	* src/lib-storage/index/maildir/maildir-uidlist.c:
	When saving a message to maildir without dovecot-uidlist file, give
	the newly created uidlist file a non-zero uidvalidity.
	* src/lib-storage/index/mbox/mbox-storage.c:
	When trying to use mbox file as the root directory, give a nice
	error.
  2007-06-13  Timo Sirainen  <tss@iki.fi>
	* src/deliver/deliver.c:
	If input mail gets lost somehow, log a real error instead of
	"Unknown error".
	* dovecot-example.conf:
	Updated passwd/shadow comments.
  2007-06-12  Timo Sirainen  <tss@iki.fi>
	* src/deliver/deliver.c:
	If save failed, log also the reason for it.
	* src/deliver/deliver.c:
	Added -e parameter to write rejection error to stderr and exit with
	EX_NOPERM instead of sending the rejection by executing sendmail.
	* src/master/mail-process.c:
	nfs check: If namespaces are defined, use the first one's location
	instead of mail_location.
	* src/lib-storage/index/index-storage.c, src/lib-storage/index/index-
	storage.h, src/lib-storage/index/maildir/maildir-sync.c:
	If new/ directory is lost when syncing, assume the mailbox was
	deleted and make the mailbox inconsistent (which disconnects the
	client).

* Tue Jun 12 2007 Sergey Ivanov <seriv@altlinux.ru> 1.0.1-alt12.hg20070612
- releasing 1.0.1rc3

* Sun May 27 2007 Sergey Ivanov <seriv@altlinux.org> 1.0-alt12.hg20070527
- fixes from hg http://hg.dovecot.org/dovecot_1_0
  2007-05-24  Timo Sirainen  <tss@iki.fi>
	* src/lib-mail/istream-header-filter.c:
	If there's no message body, the final read() should return -1, not
	-2
  2007-05-23  Timo Sirainen  <tss@iki.fi>
	* src/master/master-settings.c:
	If Dovecot is already running, complain about it instead of wiping
	out login_dir and causing the already running Dovecot to break.
  2007-05-22  Timo Sirainen  <tss@iki.fi>
	* src/lib-index/mail-cache-compress.c:
	Cache compression actually lost the cache with non-x86 CPU and 64bit
	file offsets.
	* src/master/main.c:
	If startup fails because of configuration problems, print "Invalid
	configuration in <path>"
	* src/master/master-settings.c:
	Complain about missing pop3_uidl_format if pop3 is enabled.
	* src/pop3/main.c:
	Changed pop3_uidl_format error message once again.
	* src/lib/ioloop.c:
	Added wiki link to "time moved backwards" error.
  2007-05-19  Timo Sirainen  <tss@iki.fi>
	We no longer need .cvsignore files
	Mercurify the repository
  2007-05-16  Timo Sirainen  <tss@iki.fi>
	* src/lib-storage/index/index-mail-headers.c:
	Assert-crashfix in some conditions.
	* src/lib-storage/index/maildir/maildir-uidlist.c:
	When recreating dovecot-uidlist file based on dovecot.index, we set
	next_uid value wrong if new messages had been added.
* Tue May 15 2007 Sergey Ivanov <seriv@altlinux.org> 1.0-alt12.cvs20070515
- fixes from cvs branch_1_0:
  * If Return-Path doesn't contain user and domain, treat it as missing
    Return-Path.
  * Handle symlinks pointing to nonexisting files better.
  * Log an error if pwrite_full() fails while overwriting index mapping.
  * If ssl-parameters.dat has been updated externally, copy it to our base_dir.
  * When running multiple Dovecot instances, only one of them needs to
    regenerate ssl-parameters.dat.
  * We sent "Hang in there.." too early sometimes and checked it too often.
  * Give a better error message if dotlock is deleted immediately under us (or
    more likely an OS bug).
  * Print also Dovecot version with dovecot -n.
  * Keyword characters weren't sorted in the maildir filename.
  * If we don't have write access to cur/ directory, treat the mailbox as
    read-only.
  * Changed auth_request->created to last_access and update it a bit more often.
    If there are slow authentications this could help avoid removing timeouted
    auth requests too early.
  * %%c wasn't exported to auth worker processes. Patch by Andrey Panin
  * Make sure uid_validity and next_uid aren't 0 in the uidlist header.
  * Updated error message.
  * If we synced the mbox while saving the message (happens only with quota
    plugin loaded), we could have used a wrong append offset (calculated before
    sync) which caused "Unexpectedly lost From-line" errors, and depending on
    the sync either extra NUL lines or Content-Length header written over
    existing mails (quite unlikely).
  * If pop3_uidl_format=%%m, it wasn't cached correctly when saving new messages
    (eg. with deliver). X-Delivery-ID wasn't used in the MD5 sum, causing
    duplicates when POP3 recalculated the MD5 sum later.
  And others.

* Mon Apr 16 2007 Sergey Ivanov <seriv@altlinux.org> 1.0-alt12
- clean-up (mostly rm .cvsignore files); update wikies.

* Sun Apr 14 2007 Sergey Ivanov <seriv@altlinux.org> 1.0-alt11
- fix errors in -alt10 release of dovecot: by my mistake there were not applied recent patches.

* Thu Apr 13 2007 Sergey Ivanov <seriv@altlinux.org> 1.0-alt10
- release 1.0.rc32 renamed to be 1.0; updated wiki to current state

* Thu Apr 12 2007 Sergey Ivanov <seriv@altlinux.org> 1.0-alt9.rc32
- updated to rc32

* Sun Apr 08 2007 Sergey Ivanov <seriv@altlinux.org> 1.0-alt9.rc31
- updated to rc31

* Fri Apr 06 2007 Sergey Ivanov <seriv@altlinux.org> 1.0-alt9.rc30
- updated to rc30

* Fri Mar 30 2007 Sergey Ivanov <seriv@altlinux.org> 1.0-alt9.rc29
- added doc/wiki/*txt files to dovecot-doc.rpm

* Fri Mar 30 2007 Sergey Ivanov <seriv@altlinux.org> 1.0-alt8.rc29
- rc29: security fix: If zlib plugin was loaded, it was possible to open
  gzipped mbox files outside the user's mail directory.
  Other fixes and cleanups.

* Thu Mar 29 2007 Sergey Ivanov <seriv@altlinux.org> 1.0-alt8.rc28.cvs20070329
- fix Bug #11255: generate certificates if needed at start, not at install;
  strip unneeded details in output;
  patches from cvs up to 2007-03-29.

* Sun Mar 25 2007 Sergey Ivanov <seriv@altlinux.org> 1.0-alt8.rc28.cvs20070325
- upstream --enable-header-install obsoletes half hacks for dovecot-devel;
  patches from cvs up to 2007-03-25.

* Sat Mar 24 2007 Sergey Ivanov <seriv@altlinux.org> 1.0-alt8.rc28.cvs20070324
- update to rc28 + patches from cvs up to 2007-03-24.

* Wed Mar 21 2007 Sergey Ivanov <seriv@altlinux.org> 1.0-alt8.rc27.cvs20070321
- update to rc27 + patches from cvs up to 2007-03-21.

* Fri Mar 02 2007 Stanislav Ievlev <inger@altlinux.org> 1.0-alt8.rc24.1
- uncomment socket section in default config
- add dovecot-auth control

* Thu Feb 22 2007 Sergey Ivanov <seriv@altlinux.org> 1.0-alt8.rc24
- upgrade to rc24

* Wed Feb 21 2007 Sergey Ivanov <seriv@altlinux.org> 1.0-alt8.rc23
- upgrade to rc23

* Tue Feb 06 2007 Sergey Ivanov <seriv@altlinux.org> 1.0-alt8.rc22
- upgrade to rc22

* Sat Feb 03 2007 Sergey Ivanov <seriv@altlinux.org> 1.0-alt8.rc21
- upgrade to rc21

* Tue Jan 23 2007 Sergey Ivanov <seriv@altlinux.org> 1.0-alt8.rc19
- upgrade to rc19: ACL plugin wasn't working in rc18

* Mon Jan 22 2007 Sergey Ivanov <seriv@altlinux.org> 1.0-alt8.rc18
- upgrade to rc18.

* Sun Jan 07 2007 Sergey Ivanov <seriv@altlinux.org> 1.0-alt8.rc17
- upgrade to rc17: fixed MySQL authentication broken in rc16.

* Sat Jan 06 2007 Sergey Ivanov <seriv@altlinux.org> 1.0-alt8.rc16
- upgrade to rc16; fixed section Files which was broken in alt8.rc15

* Sat Nov 18 2006 Sergey Ivanov <seriv@altlinux.org> 1.0-alt8.rc15
- upgrade to rc15

* Mon Nov 13 2006 Sergey Ivanov <seriv@altlinux.org> 1.0-alt8.rc14
- Split to dovecot, dovecot-devel, dovecot-sieve removed to a separate 
  package. Refix #9634 (previous fix was lost during upgrades).

* Sun Nov 12 2006 Sergey Ivanov <seriv@altlinux.org> 1.0-alt7.rc14
- upgrade to rc14

* Fri Nov 10 2006 Sergey Ivanov <seriv@altlinux.org> 1.0-alt7.rc13
- sieve plugin update to 1.0

* Wed Nov 08 2006 Sergey Ivanov <seriv@altlinux.org> 1.0-alt6.rc13
- update to rc13

* Sun Nov 05 2006 Sergey Ivanov <seriv@altlinux.org> 1.0-alt6.rc12
- update to rc12

* Sat Nov 04 2006 Sergey Ivanov <seriv@altlinux.org> 1.0-alt6.rc11
- update to rc11

* Mon Oct 16 2006 Sergey Ivanov <seriv@altlinux.org> 1.0-alt6.cvs20061016
- Update to recent dovecot rc10 and dovecot-sieve;
  now dovecot.index.cache files have the same format for 32- and 64-bit machines.

* Fri Oct 13 2006 Sergey Ivanov <seriv@altlinux.org> 1.0-alt6.cvs20060926
- Restore dovecot's deliver agent building

* Thu Sep 28 2006 Sergey Ivanov <seriv@altlinux.org> 1.0-alt5.cvs20060926
- Fix #10045 & update to cvs20060926 (rc7+)

* Sun Sep 17 2006 Sergey Ivanov <seriv@altlinux.org> 1.0-alt5.cvs20060812
- Fix #9915

* Fri Sep 15 2006 ALT QA Team Robot <qa-robot@altlinux.org> 1.0-alt4.cvs20060812.1
- Rebuilt with MySQL-5.0.24-alt2.

* Wed Aug 16 2006 Sergey Ivanov <seriv@altlinux.org> 1.0-alt4.cvs20060812
- fix bug #9836; update to cvs version of Aug/16/2006 (rc6+)

* Wed Jul 05 2006 Sergey Ivanov <seriv@altlinux.org> 1.0-alt3.rc2
- updated to rc2

* Mon Jul 03 2006 Sergey Ivanov <seriv@altlinux.org> 1.0-alt3.rc1
- fix #9634 by defaulting pop3_uidl_format = %%08Xu%%08Xv

* Wed Jun 28 2006 Sergey Ivanov <seriv@altlinux.org> 1.0-alt2.rc1
- updated to rc1.

* Mon Jun 26 2006 Sergey Ivanov <seriv@altlinux.org> 1.0-alt2.cvs20060626
- Bug 9719 fixed in upstream, dovecot updated to CVS snapshot

* Fri Jun 23 2006 Sergey Ivanov <seriv@altlinux.org> 1.0-alt2.cvs20060619
- Reverted to CVS version of 2006.06.19: recent changes with strict UID policy
  don't work on my mailboxes.

* Thu Jun 22 2006 Sergey Ivanov <seriv@altlinux.org> 1.0-alt1.cvs20060622
- updated to beta9, see Changelog. Sieve delivery agent now renamed to sievec. 
  Also closes bug #9634. 

* Wed Apr 12 2006 Sergey Ivanov <seriv@altlinux.org> 1.0-alt1.cvs20060412
- updated to beta7, see Changelog; now with working sieve-like delivery

* Fri Mar 03 2006 Sergey Ivanov <seriv@altlinux.org> 1.0-alt1.cvs20060303
- s/%_libexecdir\/%name/%_libdir\/%name/ in %files section

* Mon Feb 27 2006 Sergey Ivanov <seriv@altlinux.org> 1.0-alt0.cvs20060227
- updated to beta3 from cvs, with memory leak and other fixes;
  disabled sieve-like local delivery agent for now.

* Wed Feb 15 2006 Sergey Ivanov <seriv@altlinux.org> 1.0-alt0.cvs20060215
- updated to beta3 from cvs, with security fixes

* Mon Jan 30 2006 Sergey Ivanov <seriv@altlinux.org> 1.0-alt0.cvs20060130
- built from dovecot cvs 2006-01-30 and with sieve local delivery agent

* Sun Dec 04 2005 Sergey Ivanov <seriv@altlinux.ru> 1.0-alt0.cvs20051204
- 1.0-alpha4 of nightly cvs builds at 12/04/2005

* Mon Nov 21 2005 Sergey Ivanov <seriv@altlinux.ru> 0.99.14-alt5
- Fix postgresql-devel dependency, removed version number binding;
  fix %_libexecdir - %_libdir confusion;
  fix documentation installation. 

* Tue Oct 11 2005 Sergey Ivanov <seriv@altlinux.ru> 0.99.14-alt4
- removed undefined macro from commented-out text; 
  removed conflicting relation to other POP3/IMAP servers

* Fri Aug 05 2005 Sergey Ivanov <seriv@altlinux.ru> 0.99.14-alt3
- Fix #7479

* Sun May 22 2005 Sergey Ivanov <seriv@altlinux.ru> 0.99.14-alt2
- Buildreq fix: removed version binding for libpq-devel

* Fri Feb 18 2005 Sergey Ivanov <seriv@altlinux.ru> 0.99.14-alt1
-  Message address fields are now parsed differently, fixing some
  issues with spaces. Affects only clients which use FETCH ENVELOPE
  command.
- Message MIME parser was somewhat broken with missing MIME boundaries
- mbox: Don't allow X-UID headers in mails to override the UIDs we
  would otherwise set. Too large values can break some clients and
  cause other trouble.
- passwd-file userdb wasn't working
- PAM crashed with 64bit systems
- non-SSL inetd startup wasn't working
- If UID FETCH notices and skips an expunged message, don't return
  a NO reply. It's not needed and only makes clients give error
  messages.

* Thu Jan 06 2005 Sergey Ivanov <seriv@altlinux.ru> 0.99.13-alt1
- Update to new version. From it's changelog:
  * GNUTLS support hasn't been working for a while, so it's not even
    tried to be used anymore unless explicitly wanted.
  + Added CRAM-MD5 authentication mechanism. Patch by Joshua Goodall
  + Added SMD5 and LDAP-MD5 password schemes and changed MD5 scheme to
    use LDAP-MD5 if the password isn't in MD5crypt format. Patch by
    Joshua Goodall
  + Workaround for some POP3 client bugs: if message doesn't contain the
    "end of headers" empty line, add it automatically.
  + vpopmail supports now all password schemes, most importantly
    MD5crypt works now without support from libc's crypt()
  - SQL and LDAP authentication was broken
  - SEARCH UNKEYWORD wasn't working

* Sun Dec 05 2004 Sergey Ivanov <seriv@altlinux.ru> 0.99.12-alt1
- Updated to new version. From changelog of 0.99.12:
    - Fix memory leaks in LDAP, MySQL and PGSQL userdb/passdb
    - Fix hanging when parsing mails that have over 4096 bytes in one
      line (SMTP servers normally don't allow over 1000 bytes so it
      shouldn't be much of a problem)
    - FETCH BODYSTRUCTURE sometimes gave a wrong reply
      (eg. with FETCH (BODYSTRUCTURE RFC822.SIZE) if it wasn't cached)
    - Never return more than one INBOX in LIST even if there are such
      files. They don't work anyway and it just confuses clients.
    - mbox: Don't allow creating INBOX directory by creating/renaming
      mailboxes under it. They just wouldn't work.
    - POP3: Don't return PLAIN in SASL list. We don't support initial SASL
      responses, so it only breaks with most clients that try to use it.
    - IMAP and POP3 login processes may have sent each line in two IP
      packets, one with the data and another with CR+LF. Some clients
      didn't work because of this. 

* Thu Sep 23 2004 Sergey Ivanov <seriv@altlinux.ru> 0.99.11-alt1
- Updated to 0.99.11

* Mon Aug 02 2004 Sergey Ivanov <seriv@altlinux.ru> 0.99.10.9-alt1
- Update to 0.99.10.9

* Fri Jul 30 2004 Sergey Ivanov <seriv@altlinux.ru> 0.99.10.8-alt1
- Updated to 0.99.10.8

* Sat Jan 10 2004 Anton V. Denisov <avd@altlinux.org> 0.99.10.4-alt1.1
- Explicitly use automake-1.4 for build and run %%__automake before 
  %%configure (hope this fix build with new autotools and GCC).

* Mon Dec 15 2003 Anton V. Denisov <avd@altlinux.org> 0.99.10.4-alt1
- Updated to 0.99.10.4 (bugfix release).

* Tue Dec 09 2003 Anton V. Denisov <avd@altlinux.org> 0.99.10.2-alt1
- Initial release for ALT Linux Sisyphus.

* Mon Dec 08 2003 Anton V. Denisov <avd@altlinux.org> 0.99.10.2-alt0.2
- Built with pop3 daemon and enable it in config.
- Add into %%summary and %%descrition info about POP3 protocol.
- Minor improvements in %%files section.
- PreReq tuned.

* Tue Nov 11 2003 Anton V. Denisov <avd@altlinux.org> 0.99.10.2-alt0.1
- Updated to 0.99.10.2 (bugfix release).
- Removed auth-no-homedir.patch (no longer need).
- Updated our patches for new version.
- Add Packager tag.
- added %postun for user removal and commented it out.
- TODO is still todo.

* Mon Nov 10 2003 Anton V. Denisov <avd@altlinux.org> 0.99.10-alt0.1
- New version 0.99.10.
- Applied upstream bugfix patch.
- Added alt-conf-paths.patch
- Updated alt-mkcert.patch
- Updated %%description.
- Updated buildrequires.
- PAM config renamed: imap->%name
- SSL/TLS certs renamed.
- Additional flags for %%configure.
- Temporary build with --without-pop3d (should we?)
- Use default config instead of our.
- Mark %_initdir/%name as %%config(noreplace) (should we?).
- Init script updated.
- Corrected permissions for %_var/run/%name and %_var/run/%name/login.
- Other minor updates in spec file.
- TODO:
  + build and split modules (like postfix2 package).
  + other.

* Sun Nov 09 2003 Anton V. Denisov <avd@altlinux.org> 0.99.4-alt0.2
- Initial build for ALT Linux.
- Spec file cleaned up and improved (courier-imap.spec as example).
- Automatically added BuildRequires.
- %%confugure with additional keys.
- PAM configs added.
- Create user for imap-login process.
- added sample default config
- SSL/TLS certs generation during package install (need more working)
- TODO:
  + check FHS and ALT policy compliance
  + with/without logic of build (do we need shadow-auth support?)

* Sun Dec  1 2002 Seth Vidal <skvidal@phy.duke.edu>
- 0.99.4 and fix startup so it starts imap-master not vsftpd :)

* Tue Nov 26 2002 Seth Vidal <skvidal@phy.duke.edu>
- first build