@conference_signals.osf4m_user_created.connect
def queue_osf4m_welcome_email(user, conference, node):
 root = node.get_addon('osfstorage').get_root()
 root_children = [child for child in root.children if child.is_file]
 mails.queue_mail(to_addr=user.username, mail=mails.WELCOME_OSF4M, send_at=(timezone.now() + settings.WELCOME_OSF4M_WAIT_TIME), user=user, conference=conference.name, fullname=user.fullname, fid=(root_children[0]._id if len(root_children) else None))

@ conference_signals . osf4m_user_created . connect def queue_osf4m_welcome_email ( user , conference , node ) : root = node . get_addon ( 'osfstorage' ) . get_root ( ) root_children = [ child for child in root . children if child . is_file ] mails . queue_mail ( to_addr = user . username , mail = mails . WELCOME_OSF4M , send_at = ( timezone . now ( ) + settings . WELCOME_OSF4M_WAIT_TIME ) , user = user , conference = conference . name , fullname = user . fullname , fid = ( root_children [ 0 ] . _id if len ( root_children ) else None ) )
queue an email once a new user is created for osf for meetings .