Re: [Cooker] Re: [Contrib-Rpm] cyrus-imapd-2.1.14-1mdk

2003-07-27 Thread Luca Berra
On Sun, Jul 27, 2003 at 03:52:09PM +0200, Luca Olivetti wrote:
Luca Berra wrote:
btw. you would also like to subscribe users to the mailbox (very easy if
the subscribed db is in flat format, messy if it is not)
not really messy in python:

import imaplib
point taken, it is surely cleaner to interact with cyrus using imap
proto, i was speaking about feeding stuff to cyrus via the filesystem,
which i believe is a little bit faster.
regards,
L.
--
Luca Berra -- [EMAIL PROTECTED]
   Communication Media & Services S.r.l.
/"\
\ / ASCII RIBBON CAMPAIGN
 XAGAINST HTML MAIL
/ \


Re: [Cooker] Re: [Contrib-Rpm] cyrus-imapd-2.1.14-1mdk

2003-07-27 Thread Luca Olivetti
Luca Olivetti wrote:
Luca Berra wrote:

btw. you would also like to subscribe users to the mailbox (very easy if
the subscribed db is in flat format, messy if it is not)


not really messy in python:

import imaplib
mailboxes=('mailbox1','mailbox2','mailbox3')
server=imaplib.IMAP4()
server.login(user,password)
for mailbox in mailboxes:
  server.subscribe('INBOX.'+mb)
a typo, this should be

server.subscribe('INBOX.'+mailbox)

Bye

--
Que les importa a las viudas, a los huérfanos, a los desvalidos
si las masacres se hacen en nombre del totalitarismo o en el
sagrado nombre de la libertad y la democracia.
Mahatma Gandhi (1869 - 1948)


pgp0.pgp
Description: PGP signature


Re: [Cooker] Re: [Contrib-Rpm] cyrus-imapd-2.1.14-1mdk

2003-07-27 Thread Luca Olivetti
Luca Berra wrote:

btw. you would also like to subscribe users to the mailbox (very easy if
the subscribed db is in flat format, messy if it is not)
not really messy in python:

import imaplib
mailboxes=('mailbox1','mailbox2','mailbox3')
server=imaplib.IMAP4()
server.login(user,password)
for mailbox in mailboxes:
  server.subscribe('INBOX.'+mb)
server.logout
Bye
--
Que les importa a las viudas, a los huérfanos, a los desvalidos
si las masacres se hacen en nombre del totalitarismo o en el
sagrado nombre de la libertad y la democracia.
Mahatma Gandhi (1869 - 1948)


pgp0.pgp
Description: PGP signature


Re: [Cooker] Re: [Contrib-Rpm] cyrus-imapd-2.1.14-1mdk

2003-07-27 Thread Luca Berra
On Sun, Jul 27, 2003 at 12:56:49PM +0200, Buchan Milne wrote:
On Sun, 27 Jul 2003, Luca Berra wrote:
errata: i based my version on perfect_maildir.pl, but if i would have to
redo it now i'd use http://batleth.sapienti-sat.org/projects/mb2md/
as the conversion engine.
I have seen this one before, but it seemed tailored most to courier. I 
think I may have tried it in any case. Have you used it with Cyrus? At 
least it seems to be able to retain the flags.

As said i only modified perfect_maildir, not mb2md, but looking at the
source mb2md seems well done and well commented so modifying it should
not be too difficult and should yeld better results than fixing the
broken designed-for-cyrus(TM) scripts around :)
Regards,
L.
--
Luca Berra -- [EMAIL PROTECTED]
   Communication Media & Services S.r.l.
/"\
\ / ASCII RIBBON CAMPAIGN
 XAGAINST HTML MAIL
/ \


Re: [Cooker] Re: [Contrib-Rpm] cyrus-imapd-2.1.14-1mdk

2003-07-27 Thread Luca Berra
On Sun, Jul 27, 2003 at 12:53:30PM +0200, Buchan Milne wrote:
On Sun, 27 Jul 2003, Luca Berra wrote:
the big fat warning is: you must change the timestamp of the message
file to match the time of the envelope which is lost when converting to
cyrus format else you will find a lot of angry users knocking at your
door after the conversion.
Would you like to say why? The only issue I have seen is that the flags 
weren't retained (read/replied etc).
yes, the filetime is the received time of the message, if lusers sort
mails by received time they will get mad at you.
Besides that i don't remember if it was mozilla or outlook but it showed
the filedate as the date of the message in the mailbox listing, and
someone did not like having all 10K+ messages dated today the morning after
the migration :)
btw. you would also like to subscribe users to the mailbox (very easy if
the subscribed db is in flat format, messy if it is not)
Btw. i'd just put them in as documentation.
Well, it doesn't matter how thy go in, all that matters is that they work 
without any hacking. It's ridiculous if anyone migrating has to spend more 
than a man-day trying different migratio methods!

maybe after your migration you could put your findings somewhere in
contrib.
The problem is that UW is so messy and unstructured that converting
from there to anything structured is going to be a PITA anyway.
regards,
L.
--
Luca Berra -- [EMAIL PROTECTED]
   Communication Media & Services S.r.l.
/"\
\ / ASCII RIBBON CAMPAIGN
 XAGAINST HTML MAIL
/ \


Re: [Cooker] Re: [Contrib-Rpm] cyrus-imapd-2.1.14-1mdk

2003-07-27 Thread Buchan Milne
On Sun, 27 Jul 2003, Luca Berra wrote:

> On Sun, Jul 27, 2003 at 10:58:17AM +0200, Luca Berra wrote:
> >last time i checked those they mostly sucked, i modified a decent
> >bsd2cyrus version i found on the net for a customer once (and used it
> errata: i based my version on perfect_maildir.pl, but if i would have to
> redo it now i'd use http://batleth.sapienti-sat.org/projects/mb2md/
> as the conversion engine.

I have seen this one before, but it seemed tailored most to courier. I 
think I may have tried it in any case. Have you used it with Cyrus? At 
least it seems to be able to retain the flags.

I'll try it on Monday.

Regards,
Buchan

-- 
|Registered Linux User #182071-|
Buchan MilneMechanical Engineer, Network Manager
Cellphone * Work+27 82 472 2231 * +27 21 8828820x121
Stellenbosch Automotive Engineering http://www.cae.co.za
GPG Key   http://ranger.dnsalias.com/bgmilne.asc
1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7

**
Please click on http://www.cae.co.za/disclaimer.htm to read our
e-mail disclaimer or send an e-mail to [EMAIL PROTECTED] for a copy.
**



Re: [Cooker] Re: [Contrib-Rpm] cyrus-imapd-2.1.14-1mdk

2003-07-27 Thread Buchan Milne
On Sun, 27 Jul 2003, Luca Berra wrote:

> On Tue, Jul 22, 2003 at 05:32:43PM +0200, Buchan Milne wrote:
> >Another issue is that there are some scripts (cpmsg,
> >bsd2cyrus,folderxfer,batchreconstruct,inboxfer) in Simon Matter's
> >cyrus-imapd for converting from mbox (ie UW-IMAP) format, which you
> >don't have. Since we need to convert from mbox anyway, I would like to
> >add this. Any objection? Should I make a subpackage (they seem to depend
> >on formail, thus will depend on procmail, which would be a bit of a
> >waste ;-)).
> >
> last time i checked those they mostly sucked, i modified a decent
> bsd2cyrus version i found on the net for a customer once (and used it
> to convert some hundreds users with success), but i lost that version
> (if i ever find it i will post it).

No problem, we have fixed them up, and run some tests. All conversion 
works great now, after fixing it so the entire folder structure is 
retained. 600MB of mail gets converted in about 10 minutes on a Dell 
1600SC/2GHz/512MB/4*120GB IDE hardware RAID.

> the big fat warning is: you must change the timestamp of the message
> file to match the time of the envelope which is lost when converting to
> cyrus format else you will find a lot of angry users knocking at your
> door after the conversion.
> 

Would you like to say why? The only issue I have seen is that the flags 
weren't retained (read/replied etc).

> Btw. i'd just put them in as documentation.

Well, it doesn't matter how thy go in, all that matters is that they work 
without any hacking. It's ridiculous if anyone migrating has to spend more 
than a man-day trying different migratio methods!

Regards,
Buchan

-- 
|Registered Linux User #182071-|
Buchan MilneMechanical Engineer, Network Manager
Cellphone * Work+27 82 472 2231 * +27 21 8828820x121
Stellenbosch Automotive Engineering http://www.cae.co.za
GPG Key   http://ranger.dnsalias.com/bgmilne.asc
1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7

**
Please click on http://www.cae.co.za/disclaimer.htm to read our
e-mail disclaimer or send an e-mail to [EMAIL PROTECTED] for a copy.
**



Re: [Cooker] Re: [Contrib-Rpm] cyrus-imapd-2.1.14-1mdk

2003-07-27 Thread Luca Berra
On Sun, Jul 27, 2003 at 10:58:17AM +0200, Luca Berra wrote:
last time i checked those they mostly sucked, i modified a decent
bsd2cyrus version i found on the net for a customer once (and used it
errata: i based my version on perfect_maildir.pl, but if i would have to
redo it now i'd use http://batleth.sapienti-sat.org/projects/mb2md/
as the conversion engine.
L.

--
Luca Berra -- [EMAIL PROTECTED]
   Communication Media & Services S.r.l.
/"\
\ / ASCII RIBBON CAMPAIGN
 XAGAINST HTML MAIL
/ \


Re: [Cooker] Re: [Contrib-Rpm] cyrus-imapd-2.1.14-1mdk

2003-07-27 Thread Luca Berra
On Tue, Jul 22, 2003 at 05:32:43PM +0200, Buchan Milne wrote:
Another issue is that there are some scripts (cpmsg,
bsd2cyrus,folderxfer,batchreconstruct,inboxfer) in Simon Matter's
cyrus-imapd for converting from mbox (ie UW-IMAP) format, which you
don't have. Since we need to convert from mbox anyway, I would like to
add this. Any objection? Should I make a subpackage (they seem to depend
on formail, thus will depend on procmail, which would be a bit of a
waste ;-)).
last time i checked those they mostly sucked, i modified a decent
bsd2cyrus version i found on the net for a customer once (and used it
to convert some hundreds users with success), but i lost that version
(if i ever find it i will post it).
the big fat warning is: you must change the timestamp of the message
file to match the time of the envelope which is lost when converting to
cyrus format else you will find a lot of angry users knocking at your
door after the conversion.
Btw. i'd just put them in as documentation.

L.

--
Luca Berra -- [EMAIL PROTECTED]
   Communication Media & Services S.r.l.
/"\
\ / ASCII RIBBON CAMPAIGN
 XAGAINST HTML MAIL
/ \


Re: [Cooker] Re: [Contrib-Rpm] cyrus-imapd-2.1.14-1mdk

2003-07-24 Thread Luca Olivetti
Buchan Milne wrote:

Ideally, we would like to keep these. Any idea if the imap method would
retain them?
Through imap it's obviously possible to read/set the flags (that's what 
an imap client does), the problem is that the scripts you tried didn't 
work, but I suspect it was because you had some malformed messages 
(headers with 8 bits characters, embedded nulls, bare newlines).
Did you try this one?:
http://www.irbs.net/internet/info-cyrus/0108/0168.html

Bye
--
Que les importa a las viudas, a los huérfanos, a los desvalidos
si las masacres se hacen en nombre del totalitarismo o en el
sagrado nombre de la libertad y la democracia.
Mahatma Gandhi (1869 - 1948)


pgp0.pgp
Description: PGP signature


Re: [Cooker] Re: [Contrib-Rpm] cyrus-imapd-2.1.14-1mdk

2003-07-24 Thread Buchan Milne
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Luca Olivetti wrote:
> Buchan Milne wrote:
>
>>
>> I have just tried the bsd2cyrus/folderxfer etc script, but cpmsg doesn't
>> seem to want to do anything with the formail output.
>
>
> Now you know why I didn't include them ;-)
> No, seriously, the problem with these scripts is that they try to
> manipulate the datastore directly instead of through the protocol. Since
> the format of the datastore could change, the only recommended way is to
> speak to the server with the imap protocol.
>

Well, after a lot of googling and some hacking, we now have a set of
working scripts, based on these, the original sources from the book,
some versions converted from the tcl version of cyradm to perl-Cyrus,
and some hacking. There is only one important issue, and that is that
messages lose their status flags (ie read messages appear unread).
Ideally, we would like to keep these. Any idea if the imap method would
retain them? Otherwise, I have one more thing to fix, otherwise we are
about ready to migrate the mail on the box in question (though we have
some other tasks to do also before we actually do it).

If this is the method to use, I will package everything up as a seperate
package.

Regards,
Buchan

- --
|--Another happy Mandrake Club member--|
Buchan MilneMechanical Engineer, Network Manager
Cellphone * Work+27 82 472 2231 * +27 21 8828820x202
Stellenbosch Automotive Engineering http://www.cae.co.za
GPG Key   http://ranger.dnsalias.com/bgmilne.asc
1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/IBf2rJK6UGDSBKcRAtXDAKC9aT7/7jBQiP5/+kX/PFd+kbabjgCeLRp5
DPfJy451qtuLrq/BA8UHw30=
=lgbE
-END PGP SIGNATURE-

**
Please click on http://www.cae.co.za/disclaimer.htm to read our
e-mail disclaimer or send an e-mail to [EMAIL PROTECTED] for a copy.
**



Re: [Cooker] Re: [Contrib-Rpm] cyrus-imapd-2.1.14-1mdk

2003-07-22 Thread Luca Olivetti
Buchan Milne wrote:

Sure, but this makes it really difficult.   Since now you have to hack
around, first getting whatever tool you are using to decide how to name
folders (dots or slashes),
No, every imap server will tell its hierarchy separator

whether to use a prefix or not, and you have
it should also tell you its namespaces

to fake authentication (or know all the user passwords), and it's
sasl supports proxy auth (let an administrator login as a user). Not all 
sasl method support proxy auth, there's a table in the documentation.
When I started I didn't know about proxy auth and I faked authentication 
 ;-) (besides, I don't think imap utils can use proxy auth)

difficult to do in batch.

Why isn't there a tool to accept mail straight into the mailbox in cyrus
for this purpose, that can only be run as the cyrus user, and will
deliver to a specified mailbox without any changes to the message??
Ask the CMU folks, but the imap protocol coupled with proxy auth gives 
you all the tools to do this without messing with the datastore.

[...]
I really can't believe this, so many people migrate from uw to courier
or cyrus, there *really* should be a guaranteed, easy way to do this.
I'm sorry I cannot help you with mbxcvt options, but it's been 4 (or 5) 
years since I used it.
As for the guaranteed it's difficult: if you have malformed messages 
cyrus won't accept them unless you massage them to comply the RFCs.

Sorry for the rant, but this *really* *is* ridiculous.
If feel your pain, and I'm happy I'm already beyond that phase ;-)

Bye

--
Que les importa a las viudas, a los huérfanos, a los desvalidos
si las masacres se hacen en nombre del totalitarismo o en el
sagrado nombre de la libertad y la democracia.
Mahatma Gandhi (1869 - 1948)


pgp0.pgp
Description: PGP signature


Re: [Cooker] Re: [Contrib-Rpm] cyrus-imapd-2.1.14-1mdk

2003-07-22 Thread Buchan Milne
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Luca Olivetti wrote:
> Buchan Milne wrote:
>
>>
>> I have just tried the bsd2cyrus/folderxfer etc script, but cpmsg doesn't
>> seem to want to do anything with the formail output.
>

Well, it seems if the folder exists, it will migrate mail ... but
somehow you have to create the folders.

>
> Now you know why I didn't include them ;-)
> No, seriously, the problem with these scripts is that they try to
> manipulate the datastore directly instead of through the protocol. Since
> the format of the datastore could change, the only recommended way is to
> speak to the server with the imap protocol.
>

Sure, but this makes it really difficult. Since now you have to hack
around, first getting whatever tool you are using to decide how to name
folders (dots or slashes), whether to use a prefix or not, and you have
to fake authentication (or know all the user passwords), and it's
difficult to do in batch.

Why isn't there a tool to accept mail straight into the mailbox in cyrus
for this purpose, that can only be run as the cyrus user, and will
deliver to a specified mailbox without any changes to the message??

>
>> BTW, I consider this to be a relatively significant issue, since it
>> seems 95% of all users who start a mail server on Mandrake get trapped
>> in uw-imap, so I feel we should provide an easy way to escape!
>
>
> At the time I used one of the programs from UW imap utils, but it isn't
> perfect.

And they weren't packaged for 9.1  grrr, rebuilding even more packages!

> This week there's been a thread on the cyrus list regarding
> migration.
> In the thread starting here:
>
http://asg.web.cmu.edu/archive/message.php?mailbox=archive.info-cyrus&msg=23754
>
>
> these programs have been suggested:
>

This one I hadn't seen before, but it seems we will need to have a more
up-to-date fpc (which I was going to do anyway, now I have a good
reason) to compile this:

> http://home.arcor.de/armin.diehl/imapcopy/imapcopy.html

I have tried this one before ...

> http://www.jplanglois.com/products/imapcp/
>

but will try again:

[EMAIL PROTECTED] imapcp-0.91]$ ./mbcp.py imap://[EMAIL PROTECTED]/mail
imap://[EMAIL PROTECTED]/INBOX
Source account password (mail):
Destination account password (hermes):
Starting copy...
INBOX (7725)..Traceback (most recent call last):
  File "./mbcp.py", line 715, in ?
MBCopy( MA, MB )
  File "./mbcp.py", line 653, in MBCopy
MB.Append( nameb, flags, timestamp, message )
  File "./mbcp.py", line 312, in Append
raise "error appending message: " + `data`
error appending message: ['Message contains invalid header']

(it did copy about 10 messages, and will try and find the offending
message and try after removing it)

Well, I have tried most of them, and so far have actually had best
peformance from the scripts in the Simon Matter RPM. It will at least
migrate my whole inbox without losing messages, but all the read/unread
flags are gone.

I have looked at mbxcvt now, but don't you just love this part from the
man page:

"
SYNTAX
   mbxcvt source format destination

   Supported  mailbox  formats  are  defined  when  the software is
built.
   Contact your system manager  for  more  information  on  the
supported
   mailbox formats on your system.
"

Hello??? How about listing some of the possible formats, or making a way
to find out what they are

Anyway, seems imap seems to be a valid format, but:

[EMAIL PROTECTED] bgmilne]$ mbxcvt INBOX imap {localhost}
Mailbox /var/spool/mail/bgmilne is in unix format and has 7699 message(s).
[Trying IP address [127.0.0.1]]
{localhost/imap} username: bgmilne
password:
?Mailbox already exists
?Can't create mailbox {localhost}
[EMAIL PROTECTED] bgmilne]$ mbxcvt INBOX imap {localhost}/Inbox
Mailbox /var/spool/mail/bgmilne is in unix format and has 7699 message(s).
[Trying IP address [127.0.0.1]]
{localhost/imap} username: bgmilne
password:
?Invalid mailbox name
?Can't create mailbox {localhost}/Inbox
[EMAIL PROTECTED] bgmilne]$ mbxcvt INBOX imap {localhost}/inbox
Mailbox /var/spool/mail/bgmilne is in unix format and has 7699 message(s).
[Trying IP address [127.0.0.1]]
{localhost/imap} username: bgmilne
password:
?Invalid mailbox name
?Can't create mailbox {localhost}/inbox


So, after having tried about 6 different tools/methods (Mozilla seems
not be able to copy entire folders, whereas I am sure Netscape 4.x
could), I have no method that even comes anywhere near doing what I want.

I really can't believe this, so many people migrate from uw to courier
or cyrus, there *really* should be a guaranteed, easy way to do this.

Sorry for the rant, but this *really* *is* ridiculous.

Regards,
Buchan

- --
|--Another happy Mandrake Club member--|
Buchan MilneMechanical Engineer, Network Manager
Cellphone * Work+27 82 472 2231 * +27 21 8828820x202
Stellenbosch Automotive Engineering http://www.cae.co.za
GPG Key   

Re: [Cooker] Re: [Contrib-Rpm] cyrus-imapd-2.1.14-1mdk

2003-07-22 Thread magic
Buchan Milne wrote:

Luca (Olivetti), I have just added this patch (or actually the more
up-to-date one from Simon Matter's SRPM), which at present I have done
as another conditional (--with autocreate), even though I think it would
be safe to apply the patch (I will test both with and without the
directives in /etc/imapd.conf to see) by default.


Just saw this. Is this the 'updated' patch you are using?

 By the way, just wanted to let you all know that your efforts ARE 
APPRECIATED!
 - Great work, and Thank You!!!

Ref message:
http://asg.web.cmu.edu/archive/message.php?mailbox=archive.info-cyrus&searchterm=autocreate&msg=23562 

Patch homepage:
http://email.uoa.gr/autocreate/
 Thanks!

 Scott





Re: [Cooker] Re: [Contrib-Rpm] cyrus-imapd-2.1.14-1mdk

2003-07-22 Thread Luca Olivetti
Buchan Milne wrote:

I have just tried the bsd2cyrus/folderxfer etc script, but cpmsg doesn't
seem to want to do anything with the formail output.
Now you know why I didn't include them ;-)
No, seriously, the problem with these scripts is that they try to 
manipulate the datastore directly instead of through the protocol. Since 
the format of the datastore could change, the only recommended way is to 
speak to the server with the imap protocol.


BTW, I consider this to be a relatively significant issue, since it
seems 95% of all users who start a mail server on Mandrake get trapped
in uw-imap, so I feel we should provide an easy way to escape!
At the time I used one of the programs from UW imap utils, but it isn't 
perfect. This week there's been a thread on the cyrus list regarding 
migration.
In the thread starting here:
http://asg.web.cmu.edu/archive/message.php?mailbox=archive.info-cyrus&msg=23754

these programs have been suggested:

http://home.arcor.de/armin.diehl/imapcopy/imapcopy.html
http://www.jplanglois.com/products/imapcp/
A search on freshmeat for "imap copy" gives 5 results, all seem relevant.

Bye
--
Que les importa a las viudas, a los huérfanos, a los desvalidos
si las masacres se hacen en nombre del totalitarismo o en el
sagrado nombre de la libertad y la democracia.
Mahatma Gandhi (1869 - 1948)


pgp0.pgp
Description: PGP signature


Re: [Cooker] Re: [Contrib-Rpm] cyrus-imapd-2.1.14-1mdk

2003-07-22 Thread magic
Buchan Milne wrote:

Mailserver core:
- openldap-2.1.22, nss_ldap-204-2mdk, pam_ldap-161-2mdk
- postfix-2.0.12-3mdk
   

I am using postfix SRPM from 9.1, rebuilt against sasl2, since I
couldn't bother at the time to track down the tls patches for an older
openssl.
Have you got postfix authentication against LDAP working? And if so,
how? (actually, that's my reason for using update sasl2 packages, I
actually still have some patches to try ...).
 

  Yes.

  Although - postfix is not authenticating directly against ldap, but 
is using saslauthd (which as I have configured is auth'ing against 
system & ldap accounts).

The following is the build order (as I recall):

  - Rebuild & upgrade 91's openssl to cooker's openssl 0.9.7b (postfix 
requires).
  - Install db41 (cooker rpm)
  - Rebuild & install openldap 2.1.22 (I believe it was your srpm).
  - Rebuild & install (upgrade) postfix 2.0.12

Postfix Auth config directives  (/etc/postfix/main.cf):
# For auth
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain =
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions =
  permit_sasl_authenticated,
  check_relay_domains
  I am not sure where you are at, or how detailed you need me to get. I 
had issues with 91's postfix (even after rebuilding the srpm) so I tried 
rebuilding cooker postfix, and made better progress. I believe I also 
had some issues with 91's nss_ldap & pam_ldap, so they are from cooker 
as well (although not rebuilt).

  What I really like about this setup is that to the mail system, there 
is no difference between a system user, and ldap only user.

  What is / is not happening with your postfix auth? Any error 
messages? (Maybe I have already worked through them).

  Thanks,

  Scott





Re: [Cooker] Re: [Contrib-Rpm] cyrus-imapd-2.1.14-1mdk

2003-07-22 Thread Buchan Milne
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Buchan Milne wrote:
>>The other is that there are a
>> bazillion other utilities to convert from one mail format to another,
>>mbox to imap or imap to imap, (e.g. I used something from UW imap
>>utils), and it doesn't make sense to package all of these utilities in
>>the same SRPM.
>
> Well, I would be happy to find *one* solution that:
> 1)works
> 2)is not too difficult to use to convert a whole server
> 3)is free enough to package
> 4)has no extra requirements

Of course, definition for "works" in (1) means the mail hierarchy is
kept, flags are kept intact (so mail that has been read stays read, mail
that has been replied-to stays replied-to) and all attachments survive.

It seems the script I mentioned earlier don't preserve mail hierarchy
(or I am doing something wrong) and flags don't survive.

But at least all the mail from the folder got migrated (the best of all
the performance I have seen so far from various tools ...).

Regards,
Buchan

- --
|--Another happy Mandrake Club member--|
Buchan MilneMechanical Engineer, Network Manager
Cellphone * Work+27 82 472 2231 * +27 21 8828820x202
Stellenbosch Automotive Engineering http://www.cae.co.za
GPG Key   http://ranger.dnsalias.com/bgmilne.asc
1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/HZKBrJK6UGDSBKcRAurrAJoDbju4qLWWv+8ATQW1gGMWgjQlnwCgpCMW
ZloODySb8n+2gJyjhpEw5J8=
=6eWZ
-END PGP SIGNATURE-

**
Please click on http://www.cae.co.za/disclaimer.htm to read our
e-mail disclaimer or send an e-mail to [EMAIL PROTECTED] for a copy.
**



Re: [Cooker] Re: [Contrib-Rpm] cyrus-imapd-2.1.14-1mdk

2003-07-22 Thread Luca Olivetti
Buchan Milne wrote:
Luca (Olivetti), I have just added this patch (or actually the more
I hope you did it to the latest (2.1.14-2mdk) rpm, not to 2.1.14-1mdk.

up-to-date one from Simon Matter's SRPM), which at present I have done
as another conditional (--with autocreate), even though I think it would
be safe to apply the patch (I will test both with and without the
directives in /etc/imapd.conf to see) by default.
I find this patch *extremely* dangerous, but I won't complain too loudly 
if the option is left disabled in the default config file. Note that it 
doesn't support murder (see http://email.uoa.gr/autocreate/)

Another issue is that there are some scripts (cpmsg,
bsd2cyrus,folderxfer,batchreconstruct,inboxfer) in Simon Matter's
cyrus-imapd for converting from mbox (ie UW-IMAP) format, which you
don't have. Since we need to convert from mbox anyway, I would like to
add this. Any objection? Should I make a subpackage (they seem to depend
on formail, thus will depend on procmail, which would be a bit of a
waste ;-)).
I'd prefer a *separate* package, for a couple of reasons, one because 
these are separate, stand alone utilities, and could have a different 
release cycle than cyrus (note that they aren't released as a tarball so 
it's difficult to track for new versions). The other is that there are a 
 bazillion other utilities to convert from one mail format to another, 
mbox to imap or imap to imap, (e.g. I used something from UW imap 
utils), and it doesn't make sense to package all of these utilities in 
the same SRPM. Maybe batchreconstruct is the only one really cyrus 
specific, but I cannot comment since I didn't need it so far (in ~4 
years of cyrus use).

Finally, there are a few other patches you don't have, any particular
reason, or can they be added as well?
cyrus-imapd-2.1.11-snmpargs.patch
the comment and the spec file say that it's only needed for redhat 6.2. 
Anyway snmp is disabled in Simon's (and my) package. If someone needs/is 
using snmp with cyrus he could give us some advice (on needed 
buildrequires, patches, etc.).

cyrus-imapd-2.1.14-ipv6-20030703.diff.gz
Don't use ipv6 myself so I cannot check if it's working correctly (I 
don't doubt the author's knowledge, but mine and/or strange interactions 
with linux and/or mandrake). I could test if it builds but nothing more. 
If it doesn't break anything (i.e. someone *really* test its 
functionality with the mandrake package) I'll have no problem in 
including it. But the same problem would arise with the next version of 
cyrus-imapd+ipv6 patches.

cyrus-imapd-2.1.3-flock.patch
IIRC (but I may be wrong) it wasn't the correct solution for the problem 
at hand and CMU folks were skeptical about this patch:

http://asg.web.cmu.edu/archive/message.php?mailbox=archive.info-cyrus&msg=15115

note that there's also cricisism about the munge8bit patch, and I'm not 
too happy to have it (but if the option is disabled it won't do too much 
harm).
A followup message says that recent kernels don't have this problem (and 
this was a year ago).

Bye
--
Que les importa a las viudas, a los huérfanos, a los desvalidos
si las masacres se hacen en nombre del totalitarismo o en el
sagrado nombre de la libertad y la democracia.
Mahatma Gandhi (1869 - 1948)


pgp0.pgp
Description: PGP signature


Re: [Cooker] Re: [Contrib-Rpm] cyrus-imapd-2.1.14-1mdk

2003-07-22 Thread Buchan Milne
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Luca Olivetti wrote:
> Buchan Milne wrote:
>
>>
>> Luca (Olivetti), I have just added this patch (or actually the more
>
>
> I hope you did it to the latest (2.1.14-2mdk) rpm, not to 2.1.14-1mdk.

Yes, I started with your -2mdk.

>
>> up-to-date one from Simon Matter's SRPM), which at present I have done
>> as another conditional (--with autocreate), even though I think it would
>> be safe to apply the patch (I will test both with and without the
>> directives in /etc/imapd.conf to see) by default.
>
> I find this patch *extremely* dangerous, but I won't complain too loudly
> if the option is left disabled in the default config file.

Well, at present it's not applied unless rebuilt with "--with
autocreate", but if people are happy that the default config won't be a
spam-trap, then maybe we should apply it by default, but keep the
default config safe. Thus far it seems ok as such (I got some rejected
mail trying to get it to work ;-)).

> Note that it
> doesn't support murder (see http://email.uoa.gr/autocreate/)
>

I did notice.

>>
>> Another issue is that there are some scripts (cpmsg,
>> bsd2cyrus,folderxfer,batchreconstruct,inboxfer) in Simon Matter's
>> cyrus-imapd for converting from mbox (ie UW-IMAP) format, which you
>> don't have. Since we need to convert from mbox anyway, I would like to
>> add this. Any objection? Should I make a subpackage (they seem to depend
>> on formail, thus will depend on procmail, which would be a bit of a
>> waste ;-)).
>
>
> I'd prefer a *separate* package

As in seperate SRPM?

>, for a couple of reasons, one because
> these are separate, stand alone utilities, and could have a different
> release cycle than cyrus (note that they aren't released as a tarball so
> it's difficult to track for new versions).

Yes, I made a tarball of it ;-).

> The other is that there are a
>  bazillion other utilities to convert from one mail format to another,
> mbox to imap or imap to imap, (e.g. I used something from UW imap
> utils), and it doesn't make sense to package all of these utilities in
> the same SRPM.

Well, I would be happy to find *one* solution that:
1)works
2)is not too difficult to use to convert a whole server
3)is free enough to package
4)has no extra requirements

I have just tried the bsd2cyrus/folderxfer etc script, but cpmsg doesn't
seem to want to do anything with the formail output.

BTW, I consider this to be a relatively significant issue, since it
seems 95% of all users who start a mail server on Mandrake get trapped
in uw-imap, so I feel we should provide an easy way to escape!

> Maybe batchreconstruct is the only one really cyrus
> specific, but I cannot comment since I didn't need it so far (in ~4
> years of cyrus use).
>
>>
>> Finally, there are a few other patches you don't have, any particular
>> reason, or can they be added as well?
>> cyrus-imapd-2.1.11-snmpargs.patch
>
>
> the comment and the spec file say that it's only needed for redhat 6.2.
> Anyway snmp is disabled in Simon's (and my) package. If someone needs/is
> using snmp with cyrus he could give us some advice (on needed
> buildrequires, patches, etc.).
>

Hmmm, the web monitor thingy in contrib would need snmp, and it might be
interesting to try it out, but I haven't yet, but I will assume we don't
need the patch.

>> cyrus-imapd-2.1.14-ipv6-20030703.diff.gz
>
>
> Don't use ipv6 myself so I cannot check if it's working correctly (I
> don't doubt the author's knowledge, but mine and/or strange interactions
> with linux and/or mandrake). I could test if it builds but nothing more.
> If it doesn't break anything (i.e. someone *really* test its
> functionality with the mandrake package) I'll have no problem in
> including it. But the same problem would arise with the next version of
> cyrus-imapd+ipv6 patches.
>

Indeed. I don't have access to ipv6, but it would be nice if someone
could test ipv6 stuff, but I guess if it's not in the mainstream source,
it probably means it's not ready yet ...

>> cyrus-imapd-2.1.3-flock.patch
>
>
> IIRC (but I may be wrong) it wasn't the correct solution for the problem
> at hand and CMU folks were skeptical about this patch:
>
>
http://asg.web.cmu.edu/archive/message.php?mailbox=archive.info-cyrus&msg=15115
>
>
> note that there's also cricisism about the munge8bit patch, and I'm not
> too happy to have it (but if the option is disabled it won't do too much
> harm).
> A followup message says that recent kernels don't have this problem (and
> this was a year ago).

OK, then I guess it will come down to adding the optional auto-create
patch, and finding the best set of scripts to package up for migrating.

Regards,
Buchan

- --
|--Another happy Mandrake Club member--|
Buchan MilneMechanical Engineer, Network Manager
Cellphone * Work+27 82 472 2231 * +27 21 8828820x202
Stellenbosch Automotive Engineering http://www.cae.co.za
GPG Key   ht

Re: [Cooker] Re: [Contrib-Rpm] cyrus-imapd-2.1.14-1mdk

2003-07-22 Thread Buchan Milne
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

scott wrote:
> Buchan Milne wrote:
>
>> Luca (Olivetti), I have just added this patch (or actually the more
>> up-to-date one from Simon Matter's SRPM), which at present I have done
>> as another conditional (--with autocreate), even though I think it would
>> be safe to apply the patch (I will test both with and without the
>> directives in /etc/imapd.conf to see) by default.
>>
>>
>
> Just saw this. Is this the 'updated' patch you are using?
>

It wasn't till I got this mail, it is now.

BTW, I was missing something in my imapd.conf file, it is working now ...

>   By the way, just wanted to let you all know that your efforts ARE
> APPRECIATED!
>   - Great work, and Thank You!!!
>
> Ref message:
>
http://asg.web.cmu.edu/archive/message.php?mailbox=archive.info-cyrus&searchterm=autocreate&msg=23562
>
>
> Patch homepage:
> http://email.uoa.gr/autocreate/

Ah! Up to now I was pulling it from other SRPMS. But I remember this
place had some cool stuff for cyrus, if only they would release the rest
... (cyrusmaster, and it seems they have some changes to define ACLs on
mailboxes with ldap filters ...).

But, I think it should be feasible to have a tool in perl-Gtk2 which
does similar things, we just need to find someone to write it ;-).

Regards,
Buchan

- --
|--Another happy Mandrake Club member--|
Buchan MilneMechanical Engineer, Network Manager
Cellphone * Work+27 82 472 2231 * +27 21 8828820x202
Stellenbosch Automotive Engineering http://www.cae.co.za
GPG Key   http://ranger.dnsalias.com/bgmilne.asc
1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/HXtdrJK6UGDSBKcRAiNBAJ0SBB5euF/2EHCpSbgU70lSDqyEXwCeJ6kK
e5r6ewEuSkUaXc94nYWYGdE=
=r8in
-END PGP SIGNATURE-

**
Please click on http://www.cae.co.za/disclaimer.htm to read our
e-mail disclaimer or send an e-mail to [EMAIL PROTECTED] for a copy.
**



Re: [Cooker] Re: [Contrib-Rpm] cyrus-imapd-2.1.14-1mdk

2003-07-22 Thread magic
Buchan Milne wrote:

Ah! Up to now I was pulling it from other SRPMS. But I remember this
place had some cool stuff for cyrus, if only they would release the rest
... (cyrusmaster, and it seems they have some changes to define ACLs on
mailboxes with ldap filters ...).
But, I think it should be feasible to have a tool in perl-Gtk2 which
does similar things, we just need to find someone to write it ;-).
 

  Well, I'm no perl expert (script hacker at best). I use webmin, and 
found this:  http://www.nwe.de/develop

  I have since updated the webmin module (and mailed to them) but they 
haven't posted any updates. I modified it to work with unixhierarchysep, 
and it will also delete quotas. (You still need to follow their install 
& config guidelines though.) If you are interested I can send you the 
version I am using (imapadmin-0.8.3.wbm) if you are interested.

  One thing I haven't figured out yet though is that the cyrus rpms 
install IMAP::Admin, but the system does not seem to see it. I need to 
install the IMAP::Admin module from CPAN to get the webmin module to 
work. (Actually it is installed twice!)
- Any ideas?

# locate 'IMAP/Admin'
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/Cyrus/IMAP/Admin.pm
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/IMAP/Admin
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/IMAP/Admin/.packlist
/usr/lib/perl5/site_perl/5.8.0/IMAP/Admin.pm
  Thanks,

  S




Re: [Cooker] Re: [Contrib-Rpm] cyrus-imapd-2.1.14-1mdk

2003-07-22 Thread Buchan Milne
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

magic wrote:
> Buchan Milne wrote:
>
 > Sounds like I echo your config pretty close (except for sasl2 - I'm
> using 91 stock).
>
> Mailserver core:
> - openldap-2.1.22, nss_ldap-204-2mdk, pam_ldap-161-2mdk
> - postfix-2.0.12-3mdk

I am using postfix SRPM from 9.1, rebuilt against sasl2, since I
couldn't bother at the time to track down the tls patches for an older
openssl.

Have you got postfix authentication against LDAP working? And if so,
how? (actually, that's my reason for using update sasl2 packages, I
actually still have some patches to try ...).

> - cyrus-imapd-devel-2.1.13-1mdk, cyrus-imapd-2.1.13-1mdk,
> cyrus-imapd-utils-2.1.13-1mdk
> - libsasl2-2.1.12-1mdk, cyrus-sasl-2.1.12-1mdk,
> libsasl2-plug-login-2.1.12-1mdk, libsasl2-plug-plain-2.1.12-1mdk,
> libsasl7-1.5.28-5mdk
>
>> Hmmm, I wonder if it would be useful to have a 'cyrus-imapd-migration'
>> package. I will try that.
>

Made, will try and test it now.

Regards,
Buchan

- --
|--Another happy Mandrake Club member--|
Buchan MilneMechanical Engineer, Network Manager
Cellphone * Work+27 82 472 2231 * +27 21 8828820x202
Stellenbosch Automotive Engineering http://www.cae.co.za
GPG Key   http://ranger.dnsalias.com/bgmilne.asc
1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/HXz9rJK6UGDSBKcRAn0gAKDKQ3ed6u+KEFp8aRwNkxYnQDafuACgvm35
DPFzXZpZSUyH3Nis/xadgQA=
=woZb
-END PGP SIGNATURE-

**
Please click on http://www.cae.co.za/disclaimer.htm to read our
e-mail disclaimer or send an e-mail to [EMAIL PROTECTED] for a copy.
**



Re: [Cooker] Re: [Contrib-Rpm] cyrus-imapd-2.1.14-1mdk

2003-07-22 Thread magic
Buchan Milne wrote:

9.1, db4.1, openldap-2.1.x (not sure which version is on the server in
question), sasl2 (which I still need to look into, specifically some
patches I received) and postfix. We have put this project back on the
front burner, we hope to take this machine into production as our mail
server within the next week or two.


Sounds like I echo your config pretty close (except for sasl2 - I'm 
using 91 stock).

Mailserver core:
- openldap-2.1.22, nss_ldap-204-2mdk, pam_ldap-161-2mdk
- postfix-2.0.12-3mdk
- cyrus-imapd-devel-2.1.13-1mdk, cyrus-imapd-2.1.13-1mdk, 
cyrus-imapd-utils-2.1.13-1mdk
- libsasl2-2.1.12-1mdk, cyrus-sasl-2.1.12-1mdk, 
libsasl2-plug-login-2.1.12-1mdk, libsasl2-plug-plain-2.1.12-1mdk, 
libsasl7-1.5.28-5mdk

Hmmm, I wonder if it would be useful to have a 'cyrus-imapd-migration'
package. I will try that.


 I think that is a Great idea!

 Thanks,

 S





Re: [Cooker] Re: [Contrib-Rpm] cyrus-imapd-2.1.14-1mdk

2003-07-22 Thread Buchan Milne
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

magic wrote:
> Buchan Milne wrote:
>
>> But, note that it seems this patch only makes it *possible* to enable
>> auto-creation, which AFAIK defaults to off. If it is enabled, it can
>> auto-create mail subdirectories and auto-subscribe a user to certain
>> mailboxes, but even if this *is* enabled, manual mailbox creation does
>> not do this. While mailbox autocreation may not be desired on some
>> systems, on any ldap system, it may be preferable to something like
>> kolab (which I still want to investigate packaging, I have a package
>> already, but it needs a lot of work to get it working still ...)
>>
>> Luca (Olivetti), I have just added this patch (or actually the more
>> up-to-date one from Simon Matter's SRPM), which at present I have done
>> as another conditional (--with autocreate), even though I think it would
>> be safe to apply the patch (I will test both with and without the
>> directives in /etc/imapd.conf to see) by default.
>>
>>
>
>   I think I already know the answer to this, but are you compiling
> against db41?

Yes.

> Are you building under a (modified) 91 or cooker
> environment?

9.1, db4.1, openldap-2.1.x (not sure which version is on the server in
question), sasl2 (which I still need to look into, specifically some
patches I received) and postfix. We have put this project back on the
front burner, we hope to take this machine into production as our mail
server within the next week or two.

> Finally, will you be posting the srpm on your site when you
> get finished?

Those which aren't already in cooker.

> I would be very interested in rebuilding on my (slightly
> modified) 91 mailserver build. - The auto creation would be very useful
> to me (as you pointed out) in an ldap environment.
>
>   Also of note, (it's my understanding) the mailbox creation &
> subscribing happens when the new user logs-in to the account for the
> first time, not upon reciept of a mail when the mailbox does not exits.
> (I know there was some concern about this in an earlier thread.)
>

- From the section added to imapd.conf(5) by the patch:
"createonpost: no
If  yes,  when  lmtpd  receives an incoming mail for an
INBOX that
does not exist, then the INBOX is automatically created by
lmtpd."

Note, I think the concern about this was that it would be the *default*
behaviour, whereas it would not be.

At least, that is if it works ... at present I haven't got it working ...

>> Another issue is that there are some scripts (cpmsg,
>> bsd2cyrus,folderxfer,batchreconstruct,inboxfer) in Simon Matter's
>> cyrus-imapd for converting from mbox (ie UW-IMAP) format, which you
>> don't have. Since we need to convert from mbox anyway, I would like to
>> add this. Any objection? Should I make a subpackage (they seem to depend
>> on formail, thus will depend on procmail, which would be a bit of a
>> waste ;-)).
>
>   I think the idea of a sub package would be good for the conversion
> utilities. (Not having to worry about added dependancies is a bonus for
> me, as I would not need/use the conversion utilities.)

Hmmm, I wonder if it would be useful to have a 'cyrus-imapd-migration'
package. I will try that.

Regards,
Buchan

- --
|--Another happy Mandrake Club member--|
Buchan MilneMechanical Engineer, Network Manager
Cellphone * Work+27 82 472 2231 * +27 21 8828820x202
Stellenbosch Automotive Engineering http://www.cae.co.za
GPG Key   http://ranger.dnsalias.com/bgmilne.asc
1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/HWvprJK6UGDSBKcRAol1AJwP5ejNMIKda/1EoLm2k4J8yu81IQCfSCZy
31g6a2uEOKkTI4UdtT7jRk0=
=DVFx
-END PGP SIGNATURE-

**
Please click on http://www.cae.co.za/disclaimer.htm to read our
e-mail disclaimer or send an e-mail to [EMAIL PROTECTED] for a copy.
**



Re: [Cooker] Re: [Contrib-Rpm] cyrus-imapd-2.1.14-1mdk

2003-07-22 Thread magic
Buchan Milne wrote:

But, note that it seems this patch only makes it *possible* to enable
auto-creation, which AFAIK defaults to off. If it is enabled, it can
auto-create mail subdirectories and auto-subscribe a user to certain
mailboxes, but even if this *is* enabled, manual mailbox creation does
not do this. While mailbox autocreation may not be desired on some
systems, on any ldap system, it may be preferable to something like
kolab (which I still want to investigate packaging, I have a package
already, but it needs a lot of work to get it working still ...)
Luca (Olivetti), I have just added this patch (or actually the more
up-to-date one from Simon Matter's SRPM), which at present I have done
as another conditional (--with autocreate), even though I think it would
be safe to apply the patch (I will test both with and without the
directives in /etc/imapd.conf to see) by default.
 

  I think I already know the answer to this, but are you compiling 
against db41?  Are you building under a (modified) 91 or cooker 
environment? Finally, will you be posting the srpm on your site when you 
get finished? I would be very interested in rebuilding on my (slightly 
modified) 91 mailserver build. - The auto creation would be very useful 
to me (as you pointed out) in an ldap environment.

  Also of note, (it's my understanding) the mailbox creation & 
subscribing happens when the new user logs-in to the account for the 
first time, not upon reciept of a mail when the mailbox does not exits. 
(I know there was some concern about this in an earlier thread.)

Another issue is that there are some scripts (cpmsg,
bsd2cyrus,folderxfer,batchreconstruct,inboxfer) in Simon Matter's
cyrus-imapd for converting from mbox (ie UW-IMAP) format, which you
don't have. Since we need to convert from mbox anyway, I would like to
add this. Any objection? Should I make a subpackage (they seem to depend
on formail, thus will depend on procmail, which would be a bit of a
waste ;-)).
 

  I think the idea of a sub package would be good for the conversion 
utilities. (Not having to worry about added dependancies is a bonus for 
me, as I would not need/use the conversion utilities.)

  Thanks,

  S





Re: [Cooker] Re: [Contrib-Rpm] cyrus-imapd-2.1.14-1mdk

2003-07-22 Thread Buchan Milne
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Luca Berra wrote:
> On Wed, Jul 16, 2003 at 01:34:52PM -0400, magic wrote:
>
>>   I think it would be great to add the mailbox auto creation patch as
>> well!
>>
>>  Here are the references:
>>
http://asg.web.cmu.edu/archive/message.php?mailbox=archive.info-cyrus&msg=18918
>>

>>
>> http://www.irbs.net/internet/info-cyrus/0211/0271.html
>>
http://asg.web.cmu.edu/archive/message.php?mailbox=archive.info-cyrus&searchterm=autocreate&msg=21343
>>

>>
>>
> I tought this was discussed already, i was against it so i am biased :)
> but I believe mailbox creation on cyrus it belongs to a still missing
> cyrusdrake, or better mailerdrake which could also take care to
> configure postfix, sasl authentication, and maybe amavisd-new and
> spamassassin or what else will be choosen to integrate in main.

But, note that it seems this patch only makes it *possible* to enable
auto-creation, which AFAIK defaults to off. If it is enabled, it can
auto-create mail subdirectories and auto-subscribe a user to certain
mailboxes, but even if this *is* enabled, manual mailbox creation does
not do this. While mailbox autocreation may not be desired on some
systems, on any ldap system, it may be preferable to something like
kolab (which I still want to investigate packaging, I have a package
already, but it needs a lot of work to get it working still ...)

Luca (Olivetti), I have just added this patch (or actually the more
up-to-date one from Simon Matter's SRPM), which at present I have done
as another conditional (--with autocreate), even though I think it would
be safe to apply the patch (I will test both with and without the
directives in /etc/imapd.conf to see) by default.

Another issue is that there are some scripts (cpmsg,
bsd2cyrus,folderxfer,batchreconstruct,inboxfer) in Simon Matter's
cyrus-imapd for converting from mbox (ie UW-IMAP) format, which you
don't have. Since we need to convert from mbox anyway, I would like to
add this. Any objection? Should I make a subpackage (they seem to depend
on formail, thus will depend on procmail, which would be a bit of a
waste ;-)).

Finally, there are a few other patches you don't have, any particular
reason, or can they be added as well?
cyrus-imapd-2.1.11-snmpargs.patch
cyrus-imapd-2.1.14-ipv6-20030703.diff.gz
cyrus-imapd-2.1.3-flock.patch

I haven't looked at them all in detail, or tested any of them yet (but I
probably will still today).

Regards,
Buchan

- --
|--Another happy Mandrake Club member--|
Buchan MilneMechanical Engineer, Network Manager
Cellphone * Work+27 82 472 2231 * +27 21 8828820x202
Stellenbosch Automotive Engineering http://www.cae.co.za
GPG Key   http://ranger.dnsalias.com/bgmilne.asc
1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/HVkarJK6UGDSBKcRAmZUAKCQbhPrvG7HoE2VyicdsbdaplNsXgCdECgh
aoAhdF8OUqZYIqwQQtQGJSY=
=tgdS
-END PGP SIGNATURE-

**
Please click on http://www.cae.co.za/disclaimer.htm to read our
e-mail disclaimer or send an e-mail to [EMAIL PROTECTED] for a copy.
**



Re: [Cooker] Re: [Contrib-Rpm] cyrus-imapd-2.1.14-1mdk

2003-07-17 Thread Florin
Luca Olivetti <[EMAIL PROTECTED]> writes:

> Florin wrote:
> 
> >  %changelog
> > +* Wed Jul 16 2003 Florin <[EMAIL PROTECTED]> 2.1.14-1mdk
> > +- 2.1.14
> > +- add mbexamine
> > +
> >  * Sun Apr 27 2003 Luca Olivetti <[EMAIL PROTECTED]> 2.1.12-7mdk
> >  - removed cyrus user creation on build host
> >  - cvt_cyrusdb_all script (source15) now uses 'file --version' to
> >
> 
> 
> Mmm, isn't this missing the fixes and adjustments I made in 2.1.13-1mdk,
> 2.1.13-2mdk and buchan made in 2.1.13-3mdk? (note that patch11 should be
> no longer needed with 2.1.14):

Maybe so ... but the problem you don't seem to use our package ... but
your own ... so I have always problems with the changelogs ... and the
diffs ... 
 
> * Wed Jun 18 2003 Buchan Milne <[EMAIL PROTECTED]> 2.1.13-3mdk
> - Require perl-devel
> - Don't require libdb4.0, 9.0 and later should do auto-requires.
> - Compiled against db4.1, sasl2
> 
> * Tue Jun 10 2003 Luca Olivetti <[EMAIL PROTECTED]> 2.1.13-2mdk
> - default location for ssl certificates moved to /etc/ssl/cyrus-imapd/
> - added patch 11 to fix problems with berkeley db 4.1
> 
> * Wed May 09 2003 Luca Olivetti <[EMAIL PROTECTED]> 2.1.13-1mdk
> - 2.1.13 (bug fix and security audit release)
> - changed the obsolete Prereq syntax to Requires(pre,post,preun,postun)
> - changed as well BuildPrereq to BuildRequires
> - added missing Requires(pre,post,preun,postun) (fixes bug 3838)
> - added "Conflicts: courier-imap" to make distlint happy (I don't like
>to have this conflict but...)
> - patch to select syslog facility (now using mail instead of local6)
> - removed logrotate script
> - some ideas/fixes taken from Simon Matters' redhat package:
>   cron.daily job to backup mailboxes.db
>   updated cvt_cyrusdb_all
>   changed exec path to /usr/lib/cyrus-imapd
>   added murder package
>   added forcedowncase and munge8bit patches
>   added build time options for full directory hash and idled
> 
> 
> Bye

-- 
Florin  http://www.mandrakesoft.com
http://people.mandrakesoft.com/~florin/



Re: [Cooker] Re: [Contrib-Rpm] cyrus-imapd-2.1.14-1mdk

2003-07-16 Thread Luca Berra
On Wed, Jul 16, 2003 at 01:34:52PM -0400, magic wrote:
Luca Olivetti wrote:

Mmm, isn't this missing the fixes and adjustments I made in 
2.1.13-1mdk, 2.1.13-2mdk and buchan made in 2.1.13-3mdk? (note that 
patch11 should be no longer needed with 2.1.14): 


  I think it would be great to add the mailbox auto creation patch as well!

 Here are the references:
http://asg.web.cmu.edu/archive/message.php?mailbox=archive.info-cyrus&msg=18918 

http://www.irbs.net/internet/info-cyrus/0211/0271.html
http://asg.web.cmu.edu/archive/message.php?mailbox=archive.info-cyrus&searchterm=autocreate&msg=21343
 

I tought this was discussed already, i was against it so i am biased :)
but I believe mailbox creation on cyrus it belongs to a still missing cyrusdrake, or 
better mailerdrake which could also take care to configure postfix, sasl 
authentication, and maybe amavisd-new and spamassassin or what else will be choosen to 
integrate in main.
regards,
L.
--
Luca Berra -- [EMAIL PROTECTED]
   Communication Media & Services S.r.l.
/"\
\ / ASCII RIBBON CAMPAIGN
 XAGAINST HTML MAIL
/ \


Re: [Cooker] Re: [Contrib-Rpm] cyrus-imapd-2.1.14-1mdk

2003-07-16 Thread magic
Luca Olivetti wrote:

Mmm, isn't this missing the fixes and adjustments I made in 
2.1.13-1mdk, 2.1.13-2mdk and buchan made in 2.1.13-3mdk? (note that 
patch11 should be no longer needed with 2.1.14): 


  I think it would be great to add the mailbox auto creation patch as well!

 Here are the references:
http://asg.web.cmu.edu/archive/message.php?mailbox=archive.info-cyrus&msg=18918 

http://www.irbs.net/internet/info-cyrus/0211/0271.html
http://asg.web.cmu.edu/archive/message.php?mailbox=archive.info-cyrus&searchterm=autocreate&msg=21343
 

  Cheers!

  S