[Tickets #2228] NEW: procmail with Maildir does not work

bugs@bugs.horde.org bugs at bugs.horde.org
Wed Jul 6 01:54:41 PDT 2005


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=2228
-----------------------------------------------------------------------
 Ticket             | 2228
 Created By         | micha at kovoks.nl
 Summary            | procmail with Maildir does not work
 Queue              | Ingo
 Version            | 1.0.1
 State              | Unconfirmed
 Priority           | 2. Medium
 Type               | Bug
 Owners             | 
-----------------------------------------------------------------------


micha at kovoks.nl (2005-07-06 01:54) wrote:

Hi,

If I choose Maildir in my backends.php (path_style => maildir) my mail is
deliverd in /var/spool/mail/ . I think this is because the MAILDIR variable
is not set on default. I suspect the administrator does not expect this
behaviour and the following patch can solve this problem.

--- procmail.php.orig   2005-07-06 10:49:01.000000000 +0200
+++ procmail.php        2005-07-06 10:45:56.000000000 +0200
@@ -125,6 +125,12 @@
 
         $this->addItem(new Procmail_Comment(_("procmail script generated by
Ingo") . ' (' . date('F j, Y, g:i a') . ')'));
 
+       /* Add Maildir variable if there is maildir */
+       if ($this->_params['path_style'] == 'maildir') {
+         $this->addItem(new Procmail_variable(array('name' => 'MAILDIR',
'value' => '$HOME/Maildir')));
+         $this->addItem(new Procmail_variable(array('name' => 'DEFAULT',
'value' => '$MAILDIR/')));
+       }
+
         /* Add variable information, if present. */
         if (!empty($this->_params['variables']) &&
             is_array($this->_params['variables'])) {




More information about the bugs mailing list