Bug 125460 - New port: mail/dovecot-managesieve dovecot's managesieve implementation
Summary: New port: mail/dovecot-managesieve dovecot's managesieve implementation
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-10 06:00 UTC by Geoffroy Desvernay
Modified: 2008-07-29 21:40 UTC (History)
0 users

See Also:


Attachments
dovecot-managesieve.shar (3.31 KB, text/plain)
2008-07-10 06:00 UTC, Geoffroy Desvernay
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Geoffroy Desvernay 2008-07-10 06:00:06 UTC
	Dovecot is a secure and compact IMAP server and also a LDA (Local Delivery Agent), that 
	can use sieve scripts via dovecot-sieve plugin (mail/dovecot-sieve).
	This managesieve implementation is maintained by Stephan Bosch <stephan@rename-it.nl>
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2008-07-10 06:00:28 UTC
Class Changed
From-To: maintainer-update->change-request

Fix category (new ports should be change-requests) (via the GNATS Auto 
Assign Tool)
Comment 2 Martin Wilke freebsd_committer freebsd_triage 2008-07-19 11:10:52 UTC
State Changed
From-To: open->closed

New port added. Thanks!
Comment 3 dfilter service freebsd_committer freebsd_triage 2008-07-19 11:11:31 UTC
miwi        2008-07-19 10:11:15 UTC

  FreeBSD ports repository

  Modified files:
    mail                 Makefile 
  Added files:
    mail/dovecot-managesieve Makefile distinfo pkg-descr 
                             pkg-message pkg-plist 
  Log:
  Sieve language support by a plugin for the deliver LDA
  
      * Mail filtering
      * Mail forwarding
      * Vacation auto-reply
  
  WWW:    http://www.dovecot.org
  
  PR:             ports/125460
  Submitted by:   Geoffroy Desvernay <dgeo at ec-marseille.fr>
  
  Revision  Changes    Path
  1.917     +1 -0      ports/mail/Makefile
  1.1       +24 -0     ports/mail/dovecot-managesieve/Makefile (new)
  1.1       +3 -0      ports/mail/dovecot-managesieve/distinfo (new)
  1.1       +9 -0      ports/mail/dovecot-managesieve/pkg-descr (new)
  1.1       +16 -0     ports/mail/dovecot-managesieve/pkg-message (new)
  1.1       +4 -0      ports/mail/dovecot-managesieve/pkg-plist (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 4 Benjamin Close 2008-07-25 08:31:28 UTC
This port does not do what is intended. As per the INSTALL file of 
dovecot-1.1-managesieve-0.10.3.tar.gz
the dovecot port must first be patched with 
dovecot-1.1.X-manage-<managesieve version>.diff.gz
then this port will work. Without this patch dovecot will fail with 
'Unknown protocol name'  - indicating the managesieve protocol is 
unrecognised.
This is due to the dovecot code needing changes to support managesieve ( 
which the patch when applied provides). Ie:

++		} else if (strcasecmp(*proto, "managesieve") == 0) {
++			if (set->protocol == MAIL_PROTOCOL_MANAGESIEVE) {
++				fd = &set->listen_fd;
++				port = set->listen_port;
++				ip = &set->listen_ip;
++			}
+ 		} else {
+ 			i_fatal("Unknown protocol %s", *proto);



Hence at present this port will create the plugin required by 
managesieve but not patch dovecot leaving the user wondering why things 
aren't working.. After 2 hours looking into this I figured this should 
be reported, if only so others don't end up scratching thier heads 
wondering why.
It would also be nice if the pkg_message indicated how to enable 
managesieve and if the port description wasn't a carbon copy of 
dovecot-sieve.
dovecot-sieve and dovecot-managesieve are two very different beasts and 
the info in the pkg-description and pkg-message for this port is just 
plain wrong/decieving.

A good example for pkg-message would be:

protocols = .... managesieve

protocol managesieve {
  # Specify an alternative address:port the daemon must listen on
  # (default: *:2000)
  #listen = localhost:2000
  #
  #sieve=~/.dovecot.sieve
  #sieve_storage=~/sieve
  #login_executable=%PREFIX%/libexec/dovecot/managesieve-login
  #mail_executable=%PREFIX%/libexec/dovecot/managesieve
  #managesieve_max_line_length=
  #managesieve_implementation_string=dovecot
}



Cheers,
    Benjamin
    benjsc@
Comment 5 Robin Breathe 2008-07-29 21:33:11 UTC
Benjamin,

This is being worked on: see ports/126054 and ports/126059.

Regards,
Robin