Project

General

Profile

Actions

Bug #117

closed

pw(8) - Patch to customize maildirs creation

Added by belczyk almost 19 years ago. Updated over 15 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Hello,

the attached patch makes creation of /var/mail/username files for new accounts
a bit more configurable. Since I only use maildirs for mail storage, now I
don't have to remove those files when adding new users :-)


Files

pw-createmailbox.patch (3.46 KB) pw-createmailbox.patch belczyk, 03/19/2006 08:08 PM
Actions #1

Updated by joerg almost 19 years ago

On Sun, Mar 19, 2006 at 08:57:25PM +0100, Michal Belczyk wrote:

the attached patch makes creation of /var/mail/username files for new accounts
a bit more configurable. Since I only use maildirs for mail storage, now I
don't have to remove those files when adding new users :-)

Am I reading this correctly and it does that by default?

Joerg

Actions #2

Updated by belczyk almost 19 years ago

On Sun, Mar 19, 2006 at 09:29:54PM +0100, wrote:

On Sun, Mar 19, 2006 at 08:57:25PM +0100, Michal Belczyk wrote:

the attached patch makes creation of /var/mail/username files for new accounts
a bit more configurable. Since I only use maildirs for mail storage, now I
don't have to remove those files when adding new users :-)

Am I reading this correctly and it does that by default?

The default behaviour hasn't changed, pw(8) do creates those files:

  1. cat /etc/pw.conf
  2. pw useradd testuser -m
  3. ls l /var/mail/testuser
    -rw------
    1 testuser testuser 0 Mar 19 21:45 /var/mail/testuser
  4. pw userdel testuser -r
  5. ls -l /var/mail/testuser
    ls: /var/mail/testuser: No such file or directory
  6. printf "createmailbox\tno\n" >> /etc/pw.conf
  7. pw useradd testuser -m
  8. ls -l /var/mail/testuser
    ls: /var/mail/testuser: No such file or directory
Actions #3

Updated by joerg almost 19 years ago

On Sun, Mar 19, 2006 at 09:49:01PM +0100, Michal Belczyk wrote:

On Sun, Mar 19, 2006 at 09:29:54PM +0100, wrote:

On Sun, Mar 19, 2006 at 08:57:25PM +0100, Michal Belczyk wrote:

the attached patch makes creation of /var/mail/username files for new accounts
a bit more configurable. Since I only use maildirs for mail storage, now I
don't have to remove those files when adding new users :-)

Am I reading this correctly and it does that by default?

The default behaviour hasn't changed, pw(8) do creates those files:

OK, thanks for clarifying this.

Joerg

Actions #4

Updated by tuxillo over 15 years ago

As far as I can see, this adds the option to pw(8) to create mailboxes or not.
Does anyone consider this addition appropiate? If yes, please commit.

Actions #5

Updated by corecode over 15 years ago

I don't think this is necessary.

Actions

Also available in: Atom PDF