[Dovecot] Speed up large maildirs

Leen Besselink leen at wirehub.nl
Tue Feb 15 21:55:08 EET 2005


> You can already do that with procmail: $LASTFOLDER contains the name of
> the file procmail delivered to (sometime it's relative to $MAILDIR,
> sometimes it's absolute - it seems to depend on where it's used), so you
> could use those two to tell the LDA which file to check.  You might be
> able to use the TRAP variable to achieve this; however all output from
> the TRAP command is logged to $LOGFILE, I don't know if it goes to
> STDOUT as well.  If you wanted to use a daemon you could adapt the
> Python code shown previously to read from a named pipe, and pop this
> near the start of your .procmailrc:
> 	TRAP='echo "$LASTFOLDER" > /path/to/pipe'
> or invoking it directly:
> 	TRAP='/path/to/reindex/program "$LASTFOLDER"'
>
> If you only want this for one mailbox you could add the 'c' flag to the
> recipe and duplicate the recipe directly afterwards, making the action
> 	| echo "$MAILDIR/$LASTFOLDER" > /path/to/pipe
> or:
> 	| /path/to/reindex/program "$MAILDIR/$LASTFOLDER"'
>
> You seem to need "$MAILDIR/$LASTFOLDER" here instead of just
> "$LASTFOLDER", though it may differ for you.
>
> Hopefully this will be useful to you,
>

Thank you and the others for all the suggestions, they were all very helpfull.

thanks again,
   Leen Besselink.
_____________________________________
New things are always on the horizon.





More information about the dovecot mailing list