download deb source http://ftp.debian.org/debian/pool/main/d/dovecot/dovecot_1.0.3-3.diff.gz
http://ftp.debian.org/debian/pool/main/d/dovecot/dovecot_1.0.3.orig.tar.gz http://ftp.debian.org/debian/pool/main/d/dovecot/dovecot_1.0.3-3.dsc
download managesieve patch http://sinas.rename-it.nl/~sirius/dovecot-1.0.3-MANAGESIEVE-v7.diff.gz
extract deb source dpkg-source -x dovecot_1.0.3-3.dsc => this will create directory dovecot-1.0.3 n extract deb source on it
extract MANAGESIEVE patch zcat dovecot-1.0.3-MANAGESIEVE-v7.diff.gz >> managesieve.dpatch
add dpatch header open managesive.dpatch with ur editor add this line on top ----- cut here ----- #! /bin/sh -e . $(dirname $0)/DPATCH
exit 0 @DPATCH@ ------ end cut ------
copy managesieve n add to list copy managesieve.dpatch to directory dovecot-1.0.3/debian/patches/ edit file 00list, add 'managesieve' on the top
etch compatibility change to direcoty dovecot-1.0.3 edit file debian/control => change 'drac-dev (>= 1.12-5)' to 'drac-dev (>=1.12-4)'
managesieve compatibility edit file debian/rules => change 'aclocal; automake-1.9; libtoolize -f -c; aclocal-1.9; autoconf' to 'aclocal; autoreconf -i; automake-1.9; libtoolize -f -c; aclocal-1.9; autoconf'
party time compile with 'fakeroot dpkg-buildpackage -b'
regards
Indra Wardhana