summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog6
-rwxr-xr-xuseradm/bin/pua7
-rw-r--r--useradm/lib/Pglistener/Schema/Result/Account.pm2
3 files changed, 13 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog
index 4c2cd2b..bac1927 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+pglistener (1.1) UNRELEASED; urgency=low
+
+ * Add support for the ext_email_forward field
+
+ -- Sjoerd Simons <sjoerd@debian.org> Wed, 04 Apr 2012 12:20:23 +0200
+
pglistener (1) unstable; urgency=low
* Switch versioning to just be an integer.
diff --git a/useradm/bin/pua b/useradm/bin/pua
index 49170d0..a28371d 100755
--- a/useradm/bin/pua
+++ b/useradm/bin/pua
@@ -40,6 +40,7 @@ When editing a user, the following commands are available:
set shell $shell
set password $md5sum
set gpg_key $gpg_fingerprint
+ set ext_email_forward $ext_email_forward
show [$field]
disable
enable
@@ -288,11 +289,15 @@ while (1) {
when (/set gpg_key (.+)/) {
user_set_field($OUT, $currentuser, gpg_key => $1);
}
+ when (/set ext_email_forward (.+)/) {
+ user_set_field($OUT, $currentuser, ext_email_forward => $1);
+ }
when (/show(?: (.+))?/) {
if (defined $1) {
user_print_field($OUT, $currentuser, $1);
} else {
- for my $f (qw(account_id username name shell password enabled gpg_key)) {
+ for my $f (qw(account_id username name shell password enabled gpg_key
+ ext_email_forward)) {
user_print_field($OUT, $currentuser, $f);
}
}
diff --git a/useradm/lib/Pglistener/Schema/Result/Account.pm b/useradm/lib/Pglistener/Schema/Result/Account.pm
index af181b7..ec245bf 100644
--- a/useradm/lib/Pglistener/Schema/Result/Account.pm
+++ b/useradm/lib/Pglistener/Schema/Result/Account.pm
@@ -2,7 +2,7 @@ package Pglistener::Schema::Result::Account;
use base qw/DBIx::Class::Core/;
__PACKAGE__->table('account');
-__PACKAGE__->add_columns(qw/ account_id username name shell password enabled gpg_key /);
+__PACKAGE__->add_columns(qw/ account_id username name shell password enabled gpg_key ext_email_forward /);
__PACKAGE__->set_primary_key('account_id');
__PACKAGE__->has_many(sshkeys => 'Pglistener::Schema::Result::SSHKey', "account_id" );
__PACKAGE__->has_many(account_grp => 'Pglistener::Schema::Result::AccountGrp', "account_id" );