diff --git a/gestion/mail/reinscription.py b/gestion/mail/reinscription.py index 61f25e64..b80808e8 100755 --- a/gestion/mail/reinscription.py +++ b/gestion/mail/reinscription.py @@ -17,7 +17,7 @@ SEND=False # campus (les autres ont potentiellement répondu à chambres_invalides, donc # on ne va pas les respammer). On considère aussi les membres actifs, # invariablement. -ldap_filter=u'(&(|(droits=*)(&(!(chbre=????))(chbre=*)(!(chbre=EXT))))(paiement=2013)(aid=*))' +ldap_filter=u'(&(|(droits=*)(&(chbre=*)(!(chbre=????))(!(chbre=EXT))))(paiement=2013)(aid=*)(!(finConnexion=*)))' conn=lc_ldap.shortcuts.lc_ldap_readonly() @@ -29,11 +29,14 @@ for adh in conn.search(ldap_filter): addr = adh.get_mail() if addr: mailaddrs.add(addr) + else: + print "skip %s" % adh.dn print "Va envoyer le message à %s personnes." % len(mailaddrs) if not SEND: - print "(Simulation only) Mettre la variable SEND à True effectuer l'envoi" + print "(Simulation only.) Mettre la variable SEND à True effectuer l'envoi" print "Appuyer sur une touche pour continuer." +raw_input() echecs=[] conn_smtp=smtplib.SMTP('smtp.adm.crans.org') diff --git a/gestion/mail/template/reinscription/Subject/fr b/gestion/mail/template/reinscription/Subject/fr index 1136a7d6..130101db 100644 --- a/gestion/mail/template/reinscription/Subject/fr +++ b/gestion/mail/template/reinscription/Subject/fr @@ -1 +1 @@ -Réadhésion au Crans +Réadhésion au Crans (plus que quelques jours) diff --git a/gestion/mail/template/reinscription/body/en b/gestion/mail/template/reinscription/body/en index 88af0221..b77e2d3c 100644 --- a/gestion/mail/template/reinscription/body/en +++ b/gestion/mail/template/reinscription/body/en @@ -1,15 +1,15 @@ Dear Crans member, -It seems that you haven't yet resuscribed for the new academic year. If you +It seems that you haven't yet resuscribed for the new academic year. If you wish to keep your connection to the Crans network and to the Internet, you need -to resuscribe before September 30th, otherwise your connection will be -suspended. +to resuscribe before September 30th, otherwise your connection will be +suspended. In order to do so, you can meet us during one of our office hours at the Kfet. -Just to remind you: they take place from Monday to Friday, from 12:30pm to -1:30pm and from 6:30pm to 8:30pm, *except on Tuesday night*. Please come during -those office hours, or else nobody will be able to help for your -resubscription. +Just to remind you: they take place from Monday to Friday, from 12:30pm to +1:30pm and from 6:30pm to 8:30pm, *except on Tuesday evening*. Please come +during those office hours, or else nobody will be able to help for your +resubscription. To resuscribe, you need to fill the subscription form you can find at the Kfet. No technical information is required. @@ -17,8 +17,8 @@ The amount of the subscription for this academic year is still 50€, that you c pay either by cheque payable to the "Association Crans", by cash or by credit card. -If you do not wish to resuscribe for the present academic year, just let us -know and we will delete your computers from our database. +If you do not wish to resuscribe for the present academic year, just let us +know and we will delete your computers from our database. See you soon ! diff --git a/gestion/mail/template/reinscription/body/fr b/gestion/mail/template/reinscription/body/fr index 2b9a6868..97c8149b 100644 --- a/gestion/mail/template/reinscription/body/fr +++ b/gestion/mail/template/reinscription/body/fr @@ -1,8 +1,8 @@ Cher adhérent du Cr@ns, -Il apparaît que tu n'as pas encore réadhéré pour cette année -universitaire. Si tu souhaites conserver ta connexion au Cr@ns -et à Internet, il te faut réadhérer avant le 30 septembre au soir, +Il apparaît que tu n'as pas encore réadhéré pour cette année +universitaire. Si tu souhaites conserver ta connexion au Cr@ns +et à Internet, il te faut réadhérer avant le 30 septembre au soir, sans quoi ta connexion sera coupée. Tu peux pour cela nous retrouver lors d'une de nos permanences. Pour @@ -22,5 +22,4 @@ de données. À très bientôt ! -- - Les câbleurs du Cr@ns