From owner-freebsd-ports@FreeBSD.ORG Wed Sep 13 06:02:58 2006 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E90CC16A403 for ; Wed, 13 Sep 2006 06:02:57 +0000 (UTC) (envelope-from schweizer.martin@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by mx1.FreeBSD.org (Postfix) with ESMTP id 48A8643D45 for ; Wed, 13 Sep 2006 06:02:57 +0000 (GMT) (envelope-from schweizer.martin@gmail.com) Received: by ug-out-1314.google.com with SMTP id m2so1990302uge for ; Tue, 12 Sep 2006 23:02:56 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=afC3fCWccIKrJ3tHGUMd6g8h4INdJl9BL3aAXYgVIy8II8x/cdl740l7hAoc4PyGXK9v9BGxkc04QZVgfGSJW96qQO1oi9mdFP16xQN9ONBtAUJQB/tMSDSTviuadjy1shvWTHBuwsSOEV/OqEYNd3ZXc8fZZutr4myKOXbKEhQ= Received: by 10.66.252.4 with SMTP id z4mr3877113ugh; Tue, 12 Sep 2006 23:02:55 -0700 (PDT) Received: by 10.67.118.14 with HTTP; Tue, 12 Sep 2006 23:02:55 -0700 (PDT) Message-ID: <380ccfd60609122302y34c767ddo798256ace31fe2a1@mail.gmail.com> Date: Wed, 13 Sep 2006 08:02:55 +0200 From: "Martin Schweizer" To: ports@freebsd.org In-Reply-To: <380ccfd60609070839p608a1de9ie7e9a7f9b5745e66@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <380ccfd60609070839p608a1de9ie7e9a7f9b5745e66@mail.gmail.com> Cc: Subject: Fwd: Websieve 0.63a X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Sep 2006 06:02:58 -0000 Hello Who is responsible for the port mail/websieve? Would be nice to integrate the attached changes (probably I can help?). Regards, Martin ---------- Forwarded message ---------- From: Martin Schweizer Date: 07.09.2006 17:39 Subject: Websieve 0.63a To: freebsd-ports@freebsd.org Hello After more the one successfully installation I found some problems in the actualy ports (from yesterday): - while building websieve make wants download every time the old apache port Makefile ********* [snip] RUN_DEPENDS= ${SITE_PERL}/IMAP/Admin.pm:${PORTSDIR}/mail/p5-IMAP-Admin \ ${SITE_PERL}/IMAP/Sieve.pm:${PORTSDIR}/mail/p5-IMAP-Sieve .endif ## RUN_DEPENDS+= ${LOCALBASE}/www/cgi-bin:${PORTSDIR}/${APACHE_PORT} PKGMESSAGE= ${WRKDIR}/pkg-message [snip] I alway commented out "RUN_DEPENDS..." - ... also while building make would copy websieve.pl to /usr/local/www/cgi-bin but it create a file called cgi-bin in /usr/local/www - websieve.pl: [snip] #creates global variables $mode,@rules,@mailboxes,@quota and %vacation; # get quota @quota=&getquota("INBOX") if ($havequota || !$useprocmail); if ($IMAPERROR = /no errors/i && !$ismanager && $IMAPERROR) { $error=$IMAPERROR; &closeimap; &closesieve; &incorrect_login; exit; } [snip] In the port there is here ("if ($IMAPERROR =~ /no..." ) a tile sign but for successfully login you have to remove this. See also http://www.linuxnetmag.com/en/issue8/printm8sieve1.html - error "base64 decoding..." in /var/log/messages Sep 7 15:47:22 acsvfbsd04 imap[547]: login: mail3 [192.168.10.6] martin plaintext User logged in Sep 7 15:47:22 acsvfbsd04 sieve[548]: badlogin: mail3[192.168.10.6] PLAIN error base64 decoding string Sep 7 15:47:34 acsvfbsd04 imap[547]: login: mail3 [192.168.10.6] root plaintext User logged in Sep 7 15:47:34 acsvfbsd04 sieve[551]: badlogin: mail3[192.168.10.6] PLAIN error base64 decoding string Here you have to edit in /usr/local/lib/perl5/site_perl/5.8.8/IMAP the file Sieve.pm: Old: $encode=encode_base64($userpass); New: $encode=encode_base64($userpass, ''); See also http://lists.freebsd.org/pipermail/freebsd-ports-bugs/2006-June/091540.html - If you change the location from /var/imap to another location (f.e. to /usr/imap because you need more disk space), you'll get the following message in /var/log/messages: Sep 7 16:05:25 acsvfbsd04 imap[656]: login: acsvfbsd04 [192.168.10.6] martin plaintext User logged in Sep 7 16:05:25 acsvfbsd04 sieve[682]: IOERROR: creating directory /var/imap: Permission denied Sep 7 16:05:25 acsvfbsd04 sieve[682]: mkdir /var/imap: Permission denied Sep 7 16:05:25 acsvfbsd04 sieve[682]: error in actions_setuser() Websieve wants to creat some file in /var/imap everytime you log in. I create an symlink like this: lrwxr-xr-x 1 cyrus cyrus 18 7 Sep 16:23 imap -> /usr/imap/var/imap Afterwoods I works like a charme. Regards, Martin -- Martin Schweizer schweizer.martin@gmail.com Fax: +1 619 3300587 Tel.: +1 619 3300597 (VoIP) -- Martin Schweizer schweizer.martin@gmail.com Fax: +1 619 3300587 Tel.: +1 619 3300597 (VoIP)