MCPcopy Create free account

hub / github.com/EFForg/cryptobot-email / functions

Functions84 in github.com/EFForg/cryptobot-email

↓ 9 callersMethod_gpg
Helper function that calls ``gpg``. For internal use. :arg list args: list of additional commandline options :arg str input: string t
bot.py:214
↓ 9 callersMethodimport_keys
Import a public key block :arg str pubkey: the public key :rtype: str :returns: fingerprint of the pubkey; False of invalid p
bot.py:63
↓ 5 callersMethodfind
(self, email_address)
unsubscribe.py:62
↓ 5 callersMethodhas_secret_key_with_uid
Searches secret keys for a uid :arg str uid: the user id to search for :rtype: str :returns: fingerprint if uid was found; el
bot.py:125
↓ 4 callersMethodadd
(self, email_address)
unsubscribe.py:68
↓ 3 callersMethod_find_email_payload_matches
find message parts containing a string :arg str payload_test: the string to search for :rtype: list :returns: matching messag
bot.py:541
↓ 3 callersMethodas_string
convert message to a string. For internal use. :arg msg: :class:`OpenPGPMessage` to be stringified :rtype: str
bot.py:350
↓ 3 callersMethoddecrypt
Decrypt a ciphertext block to plaintext :arg str ciphertext: the encrypted bits :rtype: 2-tuple of (str, bool) :returns: 2-tu
bot.py:83
↓ 3 callersMethodencrypt
Encrypts plaintext to a ciphertext block :arg str plaintext: the plaintext bits to be encrypted :arg str fingerprint: the fingerprint
bot.py:98
↓ 3 callersMethodexport_keys
Export an ascii-armored public key block :arg str fingerprint: the fingerprint of the key :rtype: str :returns: exported bloc
bot.py:50
↓ 3 callersMethodhas_public_key_with_uid
Searches fingerprint's keyring for a uid :arg str fingerprint: the fingerprint of the keyring to search :arg str uid: the user id to
bot.py:174
↓ 3 callersMethodmessage_id
the message ID :type: str
bot.py:534
↓ 2 callersMethodfind_hashed
(self, hashed_address)
unsubscribe.py:65
↓ 2 callersMethodgen_key
Generate a new key :arg str name: human-readable name of the key :arg str email: an email address for the key :arg int key_le
bot.py:189
↓ 2 callersMethodhash
(self, email_address)
unsubscribe.py:58
↓ 2 callersMethodlogin
login to IMAP server. For internal use. :arg str username: IMAP username :arg str password: IMAP password :arg str imap_serve
bot.py:247
↓ 2 callersMethodsign
Sign a message :arg str message: the text to sign :rtype: str :returns: ASCII armored signature
bot.py:113
↓ 1 callersMethod__init__
(self, homedir=False)
bot.py:44
↓ 1 callersMethod_find_pubkeys
find public key substrings :arg str s: the string to search in :rtype: list of str :returns: armored public keys
bot.py:626
↓ 1 callersMethod_parse_for_openpgp
parse email for PGP artifacts
bot.py:555
↓ 1 callersFunctioncheck_bot_keypair
Ensure the bot has a keypair, possibly creating a new one :arg bool allow_new_key: should new keypair be created if no existing one found :rt
bot.py:743
↓ 1 callersMethodconstruct_and_send_email
Do work of constructing & sending reply email. For internal use.
bot.py:364
↓ 1 callersMethoddelete
delete an email. Only works with IMAP :arg str message_id: the message ID of email to delete
bot.py:312
↓ 1 callersFunctiongetDatabase
(url, setup=False, debug=False)
unsubscribe.py:75
↓ 1 callersMethodget_all_mail
retrieve emails :rtype: list of :class:`OpenPGPMessage`
bot.py:302
↓ 1 callersMethodget_imap_mail
retrieve emails from an IMAP server. For internal use. :rtype: list of :class:`OpenPGPMessage`
bot.py:283
↓ 1 callersMethodget_maildir_mail
retrieve emails from a maildir. For internal use. Mails will be deleted after reading. :rtype: list of :class:`OpenPGPMessage`
bot.py:258
↓ 1 callersMethodget_mock_sender
(outer_self)
test.py:188
↓ 1 callersFunctionmain
main entry point, sorta. Fetches & replies to emails, etc.. :arg str fingerprint: fingerprint of the bot itself
bot.py:712
↓ 1 callersMethodrandom_string
(self)
unsubscribe.py:55
↓ 1 callersMethodsetup
(self)
unsubscribe.py:43
Method__del__
(self)
bot.py:242
Method__init__
(self, use_maildir=False)
bot.py:236
Method__init__
(self, message, env, fingerprint, sender=None)
bot.py:335
Method__init__
:arg str message: raw text of the email :arg str message_id: IMAP message ID or maildir message path :arg gpg: :class:`GnuPG`
bot.py:506
Method__init__
(self, hashed_address)
unsubscribe.py:16
Method__init__
(self, salt, rounds, name='SHA1')
unsubscribe.py:26
Method__init__
(self, url, setup=False, debug=False)
unsubscribe.py:33
Methoddecrypted_text
(self)
bot.py:676
Methodencrypt_body
(self)
bot.py:499
Methodencrypted_right
is message encrypted correctly? :type: bool
bot.py:652
Methodencrypted_wrong
is message encrypted incorrectly? :type: bool
bot.py:660
Methodmock_sender
(msg_string, from_email, to_email, s=outer_self)
test.py:189
Methodpubkey_fingerprint
fingerprint of public key attached to message, or False if none found :type: str
bot.py:696
Methodpubkey_included
is public key included in message? :type: bool
bot.py:680
Methodpubkey_included_wrong
is public key incorrectly included in message? :type: bool
bot.py:688
Methodread_yaml
(*args)
doc/_plugins/layout.rb:3
Methodsend_email
Send email via SMTP. For internal use. :arg str msg_string: strigified reply email :arg str from_email: From: address :arg st
bot.py:479
Methodsender_address
(self)
bot.py:704
MethodsetUp
(self)
test.py:13
MethodsetUp
(self)
test.py:84
MethodsetUp
(self)
test.py:167
MethodsetUp
(self)
test.py:202
Methodsign_body
(self)
bot.py:495
Methodsigned
is message signed? :type: bool
bot.py:668
MethodtearDown
(self)
test.py:22
MethodtearDown
(self)
test.py:98
MethodtearDown
(self)
test.py:205
Methodtest_add
(self)
test.py:208
Methodtest_decrypt_invalid
(self)
test.py:48
Methodtest_decrypt_valid
(self)
test.py:43
Methodtest_encrypt
(self)
test.py:53
Methodtest_encrypted_and_signed_pgp_mime
(self)
test.py:130
Methodtest_encrypted_correct_key
(self)
test.py:116
Methodtest_encrypted_pubkey_included_attached_application_pgpkeys
(self)
test.py:155
Methodtest_encrypted_pubkey_included_attached_text_plain
(self)
test.py:150
Methodtest_encrypted_pubkey_included_inline
(self)
test.py:160
Methodtest_encrypted_wrong_key
(self)
test.py:124
Methodtest_export_keys_invalid
(self)
test.py:29
Methodtest_export_keys_valid
(self)
test.py:25
Methodtest_gen_key
(self)
test.py:73
Methodtest_has_public_key_with_uid
(self)
test.py:67
Methodtest_has_secret_key_with_uid
(self)
test.py:62
Methodtest_import_keys_invalid
(self)
test.py:39
Methodtest_import_keys_valid
(self)
test.py:33
Methodtest_pubkey_included_attached_application_pgpkeys
(self)
test.py:142
Methodtest_pubkey_included_attached_text_plain
(self)
test.py:138
Methodtest_pubkey_included_inline
(self)
test.py:146
Methodtest_sign
(self)
test.py:58
Methodtest_signed
(self)
test.py:107
Methodtest_unencrypted
(self)
test.py:101
Methodtest_unencrypted_message_reply_address
(self)
test.py:195
Methodtest_unsigned
(self)
test.py:112
Functionunsubscribe
()
app.py:10