Re: [Dovecot] Maildir format

2014-02-14 Thread Gedalya

On 02/14/2014 10:30 AM, Roman Gelfand wrote:

Here is my folders.  Though there are emails in the inbox, I am not
seeing anything in new/ or cur/ folders.
Then there are no emails in your mailbox. If you do see emails in the 
mailbox then it is some place other than what you are looking at. It's 
pretty simple. I can't speculate much beyond this, but if your mailbox 
is in maildir format and cur and new are empty then you have no mail 
there, that is for certain.


Re: [Dovecot] Maildir format

2014-02-14 Thread Roman Gelfand
I am not sure where I went wrong here.  The wiki says...

By default Dovecot uses Maildir++ directory layout for organizing
mailbox directories. This means that all the folders are directly
inside ~/Maildir directory:

~/Maildir/new, ~/Maildir/cur and ~/Maildir/tmp directories contain the
messages for INBOX. The tmp directory is used during delivery, new
messages arrive in new and read shall be moved to cur by the clients.

~/Maildir/.folder/ is a mailbox folder

~/Maildir/.folder.subfolder/ is a subfolder of a folder (ie. "folder/subfolder")

You can also optionally use the "fs" layout by appending :LAYOUT=fs to
mail_location. This makes the folder structure look like:

~/Maildir/new, ~/Maildir/cur and ~/Maildir/tmp directories contain the
messages for INBOX, just like with Maildir++.

~/Maildir/folder/ is a mailbox folder

~/Maildir/folder/subfolder/ is a subfolder of a folder



Here is my folders.  Though there are emails in the inbox, I am not
seeing anything in new/ or cur/ folders.

root@mbx:/etc/dovecot# ls -la /vmail/domain.tld/j.doe/Maildir/
drwx-- 5 999 mail  4096 Feb 14 10:06 .
drwx-- 3 999 mail  4096 Feb 12 19:53 ..
drwx-- 2 999 mail  4096 Feb 14 10:02 cur
-rw--- 1 999 mail 17408 Feb 14 10:02 dovecot.index.cache
-rw--- 1 999 mail  2896 Feb 14 10:06 dovecot.index.log
-rw--- 1 999 mail51 Feb 14 10:06 dovecot-uidlist
-rw--- 1 999 mail 8 Feb 12 19:53 dovecot-uidvalidity
-r--r--r-- 1 999 mail 0 Feb 12 19:53 dovecot-uidvalidity.52fc176c
drwx-- 2 999 mail  4096 Feb 14 10:02 new
drwx-- 2 999 mail  4096 Feb 14 09:59 tmp

root@mbx:/etc/dovecot# ls -la  /vmail/domain.tld/j.joe/Maildir/new
total 8
drwx-- 2 999 mail 4096 Feb 14 10:02 .
drwx-- 5 999 mail 4096 Feb 14 10:06 ..


root@mbx:/etc/dovecot# ls -la  /vmail/domain.tld/j.joe/Maildir/cur
total 8
drwx-- 2 999 mail 4096 Feb 14 10:02 .
drwx-- 5 999 mail 4096 Feb 14 10:06 ..



On Fri, Feb 14, 2014 at 9:41 AM, Steffen Kaiser
 wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On Fri, 14 Feb 2014, Roman Gelfand wrote:
>
>> I see where the mail box meta data is kept.  But don't the actual
>> emails.  I was under the impression the impression the email was kept,
>> on the server, as .eml.
>
>
> http://wiki2.dovecot.org/MailboxFormat/Maildir
>
> - -- Steffen Kaiser
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.11 (GNU/Linux)
>
> iQEVAwUBUv4rNnD1/YhP6VMHAQJzRAgA0yz7cZ0tFAgzluubKN7jK0ha3bOXcd5A
> ue2aOVWfVz52eHUjgBDY5E4/s37WWe022WKNS1LAEcwbTC/xo7VdGYA472oQdxMm
> QWfOvEPdxF8nSY4GIeAe5YiYyszXhQE4i6bC/ouBh0v0OKu6T6VIdd9YYowMW43r
> fmpg23xHV/MY7Tk36ac41fZhDYvg0u0uMr7mJyKkf17kuRIBZ0G34AVBodbWml0/
> MN9oLSfIsriOq5zqZw5gkSg1GMsCHneNreKnRcnW5iVGXyYWWu9FoEUwTxUcrf9I
> vJI7JA+ut38YN8iO7pFzOvoJ0z4UPeIckp9/7zs8lkjjh5orhQAVcA==
> =9fx8
> -END PGP SIGNATURE-


Re: [Dovecot] Maildir format

2014-02-14 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Fri, 14 Feb 2014, Roman Gelfand wrote:


I see where the mail box meta data is kept.  But don't the actual
emails.  I was under the impression the impression the email was kept,
on the server, as .eml.


http://wiki2.dovecot.org/MailboxFormat/Maildir

- -- 
Steffen Kaiser

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)

iQEVAwUBUv4rNnD1/YhP6VMHAQJzRAgA0yz7cZ0tFAgzluubKN7jK0ha3bOXcd5A
ue2aOVWfVz52eHUjgBDY5E4/s37WWe022WKNS1LAEcwbTC/xo7VdGYA472oQdxMm
QWfOvEPdxF8nSY4GIeAe5YiYyszXhQE4i6bC/ouBh0v0OKu6T6VIdd9YYowMW43r
fmpg23xHV/MY7Tk36ac41fZhDYvg0u0uMr7mJyKkf17kuRIBZ0G34AVBodbWml0/
MN9oLSfIsriOq5zqZw5gkSg1GMsCHneNreKnRcnW5iVGXyYWWu9FoEUwTxUcrf9I
vJI7JA+ut38YN8iO7pFzOvoJ0z4UPeIckp9/7zs8lkjjh5orhQAVcA==
=9fx8
-END PGP SIGNATURE-


[Dovecot] Maildir format

2014-02-14 Thread Roman Gelfand
I see where the mail box meta data is kept.  But don't the actual
emails.  I was under the impression the impression the email was kept,
on the server, as .eml.

Thanks in advance


Re: [Dovecot] Maildir format use question

2009-03-02 Thread Timo Sirainen
On Sun, 2009-03-01 at 12:41 -0600, Rick Romero wrote:
> I've got a couple servers using Maildir format.  As I understand it from
> a simple perspective, 'new' contains newly delivered messages, and 'cur'
> contains messages that have been 'handled'.

I'm not sure if there's anything official, but typically messages are
moved from new/ to cur/ the first time they're seen by a MUA. Dovecot
adds \Recent flag to that session which managed to move the message to
cur/.

> Is it possible to have Dovecot NOT move a file from new/ to cur/ until a
> flag has been assigned to the mail?

By changing the code, sure. I'm not really interested in implementing
that.

> Just from a, possible, performance
> standpoint - it seems when accessing an INBOX from a PHP webmail system
> with MANY new mails, there is an unnecessary(?) mass move of these files
> to another folder.

You could try dbox format for better performance.


signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] Maildir format use question

2009-03-02 Thread Rick Romero
On Sun, 2009-03-01 at 22:37 -0800, Asheesh Laroia wrote:
> On Sun, 1 Mar 2009, Rick Romero wrote:
> 
> > So I'm left with a quandry.  I guess the simple question is, Should mail 
> > in cur, EVER not have a flag?  I suppose if it were marked as UNSEEN 
> > after being SEEN, that's possible.  So I just answered myself there :)
> 
> Just SELECTing a mailbox causes Dovecot to

>From what I've observed, SELECT does not - although EXAMINE might:
   snip of large logfile   Everything still in new/
SELECT INBOX.Spam
A00801 FETCH 7 UID
A00802 UID FETCH 50681:* (FLAGS RFC822.SIZE INTERNALDATE
BODY.PEEK[HEADER.FIELDS (DATE FROM TO CC SUBJECT REFERENCES IN-REPLY-TO
MESSAGE-ID MIME-VERSION CONTENT-TYPE X-MAILING-LIST X-LOOP LIST-ID
LIST-POST MAILING-LIST ORIGINATOR X-LIST SENDER RETURN-PATH
X-BEENTHERE)])
A00803 UID FETCH 50681 BODY.PEEK[]
A00804 UID FETCH 50682 BODY.PEEK[]
A00805 UID FETCH 50683 BODY.PEEK[]
A00806 UID FETCH 50684 BODY.PEEK[]
A00807 UID FETCH 50685 BODY.PEEK[]
A00808 UID FETCH 50686 BODY.PEEK[]
A00809 UID FETCH 50687 BODY.PEEK[]
A00810 UID FETCH 50688 BODY.PEEK[]
A00811 UID FETCH 50689 BODY.PEEK[]
A00812 UID FETCH 50690 BODY.PEEK[]
A00813 UID FETCH 50691 BODY.PEEK[]
A00814 UID STORE 50689:50690 FLAGS.SILENT (\Deleted \Seen)
A00815 UID STORE 50691 FLAGS.SILENT (\Seen)
A00816 SELECT INBOX

Next is PHP, everything moved to cur/ - entire log

0002 CAPABILITY
0003 NOOP
0004 EXAMINE INBOX.Spam
0005 UID SEARCH ALL UNDELETED
0006 STATUS INBOX.Spam (MESSAGES RECENT UNSEEN UIDNEXT UIDVALIDITY)
0007 UID FETCH 50674 UID
0008 UID FETCH 50675 UID
0009 UID FETCH 50676 UID
000a UID FETCH 50677 UID
000b UID FETCH 50678 UID
000c UID FETCH 50679 UID
000d FETCH 1,2:6 (ENVELOPE BODY.PEEK[HEADER.FIELDS (Path Message-ID
Content-MD5 Content-Disposition Content-Language Content-Location
Newsgroups Followup-To References)] INTERNALDATE RFC822.SIZE FLAGS)
000e UID SEARCH ALL UNDELETED UNSEEN
000f GETQUOTAROOT INBOX.Spam
0010 LOGOUT

For a minute I thought maybe FLAGS.SILENT might be it, but that's only
occuring with the client that doesn't 'auto-move' from new/ to cur/ 
Maybe STATUS does it.

> 
> > Is it possible to have Dovecot NOT move a file from new/ to cur/ until a 
> > flag has been assigned to the mail?  Just from a, possible, performance 
> > standpoint - it seems when accessing an INBOX from a PHP webmail system 
> > with MANY new mails, there is an unnecessary(?) mass move of these files 
> > to another folder.
> 
> No, (as I understand it) because the time when they are moved to cur/ is 
> when they are assigned UIDs.

Again this isn't what I see.  These messages are being accessed by UID
prior to being moved from new/ to cur/.

> You can avoid this performance loss (as I understand it) by using Dovecot 
> deliver to deliver the messages straight into cur/. (Others including 
> Timo, correct me if I misunderstand!)

I don't think that's right.  As I understand it, Deliver is primarily
used to update the indexes - I don't think there any reason to break
with Maildir standards and put new mail directly into cur/

Rick




Re: [Dovecot] Maildir format use question

2009-03-01 Thread Asheesh Laroia

On Sun, 1 Mar 2009, Rick Romero wrote:

So I'm left with a quandry.  I guess the simple question is, Should mail 
in cur, EVER not have a flag?  I suppose if it were marked as UNSEEN 
after being SEEN, that's possible.  So I just answered myself there :)


Just SELECTing a mailbox causes Dovecot to

Is it possible to have Dovecot NOT move a file from new/ to cur/ until a 
flag has been assigned to the mail?  Just from a, possible, performance 
standpoint - it seems when accessing an INBOX from a PHP webmail system 
with MANY new mails, there is an unnecessary(?) mass move of these files 
to another folder.


No, (as I understand it) because the time when they are moved to cur/ is 
when they are assigned UIDs.


You can avoid this performance loss (as I understand it) by using Dovecot 
deliver to deliver the messages straight into cur/. (Others including 
Timo, correct me if I misunderstand!)


-- Asheesh.

--
Many pages make a thick book, except for pocket Bibles which are on very
very thin paper.


[Dovecot] Maildir format use question

2009-03-01 Thread Rick Romero

Hey all,

I've got a couple servers using Maildir format.  As I understand it from
a simple perspective, 'new' contains newly delivered messages, and 'cur'
contains messages that have been 'handled'.

I like to keep things simple for users, so rather than have 'Spam',
'Junk' 'ToLearn' and other possibly confusing folders, what I thought I
would do is scan their .Spam/cur folder for mail that was older than an
hour (based on file atime(?) stamp) and feed that through SpamAssassin.
The idea being that anything in 'cur' would:
1. have been moved there by the user.
2. be recently read, and I think if it were innocent, would be handled
within an hour
3. Not contain newly delivered, unread mail.

This is actually what I see when I view my Spam folder through
Evolution.   If I use a PHP webclient - either Horde or Roundcube (I've
captured the debugs if you'd like them), then a simple view of the Spam
folder causes the files to be moved from new/ to cur/.  They are updated
with the :2, - but since nothing was actually done, no flags are added.

So I'm left with a quandry.  I guess the simple question is, Should mail
in cur, EVER not have a flag?  I suppose if it were marked as UNSEEN
after being SEEN, that's possible.  So I just answered myself there :)

Is it possible to have Dovecot NOT move a file from new/ to cur/ until a
flag has been assigned to the mail?  Just from a, possible, performance
standpoint - it seems when accessing an INBOX from a PHP webmail system
with MANY new mails, there is an unnecessary(?) mass move of these files
to another folder.

Thoughts?

Rick




Re: [Dovecot] Maildir format, "From " in the first line

2008-01-24 Thread Sébastien Munch
> Yes you can use backports version, its works just fine!

Yay, it works !

Thanks

Regards

-- 
Sébastien Munch - expert Linux et sécurité
Société Adelux - http://www.adelux.fr
Tél. 01 46 88 60 53 - Fax. 01 47 90 26 32
GPG. http://www.adelux.fr/societe/gpg/sebastien.asc



Re: [Dovecot] Maildir format, "From " in the first line

2008-01-24 Thread Nikolay Shopik

On 24.01.2008 16:59, Sébastien Munch wrote:

Le Thursday 24 January 2008 14:43:26 Charles Marcus, vous avez écrit :
  

On 1/24/2008, Sébastien Munch ([EMAIL PROTECTED]) wrote:


I'm using Dovecot 1.0.rc15 from Debian Etch.
  


Thats an old/buggy version - please update to a release version (1.0.10)




The problem is, I'm using the Debian Etch package.

1.0.10 seems to be packaged in backports. Should I use the backports version ?

Cordialement

  

Yes you can use backports version, its works just fine!


Re: [Dovecot] Maildir format, "From " in the first line

2008-01-24 Thread Sébastien Munch
Le Thursday 24 January 2008 14:43:26 Charles Marcus, vous avez écrit :
> On 1/24/2008, Sébastien Munch ([EMAIL PROTECTED]) wrote:
> > I'm using Dovecot 1.0.rc15 from Debian Etch.
>
> 
> Thats an old/buggy version - please update to a release version (1.0.10)
> 

The problem is, I'm using the Debian Etch package.

1.0.10 seems to be packaged in backports. Should I use the backports version ?

Cordialement

-- 
Sébastien Munch - expert Linux et sécurité
Société Adelux - http://www.adelux.fr
Tél. 01 46 88 60 53 - Fax. 01 47 90 26 32
GPG. http://www.adelux.fr/societe/gpg/sebastien.asc



Re: [Dovecot] Maildir format, "From " in the first line

2008-01-24 Thread Sébastien Munch
Le Thursday 24 January 2008 13:51:42 Timo Sirainen, vous avez écrit :
> > Why is this line appended by deliver ? Is there a way to remove it ? Or
> > is there something else I can do to avoid this forwarding problem.
> >
> > I'm using Dovecot 1.0.rc15 from Debian Etch.
>
> Uprade, and it's gone.

I've upgraded to 1.0.rc15-2etch3, I still get the same problem.

-- 
Sébastien Munch - expert Linux et sécurité
Société Adelux - http://www.adelux.fr
Tél. 01 46 88 60 53 - Fax. 01 47 90 26 32
GPG. http://www.adelux.fr/societe/gpg/sebastien.asc



Re: [Dovecot] Maildir format, "From " in the first line

2008-01-24 Thread Charles Marcus

On 1/24/2008, Sébastien Munch ([EMAIL PROTECTED]) wrote:

I'm using Dovecot 1.0.rc15 from Debian Etch.



Thats an old/buggy version - please update to a release version (1.0.10)


--

Best regards,

Charles


Re: [Dovecot] Maildir format, "From " in the first line

2008-01-24 Thread Timo Sirainen
On Thu, 2008-01-24 at 12:41 +0100, Sébastien Munch wrote:
> Using Dovecot's deliver MDA, all mails are stored with the line
> "From   " appended. When forwarding these mails as 
> attachements, 
> the recipients get the source code.
..
> Why is this line appended by deliver ? Is there a way to remove it ? Or is 
> there something else I can do to avoid this forwarding problem.
> 
> I'm using Dovecot 1.0.rc15 from Debian Etch.

Uprade, and it's gone.



signature.asc
Description: This is a digitally signed message part


[Dovecot] Maildir format, "From " in the first line

2008-01-24 Thread Sébastien Munch
Hello,

Using Dovecot's deliver MDA, all mails are stored with the line
"From   " appended. When forwarding these mails as attachements, 
the recipients get the source code.

When Postfix delivers emails directly in the Maildirs, this first line is not 
appended, and there is no problem when forwarding the mails.

Why is this line appended by deliver ? Is there a way to remove it ? Or is 
there something else I can do to avoid this forwarding problem.

I'm using Dovecot 1.0.rc15 from Debian Etch.

Regards

-- 
Sébastien Munch - expert Linux et sécurité
Société Adelux - http://www.adelux.fr
Tél. 01 46 88 60 53 - Fax. 01 47 90 26 32
GPG. http://www.adelux.fr/societe/gpg/sebastien.asc



Re: [Dovecot] Maildir format migration

2007-05-17 Thread Timo Sirainen
On Thu, 2007-05-17 at 23:04 +0800, Tony Tsang wrote:
> Hi all,
> 
> Thanks for the suggestions. I have used patch to UW IMAP to support
> maildir, the problem is dovecot uses dot for delimiter, while the
> patch for UW IMAP uses slash. So UW IMAP and dovecot have different
> directory structure. If this is configurable in dovecot, it would be
> nice.

Oh, so it works differently than I thought. I'll make the separator
configurable in some future Dovecot version, but for now it would be
easiest if you just renamed the maildirs. Or you can also change the
sources:

src/lib-storage/index/maildir/maildir-storage.h:
#define MAILDIR_FS_SEP '.'
#define MAILDIR_FS_SEP_S "."

But do the maildirs still begin with "-" character? If not, then just
changing the above defines won't be enough.



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] Maildir format migration

2007-05-17 Thread Tony Tsang

Hi all,

Thanks for the suggestions. I have used patch to UW IMAP to support
maildir, the problem is dovecot uses dot for delimiter, while the
patch for UW IMAP uses slash. So UW IMAP and dovecot have different
directory structure. If this is configurable in dovecot, it would be
nice.

Tony.

On 5/17/07, Timo Sirainen <[EMAIL PROTECTED]> wrote:

On Thu, 2007-05-17 at 15:47 +0800, Tony Tsang wrote:
> Hi all,
>
> I am planning to use dovecot IMAP on my server. Currently it is
> running UW-IMAP server with Maildir format storing users' mail. I've
> found that dovecot uses different Maildir format from UW-IMAP. Is
> there any configuration option for adapting dovecot to use format used
> by UW-IMAP?

A standard UW-IMAP distribution doesn't include support for maildir. Do
you mean you're using that unofficial patch which used UID=xyz in the
maildir filenames? If so, you'll have to change the directory layout to
Maildir++, but otherwise those filenames would work, even though new
UIDs will be given to them unless you write a script that writes them to
dovecot-uidlist file.

Alternatively you could try CVS HEAD version of Dovecot which supports
filesystem layout for Maildirs (mail_location =
maildir:~/Maildir:LAYOUT=FS), but then again CVS HEAD is an actual
stable release.




Re: [Dovecot] Maildir format migration

2007-05-17 Thread Timo Sirainen
On Thu, 2007-05-17 at 16:48 +0300, Timo Sirainen wrote:
> but then again CVS HEAD is an actual stable release.

"is not", of course..



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] Maildir format migration

2007-05-17 Thread Timo Sirainen
On Thu, 2007-05-17 at 15:47 +0800, Tony Tsang wrote:
> Hi all,
> 
> I am planning to use dovecot IMAP on my server. Currently it is
> running UW-IMAP server with Maildir format storing users' mail. I've
> found that dovecot uses different Maildir format from UW-IMAP. Is
> there any configuration option for adapting dovecot to use format used
> by UW-IMAP?

A standard UW-IMAP distribution doesn't include support for maildir. Do
you mean you're using that unofficial patch which used UID=xyz in the
maildir filenames? If so, you'll have to change the directory layout to
Maildir++, but otherwise those filenames would work, even though new
UIDs will be given to them unless you write a script that writes them to
dovecot-uidlist file.

Alternatively you could try CVS HEAD version of Dovecot which supports
filesystem layout for Maildirs (mail_location =
maildir:~/Maildir:LAYOUT=FS), but then again CVS HEAD is an actual
stable release.


signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] Maildir format migration

2007-05-17 Thread Charles Marcus

I am planning to use dovecot IMAP on my server. Currently it is
running UW-IMAP server with Maildir format storing users' mail. I've
found that dovecot uses different Maildir format from UW-IMAP. Is
there any configuration option for adapting dovecot to use format used
by UW-IMAP?


I just finished conversion from UW-IMAP mbox to Dovecot Maildir using 
only Dovecot's "convert" plug-in.


His UW-IMAP is already storing in maldir, not mbox - that plugin - while 
excellent! - is for converting from mbox to maildir...


And after re-reading this - he said that UW's maildir format is 
'different' from dovecot - but this apparently is not true...


http://wiki.dovecot.org/Migration/UW

--

Best regards,

Charles


Re: [Dovecot] Maildir format migration

2007-05-17 Thread Bruce Bodger


On May 17, 2007, at 3:47 AM, Tony Tsang wrote:


I am planning to use dovecot IMAP on my server. Currently it is
running UW-IMAP server with Maildir format storing users' mail. I've
found that dovecot uses different Maildir format from UW-IMAP. Is
there any configuration option for adapting dovecot to use format used
by UW-IMAP?


I just finished conversion from UW-IMAP mbox to Dovecot Maildir using  
only Dovecot's "convert" plug-in.  The plug-in worked far better than  
other conversion scripts that I've tried such as perfect_maildir.pl  
and mb2md.  It made the conversion totally automatic as each user  
logged into their account.


http://wiki.dovecot.org/Plugins

Good luck,
B. Bodger
New York, NY


Re: [Dovecot] Maildir format migration

2007-05-17 Thread Charles Marcus

I am planning to use dovecot IMAP on my server. Currently it is
running UW-IMAP server with Maildir format storing users' mail. I've
found that dovecot uses different Maildir format from UW-IMAP. Is
there any configuration option for adapting dovecot to use format used
by UW-IMAP?


http://wiki.dovecot.org/Migration/UW

--

Best regards,

Charles


[Dovecot] Maildir format migration

2007-05-17 Thread Tony Tsang

Hi all,

I am planning to use dovecot IMAP on my server. Currently it is
running UW-IMAP server with Maildir format storing users' mail. I've
found that dovecot uses different Maildir format from UW-IMAP. Is
there any configuration option for adapting dovecot to use format used
by UW-IMAP?

Thanks a lot.

Tony.