PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Logiciels d'hébergement > comp.mail.imap > Converting mailboxes to mix format
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.mail.imap Discussion of IMAP-based mail systems.

Converting mailboxes to mix format

Réponse
 
LinkBack Outils de la discussion
Vieux 16/09/2006, 03h45   #1
René Berber
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Converting mailboxes to mix format

Hi,

I just built and installed UW imap-2006 and now I'm trying to set up
some mailboxes to use the mix format.

I tried the usual command:

mailutil copy mailbox "#driver.mix/mailbox.new"

but mailutil complains with "unknown driver".

I did a fast check on the code and see that in linkage.h the mix driver
is not included.

Is this kind of mailbox conversion not supported?

Thanks.
--
René Berber

  Réponse avec citation
Vieux 16/09/2006, 04h05   #2
Mark Crispin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Converting mailboxes to mix format

On Fri, 15 Sep 2006, Ren$Bi(B Berber wrote:
> I just built and installed UW imap-2006 and now I'm trying to set up
> some mailboxes to use the mix format.
> I tried the usual command:
> mailutil copy mailbox "#driver.mix/mailbox.new"
> but mailutil complains with "unknown driver".


Did you install the imap-2006 version of mailutil?

> I did a fast check on the code and see that in linkage.h the mix driver
> is not included.


Are you certain that you checked in the imap-2006 build tree?

> Is this kind of mailbox conversion not supported?


It is supported. We use it.

-- Mark --

http://panda.com/mrc
Democracy is two wolves and a sheep deciding what to eat for lunch.
Liberty is a well-armed sheep contesting the vote.
  Réponse avec citation
Vieux 16/09/2006, 05h17   #3
René Berber
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Converting mailboxes to mix format


Mark Crispin wrote:
> On Fri, 15 Sep 2006, Ren$Bi Berber wrote:
> > I just built and installed UW imap-2006 and now I'm trying to set up
> > some mailboxes to use the mix format.
> > I tried the usual command:
> > mailutil copy mailbox "#driver.mix/mailbox.new"
> > but mailutil complains with "unknown driver".

>
> Did you install the imap-2006 version of mailutil?


Yes, of course.

$ mailutil
mailutil version 2006.3

usage: mailutil command [switches] arguments
check [-d[ebug]] [-v[erbose]] [mailbox]
...

> > I did a fast check on the code and see that in linkage.h the mix driver
> > is not included.

>
> Are you certain that you checked in the imap-2006 build tree?


Yes, the one under ./c-client .

> > Is this kind of mailbox conversion not supported?

>
> It is supported. We use it.


Good to know, has the mix driver needs to be defined as extradrivers
(like mbox)?

Thanks for your quick reply.
--
René Berber

  Réponse avec citation
Vieux 16/09/2006, 07h40   #4
René Berber
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Converting mailboxes to mix format


René Berber wrote:
> Mark Crispin wrote:
> > On Fri, 15 Sep 2006, René Berber wrote:
> > > I just built and installed UW imap-2006 and now I'm trying to set up
> > > some mailboxes to use the mix format.
> > > I tried the usual command:
> > > mailutil copy mailbox "#driver.mix/mailbox.new"
> > > but mailutil complains with "unknown driver".

> >
> > Did you install the imap-2006 version of mailutil?

[snip]
> > > Is this kind of mailbox conversion not supported?

> >
> > It is supported. We use it.


Found the problem, mix is not supported under Cygwin, it works fine
under Solaris.

I made a test changing the Makefile for cyg, mailutil compiles fine but
when I run it :

$ mailutil copy -v DenyHosts "#driver.mix/DenyHosts.new"
/home/rberber/mail/DenyHosts [70 message(s)] =>
#driver.mix/DenyHosts.new
[Failed]

even when the result seems fine:

$ ll DenyHosts.new/
total 417K
drwx------+ 2 rberber None 0 Sep 16 01:30 ./
drwxrw-rw-+ 3 rberber None 0 Sep 16 01:30 ../
-rw------- 1 rberber None 416K Sep 16 01:30 .mix450b9a17
-rw------- 1 rberber None 0 Sep 16 01:30 .mixindex
-rw------- 1 rberber None 54 Sep 16 01:30 .mixmeta
-rw------- 1 rberber None 0 Sep 16 01:30 .mixstatus

the original mailbox is about the same size:

-rw------- 1 rberber None 414K Aug 9 13:22 DenyHosts

Anyway, I'll take it is not supported.

One last question: when I convert a mbox file should I create an INBOX
directory?

--
René Berber

  Réponse avec citation
Vieux 16/09/2006, 08h52   #5
LifeWins
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Converting mailboxes to mix format

René Berber wrote:

>
> Good to know, has the mix driver needs to be defined as extradrivers
> (like mbox)?


No, it should not be included in EXTRADRIVERS.
If you include it then things will not work.


>
> Thanks for your quick reply.
> --
> René Berber


- WBR,
LifeWins

  Réponse avec citation
Vieux 16/09/2006, 17h33   #6
Mark Crispin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Converting mailboxes to mix format

On Fri, 15 Sep 2006, Ren$Bi(B Berber wrote:
> Found the problem, mix is not supported under Cygwin, it works fine
> under Solaris.


I haven't tried using mix under Cygwin; and in general I do not support
Cygwin.

For what it's worth, the result you gave wasn't "fine"; both the index and
status files are empty so it isn't a usable mailbox. So you were getting
the truth from mailutil when it failed.

The problem with Cygwin is that it is neither a complete, nor fully
accurate, implementation of UNIX. For example, Cygwin has Windows style
mandatory locks instead of UNIX style advisory locks; this will bite any
application which implements its locking strategy based upon advisory
locks.

Cygwin is best thought of being a compatibility package that allows the
porting of some UNIX applications to Windows. But as a UNIX environment,
Cygwin will never work as well as a true UNIX system, nor will software
running under Cygwin ever work as well as native software written for
Windows.

There is a specific port of UW IMAP to Windows. This port does not
currently have mix support, although it is not outside the realm of
possibility that a Windows mix driver would be developed in the future.

-- Mark --

http://panda.com/mrc
Democracy is two wolves and a sheep deciding what to eat for lunch.
Liberty is a well-armed sheep contesting the vote.
  Réponse avec citation
Vieux 16/09/2006, 18h02   #7
Mark Crispin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Converting mailboxes to mix format

On Fri, 15 Sep 2006, Ren$Bi(B Berber wrote:
> Found the problem, mix is not supported under Cygwin, it works fine
> under Solaris.


The Cygwin build specifically sets the drivers that are known to work (or
have been kludged to work) with it. Other local mailbox drivers are known
not to work in Cygwin and are specifically excluded. mix was excluded by
default.

Now that I think about it, mix won't/can't work under Cygwin. Cygwin's
Windows-style mandatory locking (as opposed to UNIX-style advisory
locking) is by itself enough to stop mix from working.

So, if you want mix format on Windows, I'll take that as a request to
build a native Windows driver for mix. As I said in another posting, it
is within the realm of possibility.

> One last question: when I convert a mbox file should I create an INBOX
> directory?


The conversion process does this automatically, e.g.,
mailutil copy -kw INBOX #driver.mix/INBOX
is the normal command to convert from a traditional UNIX mailbox INBOX to
a mix format INBOX on UNIX systems.

-- Mark --

http://panda.com/mrc
Democracy is two wolves and a sheep deciding what to eat for lunch.
Liberty is a well-armed sheep contesting the vote.
  Réponse avec citation
Vieux 16/09/2006, 18h03   #8
Mark Crispin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Converting mailboxes to mix format

On Fri, 15 Sep 2006, Ren$Bi(B Berber wrote:
> Good to know, has the mix driver needs to be defined as extradrivers
> (like mbox)?


mix is part of the standard drivers list on UNIX. It is not on Windows
(which includes Cygwin) because there is no(t yet any) supported Windows
code for mix.

So, no, you would not include mix in extradrivers.

-- Mark --

http://panda.com/mrc
Democracy is two wolves and a sheep deciding what to eat for lunch.
Liberty is a well-armed sheep contesting the vote.
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 22h10.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,13520 seconds with 16 queries