View previous topic :: View next topic |
Author |
Message |
corsair Retired Dev

Joined: 06 Oct 2003 Posts: 451 Location: Aachen, Germany
|
Posted: Sun Oct 31, 2004 1:16 pm Post subject: procmail creates directories, which it shouldn't create |
|
|
Hi,
This is what I want to do:
My maildir is ~/.maildir/ . In this directory I have some subdirectories which are maildirs:
- ~/.maildir/inbox
- ~/.maildir/outbox
- ~/.maildir/gentoo
- etc.
so the directory .maildir looks like this:
Code: |
total 36
drwx------ 5 markus users 4096 Oct 31 11:39 gentoo
drwx------ 5 markus users 4096 Oct 31 13:28 inbox
drwx------ 5 markus users 4096 Sep 22 22:49 outbox
drwx------ 5 markus users 4096 Oct 31 09:32 postponed
|
I fetch my mail using fetchmail and procmail with this command with this command:
Code: |
fetchmail -akv -m "/usr/bin/procmail -d %T"
|
This works fine and procmail moves the mail in the correct dirs, but here is the problem: It creates the directories ~/.maildir/{new,cur,tmp} every time it fetches mail. They are empty... Now: How can I avoid that procmail creates those directories?
Here is my .procmailrc:
Code: |
MAILDIR=$HOME/.maildir/inbox/
DEFAULT=$HOME/.maildir/inbox/
LOGFILE=$HOME/.procmaillog
LOGABSTRACT=no
#VERBOSE=on...is only used for debugging
VERBOSE=off
FORMAIL=/usr/bin/formail
NL="
"
#catch duplicates using formail
:0 Whc: .msgid.lock
| $FORMAIL -D 16384 .msgid.cache
#catch any other gentoo mail
:0
* ^From:.*gentoo.org
$MAILDIR/../gentoo/
:0
* .*
$MAILDIR/../inbox/
|
Markus |
|
Back to top |
|
 |
corsair Retired Dev

Joined: 06 Oct 2003 Posts: 451 Location: Aachen, Germany
|
Posted: Mon Nov 01, 2004 7:36 am Post subject: |
|
|
*bump* |
|
Back to top |
|
 |
lindril n00b

Joined: 02 Jan 2004 Posts: 16
|
Posted: Sat Nov 06, 2004 1:50 am Post subject: |
|
|
I have *exactly* the same problem. My config and commands match yours exactly. And so does the problem.  |
|
Back to top |
|
 |
UberLord Retired Dev


Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
Posted: Sat Nov 06, 2004 1:47 pm Post subject: Re: procmail creates directories, which it shouldn't create |
|
|
corsair wrote: |
This works fine and procmail moves the mail in the correct dirs, but here is the problem: It creates the directories ~/.maildir/{new,cur,tmp} every time it fetches mail. They are empty... Now: How can I avoid that procmail creates those directories? |
~/.maildir is your default inbox - that's where the mail starts which i why they are created.
I maybe wrong, but it makes sense |
|
Back to top |
|
 |
Stok n00b

Joined: 03 Oct 2004 Posts: 3
|
Posted: Tue Feb 01, 2005 3:41 pm Post subject: |
|
|
It is this change in the gentoo portage patch that causes it:
Code: |
-#define MAILSPOOLDIR "/var/spool/mail/" /* watch the trailing / */
+#define MAILSPOOLDIR "" /* watch the trailing / */
|
If you emerge with the mbox USE-flag set, the patch will not apply, and the directorys are not created. |
|
Back to top |
|
 |
|