Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 22961 - gentoo-maildir.diff doesn't patch procmail to use maildirs
Summary: gentoo-maildir.diff doesn't patch procmail to use maildirs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Brandon Low (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-16 16:56 UTC by Samuel Tesla
Modified: 2003-06-21 13:20 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Tesla 2003-06-16 16:56:59 UTC
I was just setting up procmail to deliver my mail, and I discovered that it
delivered to a *file* named ~/.maildir not a Maildir style directory.  I looked
at the file /usr/portage/net-mail/procmail/files/gentoo-maildir.diff and
discovered it was because MAILSPOOLHOME was defined as "/.maildir" instead of
"/.maildir/"

All I did was add that slash, and it worked properly.
Comment 1 Samuel Tesla 2003-06-16 16:58:21 UTC
Here's the patch *after* I modified it.

--- procmail-3.22/src/authenticate.c.orig 2002-07-26 20:38:52.000000000 -0400
+++ procmail-3.22/src/authenticate.c  2002-07-26 20:57:56.000000000 -0400
@@ -39,7 +39,7 @@
 #include "authenticate.h"

 #ifndef MAILSPOOLDIR
-#define MAILSPOOLDIR "/var/spool/mail/"       /* watch the trailing / */
+#define MAILSPOOLDIR ""       /* watch the trailing / */
 #endif
 #ifndef MAILSPOOLSUFFIX
 #define MAILSPOOLSUFFIX ""       /* suffix to force maildir or MH style */
@@ -47,7 +47,7 @@
 #ifndef MAILSPOOLHASH
 #doefine MAILSPOOLHASH 0      /* 2 would deliver to /var/spool/mail/b/a/bar */
 #endif
-/*#define MAILSPOOLHOME "/.mail"         /* watch the leading / */
+#define MAILSPOOLHOME "/.maildir/"         /* watch the leading / */
              /* delivers to $HOME/.mail */
 #define STRLEN(x)  (sizeof(x)-1)

Comment 2 Brandon Low (RETIRED) gentoo-dev 2003-06-21 13:17:33 UTC
fixed, thanks.
Comment 3 Brandon Low (RETIRED) gentoo-dev 2003-06-21 13:20:27 UTC
forgot to actually make closed.