Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/EFForg/cryptobot-email
/ functions
Functions
84 in github.com/EFForg/cryptobot-email
⨍
Functions
84
◇
Types & classes
12
↳
Endpoints
1
↓ 9 callers
Method
_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 callers
Method
import_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 callers
Method
find
(self, email_address)
unsubscribe.py:62
↓ 5 callers
Method
has_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 callers
Method
add
(self, email_address)
unsubscribe.py:68
↓ 3 callers
Method
_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 callers
Method
as_string
convert message to a string. For internal use. :arg msg: :class:`OpenPGPMessage` to be stringified :rtype: str
bot.py:350
↓ 3 callers
Method
decrypt
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 callers
Method
encrypt
Encrypts plaintext to a ciphertext block :arg str plaintext: the plaintext bits to be encrypted :arg str fingerprint: the fingerprint
bot.py:98
↓ 3 callers
Method
export_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 callers
Method
has_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 callers
Method
message_id
the message ID :type: str
bot.py:534
↓ 2 callers
Method
find_hashed
(self, hashed_address)
unsubscribe.py:65
↓ 2 callers
Method
gen_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 callers
Method
hash
(self, email_address)
unsubscribe.py:58
↓ 2 callers
Method
login
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 callers
Method
sign
Sign a message :arg str message: the text to sign :rtype: str :returns: ASCII armored signature
bot.py:113
↓ 1 callers
Method
__init__
(self, homedir=False)
bot.py:44
↓ 1 callers
Method
_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 callers
Method
_parse_for_openpgp
parse email for PGP artifacts
bot.py:555
↓ 1 callers
Function
check_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 callers
Method
construct_and_send_email
Do work of constructing & sending reply email. For internal use.
bot.py:364
↓ 1 callers
Method
delete
delete an email. Only works with IMAP :arg str message_id: the message ID of email to delete
bot.py:312
↓ 1 callers
Function
getDatabase
(url, setup=False, debug=False)
unsubscribe.py:75
↓ 1 callers
Method
get_all_mail
retrieve emails :rtype: list of :class:`OpenPGPMessage`
bot.py:302
↓ 1 callers
Method
get_imap_mail
retrieve emails from an IMAP server. For internal use. :rtype: list of :class:`OpenPGPMessage`
bot.py:283
↓ 1 callers
Method
get_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 callers
Method
get_mock_sender
(outer_self)
test.py:188
↓ 1 callers
Function
main
main entry point, sorta. Fetches & replies to emails, etc.. :arg str fingerprint: fingerprint of the bot itself
bot.py:712
↓ 1 callers
Method
random_string
(self)
unsubscribe.py:55
↓ 1 callers
Method
setup
(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
Method
decrypted_text
(self)
bot.py:676
Method
encrypt_body
(self)
bot.py:499
Method
encrypted_right
is message encrypted correctly? :type: bool
bot.py:652
Method
encrypted_wrong
is message encrypted incorrectly? :type: bool
bot.py:660
Method
mock_sender
(msg_string, from_email, to_email, s=outer_self)
test.py:189
Method
pubkey_fingerprint
fingerprint of public key attached to message, or False if none found :type: str
bot.py:696
Method
pubkey_included
is public key included in message? :type: bool
bot.py:680
Method
pubkey_included_wrong
is public key incorrectly included in message? :type: bool
bot.py:688
Method
read_yaml
(*args)
doc/_plugins/layout.rb:3
Method
send_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
Method
sender_address
(self)
bot.py:704
Method
setUp
(self)
test.py:13
Method
setUp
(self)
test.py:84
Method
setUp
(self)
test.py:167
Method
setUp
(self)
test.py:202
Method
sign_body
(self)
bot.py:495
Method
signed
is message signed? :type: bool
bot.py:668
Method
tearDown
(self)
test.py:22
Method
tearDown
(self)
test.py:98
Method
tearDown
(self)
test.py:205
Method
test_add
(self)
test.py:208
Method
test_decrypt_invalid
(self)
test.py:48
Method
test_decrypt_valid
(self)
test.py:43
Method
test_encrypt
(self)
test.py:53
Method
test_encrypted_and_signed_pgp_mime
(self)
test.py:130
Method
test_encrypted_correct_key
(self)
test.py:116
Method
test_encrypted_pubkey_included_attached_application_pgpkeys
(self)
test.py:155
Method
test_encrypted_pubkey_included_attached_text_plain
(self)
test.py:150
Method
test_encrypted_pubkey_included_inline
(self)
test.py:160
Method
test_encrypted_wrong_key
(self)
test.py:124
Method
test_export_keys_invalid
(self)
test.py:29
Method
test_export_keys_valid
(self)
test.py:25
Method
test_gen_key
(self)
test.py:73
Method
test_has_public_key_with_uid
(self)
test.py:67
Method
test_has_secret_key_with_uid
(self)
test.py:62
Method
test_import_keys_invalid
(self)
test.py:39
Method
test_import_keys_valid
(self)
test.py:33
Method
test_pubkey_included_attached_application_pgpkeys
(self)
test.py:142
Method
test_pubkey_included_attached_text_plain
(self)
test.py:138
Method
test_pubkey_included_inline
(self)
test.py:146
Method
test_sign
(self)
test.py:58
Method
test_signed
(self)
test.py:107
Method
test_unencrypted
(self)
test.py:101
Method
test_unencrypted_message_reply_address
(self)
test.py:195
Method
test_unsigned
(self)
test.py:112
Function
unsubscribe
()
app.py:10