Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
procmail creates directories, which it shouldn't create
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
corsair
Retired Dev
Retired Dev


Joined: 06 Oct 2003
Posts: 451
Location: Aachen, Germany

PostPosted: Sun Oct 31, 2004 1:16 pm    Post subject: procmail creates directories, which it shouldn't create Reply with quote

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
View user's profile Send private message
corsair
Retired Dev
Retired Dev


Joined: 06 Oct 2003
Posts: 451
Location: Aachen, Germany

PostPosted: Mon Nov 01, 2004 7:36 am    Post subject: Reply with quote

*bump*
Back to top
View user's profile Send private message
lindril
n00b
n00b


Joined: 02 Jan 2004
Posts: 16

PostPosted: Sat Nov 06, 2004 1:50 am    Post subject: Reply with quote

I have *exactly* the same problem. My config and commands match yours exactly. And so does the problem. :(
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Sat Nov 06, 2004 1:47 pm    Post subject: Re: procmail creates directories, which it shouldn't create Reply with quote

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
View user's profile Send private message
Stok
n00b
n00b


Joined: 03 Oct 2004
Posts: 3

PostPosted: Tue Feb 01, 2005 3:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum