Bug #117

pw(8) - Patch to customize maildirs creation

Added by belczyk over 8 years ago. Updated almost 5 years ago.

Status:ClosedStart date:
Priority:LowDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

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 :-)

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

History

#1 Updated by joerg over 8 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

#2 Updated by belczyk over 8 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:

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

#3 Updated by joerg over 8 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

#4 Updated by tuxillo almost 5 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.

#5 Updated by corecode almost 5 years ago

I don't think this is necessary.

Also available in: Atom PDF