[exim-dev] [Bug 1481] New: maildirsize creation failed in ma…

Góra strony
Delete this message
Reply to this message
Autor: Heiko Schlichting
Data:  
Dla: exim-dev
Nowe tematy: [exim-dev] [Bug 1481] maildirsize creation failed in maildir subfolders, [exim-dev] [Bug 1481] maildirsize creation failed in maildir subfolders, [exim-dev] [Bug 1481] maildirsize creation failed in maildir subfolders
Temat: [exim-dev] [Bug 1481] New: maildirsize creation failed in maildir subfolders
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1481
           Summary: maildirsize creation failed in maildir subfolders
           Product: Exim
           Version: 4.82
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Transports
        AssignedTo: nigel@???
        ReportedBy: heiko@???
                CC: exim-dev@???



Mail delivery into maildir subfolder failed if quota and maildirsize files are
enabled and top level maildir (tmp directory) does not exists.

Example transport:

devel_maildir:
driver = appendfile
maildir_format
directory = /tmp/eximdebug/.beispiel
maildirfolder_create_regex = /\.[^/]+$
quota = 10G
maildir_use_size_file = true

For testing /tmp/eximdebug should not exists (or does not contain maildir
directories).

What I expect after delivering one message:

/tmp/eximdebug/.beispiel/new/1400577169.H632640P337104.Vietnam
/tmp/eximdebug/.beispiel/maildirfolder
/tmp/eximdebug/maildirsize

What I get:

T=devel_maildir defer (2): No such file or directory: while opening or reading
/tmp/eximdebug/maildirsize

If I remove the maildirfolder_create_regex option, delivery succeeds but
maildirsize is created within the subfolder (as expected), so this is not a
solution.

If I change

tempname = string_sprintf("%s/tmp/%lu.H%luP%lu.%s", path, tv.tv_sec,

in tf_maildir.c into

tempname = string_sprintf("%s/tmp.%lu.H%luP%lu.%s", path, tv.tv_sec,

everything works fine. It seems that exim needs the tmp directory in the upper
level but does not create it first.

Proposed solution:

If exim need that tmp directory at the maildir toplevel (/tmp/eximdebug) for
maildirsize file it should also create /tmp/eximdebug/{cur,new,tmp} directories
in addition to /tmp/eximdebug/.beispiel/{cur,new,tmp}.


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email