[freeside-commits] freeside/FS/FS/part_export communigate_pro.pm, 1.28, 1.29
Ivan,,,
ivan at wavetail.420.am
Sun Apr 18 23:16:00 PDT 2010
Update of /home/cvs/cvsroot/freeside/FS/FS/part_export
In directory wavetail.420.am:/tmp/cvs-serv28736/FS/FS/part_export
Modified Files:
communigate_pro.pm
Log Message:
communigate provisioning phase 2: Account:Settings: RulesAllowed, RPOPAllowed, MailToAll, AddMailTrailer. RT#7514
Index: communigate_pro.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_export/communigate_pro.pm,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -w -d -r1.28 -r1.29
--- communigate_pro.pm 19 Apr 2010 05:01:52 -0000 1.28
+++ communigate_pro.pm 19 Apr 2010 06:15:58 -0000 1.29
@@ -77,12 +77,18 @@
],
'RealName' => $svc_acct->finger,
'Password' => $svc_acct->_password,
+
+ #phase 2: allowed mail rules, RPOP modifications, accepts mail to all, add trailer to sent mail
+ 'RulesAllowed' => $svc_acct->cgp_rulesallowed,
+ 'RPOPAllowed' =>($svc_acct->cgp_rpopallowed ?'YES':'NO'),
+ 'MailToAll' =>($svc_acct->cgp_mailtoall ?'YES':'NO'),
+ 'AddMailTrailer' =>($svc_acct->cgp_addmailtrailer ?'YES':'NO'),
+
map { $quotas{$_} => $svc_acct->$_() }
grep $svc_acct->$_(), keys %quotas
);
- #phase 2: pwdallowed, passwordrecovery, allowed mail rules,
- # RPOP modifications, accepts mail to all, add trailer to sent mail
- #phase 3: archive messages, mailing lists
+ #XXX phase 2: pwdallowed, passwordrecovery
+ #XXX phase 3: archive messages, mailing lists
my @options = ( 'CreateAccount',
'accountName' => $self->export_username($svc_acct),
@@ -274,9 +280,18 @@
if $old->cgp_accessmodes ne $new->cgp_accessmodes
|| $old->cgp_type ne $new->cgp_type;
- #phase 2: pwdallowed, passwordrecovery, allowed mail rules,
- # RPOP modifications, accepts mail to all, add trailer to sent mail
- #phase 3: archive messages, mailing lists
+ #phase 2: allowed mail rules, RPOP modifications, accepts mail to all, add trailer to sent mail
+ $settings{'RulesAllowed'} = $new->cgp_rulesallowed
+ if $old->cgp_rulesallowed ne $new->cgp_rulesallowed;
+ $settings{'RPOPAllowed'} = $new->cgp_rpopallowed
+ if $old->cgp_rpopallowed ne $new->cgp_rpopallowed;
+ $settings{'MailToAll'} = $new->cgp_mailtoall
+ if $old->cgp_mailtoall ne $new->cgp_mailtoall;
+ $settings{'AddMailTrailer'} = $new->cgp_addmailtrailer
+ if $old->cgp_addmailtrailer ne $new->cgp_addmailtrailer;
+
+ #XXX phase 2: pwdallowed, passwordrecovery
+ #XXX phase 3: archive messages, mailing lists
if ( keys %settings ) {
my $error = $self->communigate_pro_queue(
More information about the freeside-commits
mailing list