Changeset 3147
- Timestamp:
- 05/09/12 18:31:58 (13 months ago)
- Location:
- alternc/trunk
- Files:
-
- 1 added
- 6 edited
-
bureau/class/m_mail_jabber.php (modified) (1 diff)
-
bureau/class/m_mail_localbox.php (modified) (2 diffs)
-
bureau/class/m_mail_squirrelmail.php (added)
-
bureau/class/m_quota.php (modified) (1 diff)
-
debian/alternc.postinst (modified) (2 diffs)
-
etc/alternc/postfix.cf (modified) (1 diff)
-
install/alternc.install (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
alternc/trunk/bureau/class/m_mail_jabber.php
r3135 r3147 66 66 "label" => "jabberdemo", // an internal label 67 67 "short_desc" => _("Jabber Demo"), // A human short description 68 "class" => "mail_jabber", 68 69 "human_desc" => _("This is just a demo.<br/>Look at m_mail_jabber.php"), // A human long description 70 "form_param" => Array($mail_id), 69 71 "url" => "javascript:alert('Ici un renvoie vers le formulaire adequat de cette entrée.');", // The URL to go 70 72 "pass_required" => true, // This feature require the mail to have a global password ? -
alternc/trunk/bureau/class/m_mail_localbox.php
r3144 r3147 60 60 */ 61 61 function set_localbox($mail_id){ 62 global $db, $err ;63 $err->log("localbox","set_localbox ");62 global $db, $err, $hooks; 63 $err->log("localbox","set_localbox!!!!!!!!"); 64 64 $path="mail/"; 65 65 if(!$db->query("select distinct left(ad.address,1) as letter,ad.address ,d.domaine from address ad, domaines d where ad.domain_id = d.id and ad.id = $mail_id order by letter;")); … … 68 68 return null; 69 69 } 70 //FIXME passer par un hooks pour squirel 71 $hooks->invoke('hooks_squirrelmail_init',(array($db->f('address'),$db->f('domaine') ))); 70 72 $path="/var/alternc/mail/".$db->f('letter')."/".$db->f('address')."_".$db->f('domaine'); 71 //FIXME faire un touch de la maildir si dovecot ne sait pas le faire.72 73 if(!$db->query("INSERT into mailbox (address_id,path,quota) values ($mail_id,'$path',50);")); 73 74 74 75 } 75 76 76 77 /* 77 * Set a localbox78 * Unset a localbox 78 79 * @param integer $mail_id 79 80 */ 80 81 function unset_localbox($mail_id){ 81 global $db, $err; 82 $err->log("localbox","set_localbox"); 82 global $db, $err,$hooks; 83 $err->log("localbox","unset_localbox"); 84 if(!$db->query("select address,domaine from address,domaines where address.domain_id=domaines.id and address.id=$mail_id ;")); 85 86 if(! $db->next_record()){ 87 return null; 88 } 89 $hooks->invoke('hooks_squirrelmail_delete',(array($db->f('address'),$db->f('domaine') ))); 83 90 if(!$db->query("DELETE from mailbox where address_id=$mail_id;")); 84 91 -
alternc/trunk/bureau/class/m_quota.php
r3135 r3147 185 185 // Now we check that the value has been written properly : 186 186 exec("/usr/lib/alternc/quota_get ".$cuid,$a); 187 echo "quota get :::::ciud: $cuid :::: size: $size :::: a?: $a ";187 print_r($a); 188 188 if ($size!=$a[1]) { 189 189 $err->raise("quota",1); -
alternc/trunk/debian/alternc.postinst
r3145 r3147 241 241 # Update l18n files 242 242 /usr/share/alternc/install/dopo.sh 243 244 #sudo stuff allowing alterncpanel to use quota 243 244 #squirrelmail fix 245 chown -R :alterncpanel /var/lib/squirrelmail/data 246 chmod -R g+w /var/lib/squirrelmail 247 #sudo stuff allowing alterncpanel to use quota 245 248 if [ -d /etc/sudoers.d ]; then 246 249 cp /etc/alternc/alternc-sudoers /etc/sudoers.d/alternc-sudoers … … 250 253 #FIXME 251 254 echo "copy content of /usr/share/doc/examples/example.sudoers into /etc/sudoers.d for to run properly" 252 fi255 fi 253 256 254 257 # important: postinst gele sans ca -
alternc/trunk/etc/alternc/postfix.cf
r3146 r3147 20 20 smtp_tls_dkey_file = $smtpd_tls_dcert_file 21 21 smtp_tls_CApath = $smtpd_tls_CApath 22 smtpd_tls_auth_only = yes22 smtpd_tls_auth_only = no 23 23 #SASL options 24 24 smtpd_sasl_auth_enable = yes -
alternc/trunk/install/alternc.install
r3146 r3147 296 296 297 297 # Conviguring delivery used bu Postfix FIXME change script name 298 echo `/usr/bin/postfix-add-policy dovecot pipe DRhu vmail:vmail'/usr/bin/sudo /usr/lib/dovecot/deliver -f ${sender} -d ${recipient} '`298 echo `/usr/bin/postfix-add-policy dovecot vmail:vmail DRhu pipe'/usr/bin/sudo /usr/lib/dovecot/deliver -f ${sender} -d ${recipient} '` 299 299 300 300 # Bug #1215: configure mydestination when $FQDN is not in
Note: See TracChangeset
for help on using the changeset viewer.
