Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bradfitz/webfist
/ functions
Functions
76 in github.com/bradfitz/webfist
⨍
Functions
76
◇
Types & classes
14
↓ 8 callers
Method
Write
(line []byte)
webfistd/smtp.go:83
↓ 5 callers
Method
Canonical
Canonical returns the canonical version of the email address.
addr.go:58
↓ 4 callers
Method
From
()
email.go:88
↓ 4 callers
Method
HexKey
HexKey returns the human-readable, lowercase hex version of the email address's key.
addr.go:64
↓ 3 callers
Method
Close
()
webfistd/smtp.go:98
↓ 3 callers
Method
Decrypter
(r io.Reader)
addr.go:129
↓ 3 callers
Function
NewEmailAddr
NewEmailAddr returns a EmailAddr wrapper around an email address string. The incoming email address does not need to be canonicalized.
addr.go:51
↓ 3 callers
Method
Verify
Verify returns whether
email.go:73
↓ 3 callers
Method
WebFist
WebFist returns the delegation identifier parse from the email. The email must contain a single assignment where the delegated WebFinger server lives.
email.go:149
↓ 3 callers
Method
emailRootFromHex
(addrHexKey string)
webfistd/localdisk.go:110
↓ 2 callers
Method
Date
()
email.go:96
↓ 2 callers
Method
Encrypted
()
email.go:127
↓ 2 callers
Method
Encrypter
(w io.Writer)
addr.go:122
↓ 2 callers
Function
NewLookup
(storage webfist.Storage)
webfistd/lookup.go:136
↓ 2 callers
Method
PutEmail
(*EmailAddr, *Email)
webfist.go:26
↓ 2 callers
Method
block
()
addr.go:99
↓ 2 callers
Method
cleanRecent
()
webfistd/localdisk.go:82
↓ 2 callers
Method
emailRoot
(addr *webfist.EmailAddr)
webfistd/localdisk.go:118
↓ 2 callers
Method
encFile
(addrKey, encSHA1 string)
webfistd/localdisk.go:128
↓ 2 callers
Function
findDKIMVerify
()
email.go:174
↓ 2 callers
Method
getKey
()
addr.go:68
↓ 2 callers
Method
touchRecent
(addrKey, encSHA1 string)
webfistd/localdisk.go:155
↓ 1 callers
Method
Emails
(*EmailAddr)
webfist.go:27
↓ 1 callers
Method
EncSHA1
EncSHA1 returns a lowercase SHA1 hex of the encrypted email.
email.go:105
↓ 1 callers
Method
EncryptedEmail
EncryptedEmail returns the encrypted email with for the addrKey (the Email's HexKey) and encSHA1 (the SHA-1 of | fi, err := os.Stat(s.hexPath(sha1)) t
webfist.go:40
↓ 1 callers
Method
Len
()
webfistd/lookup.go:78
↓ 1 callers
Method
Lookup
(w http.ResponseWriter, r *http.Request)
webfistd/lookup.go:31
↓ 1 callers
Function
NewDiskStorage
(root string)
webfistd/localdisk.go:40
↓ 1 callers
Function
NewEmail
NewEmail parses all as an email and returns a wrapper around it. Its size and format is done, but no signing verification is done.
email.go:50
↓ 1 callers
Method
PutEncryptedEmail
(addrKey, sha1 string, data []byte)
webfist.go:42
↓ 1 callers
Method
RecentMeta
RecentMeta returns the recently-received encrypted emails.
webfist.go:45
↓ 1 callers
Method
SetEncSHA1
(x string)
email.go:123
↓ 1 callers
Method
StatEncryptedEmail
StatEncryptedBlob returns the size of the encrypted blob on disk. addrKey (the Email's HexKey) and encSHA1 (the SHA-1 of the encrypted email) are lowe
webfist.go:33
↓ 1 callers
Method
WebFinger
(string)
webfist.go:76
↓ 1 callers
Function
canonicalEmail
canonicalEmail returns the canonicalized version of the provided email address.
addr.go:117
↓ 1 callers
Method
encryptionKey
encryptionKey returns the AES-128 key for this email address.
addr.go:108
↓ 1 callers
Method
hasSignatureHeader
hasSignatureHeaders true if e likely contains a signed email. False positives are okay.
webfistd/smtp.go:70
↓ 1 callers
Method
initSMTPServer
()
webfistd/smtp.go:42
↓ 1 callers
Method
runSMTP
(ln net.Listener)
webfistd/smtp.go:56
↓ 1 callers
Method
syncFromPeer
(host string)
webfistd/sync.go:38
↓ 1 callers
Method
syncFromPeers
()
webfistd/sync.go:32
Method
AddRecipient
(rcpt smtpd.MailAddress)
webfistd/smtp.go:80
Method
BeginData
()
webfistd/smtp.go:81
Method
Emails
(addr *webfist.EmailAddr)
webfistd/localdisk.go:212
Method
Emails
(*webfist.EmailAddr)
webfistd/lookup_test.go:35
Method
EncryptedEmail
(addrKey, encSHA1 string)
webfistd/localdisk.go:147
Method
EncryptedEmail
(addrKey, sha1 string)
webfistd/lookup_test.go:59
Method
Len
()
webfistd/localdisk.go:106
Method
Less
(i, j int)
webfistd/localdisk.go:108
Method
Less
(i, j int)
webfistd/lookup.go:86
Method
PutEmail
(addr *webfist.EmailAddr, email *webfist.Email)
webfistd/localdisk.go:182
Method
PutEmail
(*webfist.EmailAddr, *webfist.Email)
webfistd/lookup_test.go:31
Method
PutEncryptedEmail
(addrKey, encSHA1 string, data []byte)
webfistd/localdisk.go:164
Method
PutEncryptedEmail
(addrKey, encSHA1 string, data []byte)
webfistd/lookup_test.go:63
Method
RecentMeta
()
webfistd/localdisk.go:52
Method
RecentMeta
()
webfistd/lookup_test.go:67
Method
ServeBlob
(w http.ResponseWriter, r *http.Request)
webfistd/blob.go:30
Method
ServeRecent
(w http.ResponseWriter, r *http.Request)
webfistd/recent.go:26
Method
StatEncryptedEmail
(addrKey, encSHA1 string)
webfistd/localdisk.go:135
Method
StatEncryptedEmail
(addrKey, encSHA1 string)
webfistd/lookup_test.go:55
Method
Swap
(i, j int)
webfistd/localdisk.go:107
Method
Swap
(i, j int)
webfistd/lookup.go:82
Function
TestDKIMVerifyAvailable
(t *testing.T)
email_test.go:25
Function
TestEmailKey
(t *testing.T)
webfist_test.go:25
Function
TestEmailLookup
(t *testing.T)
webfistd/lookup_test.go:83
Function
TestEmailVerify
(t *testing.T)
email_test.go:33
Function
TestEncrypt
(t *testing.T)
webfist_test.go:32
Method
WebFinger
(addr string)
webfistd/lookup.go:98
Method
WebFormAdd
(w http.ResponseWriter, r *http.Request)
webfistd/add.go:27
Function
front
(w http.ResponseWriter, r *http.Request)
webfistd/front.go:28
Function
init
()
webfistd/front.go:24
Function
init
()
webfistd/lookup_test.go:75
Function
initDKIMVerify
()
email.go:166
Method
initLazyKey
()
addr.go:73
Function
main
()
webfistd/webfistd.go:49
Method
onNewMail
(conn smtpd.Connection, from smtpd.MailAddress)
webfistd/smtp.go:51