![]() ![]() Text = _(u'This email has been sent via calibre web.') Logger.warn("Not sending mail to '%s' in debug mode" % (msg)) ![]() bug('SMTP sendmail time %d ms', (time.time() - t0) * 1000) If send_email and not config.live_server: # Ensure ALL TO: emails are in test_emails # sends it to the To in encoded_msg anyway! # Why can't we break into separate emails? ndmail accepts "to" field but # Send mail, but if we're in debug mode only send to admins With open(config.src_home + '/log/last_email.txt', 'w') as f: G = Generator(io, False) # second argument means "should I mangle From?" Part1 = MIMEText(body.encode('utf-8'), 'plain') Reg_exp = re.compile('base64\s*(*)')ĭecoded_vevent = base64.b64decode(base64_encoded_vevent) If email_subject.startswith("Accepted") or email_subject.startswith("Declined"): If not in email_from and not in email_from and not in email_from: # if this is the case then this is the email with the attachment added ![]() # check if email is from the user's email address if so check if it is not accepted or declined If((not email_subject.startswith("Advising Signup") and not email_subject.startswith("Accepted: Advising Signup with") and not email_subject.startswith("Declined: Advising Signup with")) or "Pending" in email_subject ): # check email subject to see if we should continue Self.say(u"Seul un Grelakins autorisé peut envoyer un mail !bar")Įmail_obj.add_header('reply-to', email_to) Self.say(u"Rameutage au bar déjà invoqué aujourd'hui") # cas de l'heure trop matinale pour un Michel Self.say(u"J'envoie pas ce mail, ce bar n'est pas cool!") # message de confirmation de l'envoi de l'email Txtpart = MIMEText(content, 'plain', 'UTF-8') Msg = "%s" % Header(subject, 'utf-8')įrom_address, 'utf-8'), from_address) If lieu in valeur: # teste si le bar proposé est coolĪujourd'hui, certains Michels vont au bar %s à %s. # après c'est fermé, avant c'est être alcooliqueįor cle, valeur in self.liste_bar.items(): # REGLE: on va au bar entre 16h et 24h59, # test de la compatibilité du format de l'heure If self.date_bar != str(time.strftime('%d/%m/%y', # vérification que c'est la première invocation du messager If hashlib.sha224(sender_nick).hexdigest() in self.liste_grelakins: # vérification que l'invocateur soit un grelakins Def cmd_bar(self, _chan, _args, sender_nick): ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |