Changeset 786
- Timestamp:
- 02/02/10 20:42:21 (14 years ago)
- Location:
- LATMOS-Accounts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LATMOS-Accounts/lib/LATMOS/Accounts/Maintenance.pm
r785 r786 34 34 my @users; 35 35 while (my $res = $sth->fetchrow_hashref) { 36 $res->{delay} =~ s/ (day.?) .*/$1/;36 $res->{delay} =~ s/day.? .*//; 37 37 $res->{obj} = $base->get_object('user', $res->{name}); 38 38 push(@users, $res); … … 84 84 my %mail = ( 85 85 From => $self->val('_default_', 'mailFrom', 'nomail@localhost'), 86 Subject => 'LATMOS Expire in ' . $user->{delay} ,86 Subject => 'LATMOS Expire in ' . $user->{delay} . 'days', 87 87 smtp => $self->val('_default_', 'smtp'), 88 88 'Content-Type' => 'text/plain; charset=utf-8', … … 113 113 }; 114 114 my $mailcc = join(', ', @cc) || ''; 115 push(@summary, sprintf("%-15s %-10s %s\n CC: %s\n", 116 $user->{obj}->id, 117 $user->{delay}, 115 push(@summary, sprintf("%s : %s : %s\n", 116 $user->{obj}->queryformat('%{displayName} : %{name} : %{department} : %{managerContact} : %{expireText}'), 118 117 $to || 'Not sent, no destination', 119 ($mailcc ? " $mailcc\n": ''),118 ($mailcc ? $mailcc : ''), 120 119 ) 121 120 ); -
LATMOS-Accounts/templates/mail/account_expire.mail
r709 r786 1 (English version follows) 2 1 3 Bonjour [% obj.get_c_field('displayName') %], 2 4 3 5 sauf erreur ou ommission de notre part votre compte [% obj.id %] expire 4 dans [% delay %] .6 dans [% delay %] jours ([% obj.get_c_field('expire') %]). 5 7 En aucun cas vos fichiers ne seront détruit 6 8 … … 10 12 Cordialement. 11 13 L'équipe d'administration. 14 15 === 16 17 Hello [% obj.get_c_field('displayName') %], 18 19 unless error or omission on our part, your account login expires 20 in [% delay %] days ([% obj.get_c_field('expire') %]). 21 In no case files will be destroyed. 22 23 If it had to be extended, please ask your manager to contact 24 svp@latmos.ipsl.fr to give us with the new date of expiry. 25 26 Best regards. 27 The administration team.
Note: See TracChangeset
for help on using the changeset viewer.