本文整理匯總了Python中mailpile.Mailpile.help_splash方法的典型用法代碼示例。如果您正苦於以下問題:Python Mailpile.help_splash方法的具體用法?Python Mailpile.help_splash怎麽用?Python Mailpile.help_splash使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類mailpile.Mailpile
的用法示例。
在下文中一共展示了Mailpile.help_splash方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: do_setup
# 需要導入模塊: from mailpile import Mailpile [as 別名]
# 或者: from mailpile.Mailpile import help_splash [as 別名]
do_setup()
if "-n" not in sys.argv:
test_vcards()
test_load_save_rescan()
test_message_data()
test_html()
test_composition()
test_smtp()
if "-v" not in sys.argv:
sys.stderr.write("\nTests passed, woot!\n")
else:
say("Tests passed, woot!")
except:
sys.stderr.write("\nTests FAILED!\n")
print
traceback.print_exc()
##[ Interactive mode ]########################################################
if "-i" in sys.argv:
mp.set("prefs/vcard/importers/gravatar/0/active = true")
mp.set("prefs/vcard/importers/gpg/0/active = true")
mp._session.ui = ui
print "%s" % mp.help_splash()
mp.Interact()
##[ Cleanup ]#################################################################
os.system("rm -rf %s" % mailpile_home)
示例2: test_vcards
# 需要導入模塊: from mailpile import Mailpile [as 別名]
# 或者: from mailpile.Mailpile import help_splash [as 別名]
if '-n' not in sys.argv:
test_vcards()
test_load_save_rescan()
test_message_data()
test_html()
test_composition()
test_smtp()
if '-v' not in sys.argv:
sys.stderr.write("\nTests passed, woot!\n")
else:
say("Tests passed, woot!")
except:
sys.stderr.write("\nTests FAILED!\n")
print
traceback.print_exc()
##[ Interactive mode ]########################################################
if '-i' in sys.argv:
mp.set('prefs/vcard/importers/gravatar/0/active = true')
mp.set('prefs/vcard/importers/gpg/0/active = true')
mp._session.ui = ui
print '{0!s}'.format(mp.help_splash())
mp.Interact()
##[ Cleanup ]#################################################################
config.stop_workers()
os.system('rm -rf {0!s}'.format(mailpile_home))