Correction d'un probleme qui enmpechait les gens avec une fichier procmail perso de changer les autres preferences mail.
darcs-hash:20061030213823-f46e9-62e617dda402d8be7ff493812d4937a8e184d2b8.gz
This commit is contained in:
parent
bc0893bd51
commit
87042c71be
1 changed files with 3 additions and 2 deletions
|
@ -439,7 +439,7 @@ class monCompte:
|
|||
##########################
|
||||
# mail:sauver
|
||||
##########################
|
||||
def saveMailPrefs(self, forwarding_address, spanTreatment=None, contourneGreylist=False, rewriteMailHeaders=False):
|
||||
def saveMailPrefs(self, forwarding_address=None, spanTreatment=None, contourneGreylist=False, rewriteMailHeaders=False):
|
||||
if spanTreatment == 'no':
|
||||
spanTreatment = 'accepte'
|
||||
if spanTreatment == 'mark':
|
||||
|
@ -454,7 +454,8 @@ class monCompte:
|
|||
|
||||
try:
|
||||
adh = self.__ldap.search('uid=' + cherrypy.session['uid'],'w')['adherent'][0]
|
||||
MailConfig(cherrypy.session['uid'], forward=forwarding_address, spam=spanTreatment)
|
||||
if forwarding_address!=None:
|
||||
MailConfig(cherrypy.session['uid'], forward=forwarding_address, spam=spanTreatment)
|
||||
adh.contourneGreylist(contourneGreylist)
|
||||
adh.rewriteMailHeaders(rewriteMailHeaders)
|
||||
adh.save()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue