Opened 15 years ago

Closed 13 years ago

#22993 closed enhancement (wontfix)

add sieve variant to dovecot

Reported by: pixilla (Bradley Giesbrecht) Owned by: jberry@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: dovecot

Description

The Dovecot Sieve plugin provides mail filtering facilities at time of final message delivery.

dovecot-sieve needs to be built against dovecot version > 1.2.

At the time of this submission it appears that the dovecot version in MacPorts is at 1.1.16 so I am including another Portfile for dovecot 1.2.9.

Maybe jberry can update dovecot and also take over dovecot-sieve.

Brad

Attachments (6)

Portfile (3.1 KB) - added by pixilla (Bradley Giesbrecht) 15 years ago.
dovecot-sieve Portfile
Portfile.2 (2.9 KB) - added by pixilla (Bradley Giesbrecht) 15 years ago.
dovecot v1.2.9 Portfile
patch-Portfile (4.5 KB) - added by pixilla (Bradley Giesbrecht) 15 years ago.
dovecot 1.1.16 to 1.2.9 Portfile patch
Portfile-dovecot.diff (968 bytes) - added by pixilla (Bradley Giesbrecht) 15 years ago.
Dovecot 1.1.16 to 1.2.10 Portfile patch
patch-dovecot-sieve.diff (4.6 KB) - added by raimue (Rainer Müller) 15 years ago.
Adding a +sieve variant to dovecot
patch-dovecot-managesieve.diff (6.7 KB) - added by pixilla (Bradley Giesbrecht) 15 years ago.
Extended raim dovecot-sieve patch to include dovecot-managesieve

Download all attachments as: .zip

Change History (16)

Changed 15 years ago by pixilla (Bradley Giesbrecht)

Attachment: Portfile added

dovecot-sieve Portfile

Changed 15 years ago by pixilla (Bradley Giesbrecht)

Attachment: Portfile.2 added

dovecot v1.2.9 Portfile

comment:1 Changed 15 years ago by jmroot (Joshua Root)

Cc: jberry@… added
Keywords: mail dovecot sieve removed
Version: 1.8.1

A unified diff would be preferable for the update.

comment:2 in reply to:  1 Changed 15 years ago by pixilla (Bradley Giesbrecht)

Replying to jmr@…:

A unified diff would be preferable for the update.

I wasn't using your dovecot port file so I didn't have a current dovecot Portfile to diff against. I'll sync up with macports and submit a diff.

Changed 15 years ago by pixilla (Bradley Giesbrecht)

Attachment: patch-Portfile added

dovecot 1.1.16 to 1.2.9 Portfile patch

comment:3 Changed 15 years ago by pixilla (Bradley Giesbrecht)

Cc: brad@… added

Cc Me!

comment:4 Changed 15 years ago by pixilla (Bradley Giesbrecht)

jberry, I have dovecot installed with mysql for vmail. Postfix delivery via lda. I'm using dbox format which is basically maildir with indexes. When I upgraded from dovecot 1.1.16 to 1.2.9 my mailbox locations changed without me changing anything in my config. Example: "/opt/local/var/mail/pixilla.com/brad/dbox/INBOX" changed to "/opt/local/var/mail/pixilla.com/brad/dbox/mailboxes/INBOX". This was a hassle but I had less then 100 imap accounts so I just moved the old boxes to the new location.

I've post to the dovecot list and am about to again but so far I can't find any explanation for this. I may have been improperly configed to begin with but I was hoping to add a comment to this Portfile explaining the new behavior but as of yet I don't have an explanation.

Brad

comment:5 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

The attached patch to update dovecot contains tons of irrelevancies. Could you or someone try again, submitting a diff that makes only the relevant changes to update to the latest version? Note that I've made many changes to dovecot today, and that 1.2.10 is now the latest version available.

Changed 15 years ago by pixilla (Bradley Giesbrecht)

Attachment: Portfile-dovecot.diff added

Dovecot 1.1.16 to 1.2.10 Portfile patch

comment:6 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Thanks, dovecot updated to 1.2.10 in r63445.

Changed 15 years ago by raimue (Rainer Müller)

Attachment: patch-dovecot-sieve.diff added

Adding a +sieve variant to dovecot

comment:7 Changed 15 years ago by raimue (Rainer Müller)

Here is a different approach implementing sieve support as a variant. This avoids the dummy dovecot build, which would not be run with the correct compiler and flags.

Another possible solution would be to pass --enable-header-install to configure for dovecot and then use the installed version in a separate dovecot-sieve port. But this would leave out the command line tools like sievec, sieved and sieve-test. See also the Dovecot Sieve build instructions.

The managesieve extension could be added in a similar variant with a requirement on +sieve.

comment:8 in reply to:  description Changed 15 years ago by pixilla (Bradley Giesbrecht)

raimue: I like the variant idea better. The only reason I tried to get this done with a new ports is the MP trend of doing separate ports instead of variants. But dovecot-sieve and dovecot-managesieve are challenging to do this way. Well dovecot-sieve is easy now with the --enable-header-install but managesieve needing a patched dovecot would require the dovecot port to install the patch by default. Thanks for the dovecot-sieve variant patch. I will work out a managesieve variant and submit a patch.

Changed 15 years ago by pixilla (Bradley Giesbrecht)

Extended raim dovecot-sieve patch to include dovecot-managesieve

comment:9 Changed 14 years ago by jmroot (Joshua Root)

Cc: jberry@… brad@… removed
Owner: changed from macports-tickets@… to jberry@…
Port: dovecot-sieve removed
Summary: new port for dovecot-sieveadd sieve variant to dovecot
Type: submissionenhancement

comment:10 Changed 13 years ago by pixilla (Bradley Giesbrecht)

Resolution: wontfix
Status: newclosed

This ticket is old and dovecot2 is out now.

Note: See TracTickets for help on using tickets.