def handleNewest(qry):
 try:
  getUserName()
 except:
  return _skypeError()
 qry = qry.decode('utf8')
 try:
  if ((':' in qry) and (qry.partition(':')[0] in map((lambda s: s[0]), _readFriends()))):
   return _sendMessageWait(qry)
  else:
   return _findNewest()
 except EnvironmentError:
  return PyFred('ch.xtin.skypingalfred.error', False).addItem('skypeupdate', 'skype update', 'No Skype Friends Found', 'Use skype update to cache friends!', True, 'update').toXML()
 except:
  return PyFred.GenericError()

def handleNewest ( qry ) : try : getUserName ( ) except : return _skypeError ( ) qry = qry . decode ( 'utf8' ) try : if ( ( ':' in qry ) and ( qry . partition ( ':' ) [ 0 ] in map ( ( lambda s : s [ 0 ] ) , _readFriends ( ) ) ) ) : return _sendMessageWait ( qry ) else : return _findNewest ( ) except EnvironmentError : return PyFred ( 'ch.xtin.skypingalfred.error' , False ) . addItem ( 'skypeupdate' , 'skype update' , 'No Skype Friends Found' , 'Use skype update to cache friends!' , True , 'update' ) . toXML ( ) except : return PyFred . GenericError ( )
gets the newest 5 messages .