MCPcopy Create free account

hub / github.com/kenn-io/msgvault / functions

Functions5,225 in github.com/kenn-io/msgvault

↓ 4 callersMethodmessageDetailView
messageDetailView renders the full message.
internal/tui/view.go:744
↓ 4 callersFunctionmkEmlx
mkEmlx creates an .emlx file with the given MIME bytes.
internal/importer/emlx_import_test.go:21
↓ 4 callersFunctionmultibyteOversizedBody
multibyteOversizedBody builds a body of MANY DISTINCT 2-byte multibyte tokens whose to_tsvector (before any truncation) exceeds PostgreSQL's 1MB tsvec
internal/store/pg_fts_bodycap_test.go:69
↓ 4 callersMethodnavigateDetailPrev
()
internal/tui/navigation.go:101
↓ 4 callersFunctionnewE2EContext
(t *testing.T, f *e2eFixture)
internal/deletion/executor_e2e_test.go:268
↓ 4 callersFunctionnewE2EFixture
(t *testing.T)
internal/deletion/executor_e2e_test.go:38
↓ 4 callersFunctionnewEmbeddingMetadataTestDBFile
(t *testing.T)
cmd/msgvault/cmd/embed_test.go:135
↓ 4 callersFunctionnewFusedFixture
(t *testing.T)
internal/vector/pgvector/fused_test.go:29
↓ 4 callersFunctionnewTestEnvWithEmptyBuckets
newTestEnvWithEmptyBuckets creates a test DB with messages that have empty senders, recipients, domains, and labels for testing MatchEmpty* filters.
internal/query/sqlite_testhelpers_test.go:153
↓ 4 callersFunctionnewTestExporter
newTestExporter creates a tokenExporter backed by the given httptest server.
cmd/msgvault/cmd/export_token_test.go:118
↓ 4 callersFunctionnormalizeAddr
normalizeAddr normalizes an address filter value. If it looks like a bare domain (e.g. "example.com"), it is prefixed with "@" so downstream engines t
internal/search/parser.go:53
↓ 4 callersFunctionnormalizeRawMIME
normalizeRawMIME strips transport/export-specific headers before hashing.
internal/dedup/dedup.go:686
↓ 4 callersMethodopenAccountSelector
()
internal/tui/keys.go:1244
↓ 4 callersFunctionopenStoreAndInitForIngest
openStoreAndInitForIngest is the ingest-command variant of openStoreAndInit. It uses runStartupMigrationsForIngest so that, on a fresh install with [i
cmd/msgvault/cmd/import_imessage.go:265
↓ 4 callersFunctionopenTestStorePst
(t *testing.T)
internal/importer/pst_import_test.go:52
↓ 4 callersFunctionparseCallHTML
parseCallHTML parses a Google Voice call log HTML file.
internal/gvoice/parser.go:275
↓ 4 callersFunctionparseEmail
parseEmail combines makeRawEmail and mustParse into a single test helper.
internal/mime/parse_test.go:30
↓ 4 callersFunctionparseEnmimeAddressList
(env *enmime.Envelope, header string)
scripts/mimeshootout/main.go:409
↓ 4 callersFunctionparseMessageFilter
parseMessageFilter extracts filter parameters from query parameters.
internal/api/handlers.go:1359
↓ 4 callersFunctionparseRetryAfter
parseRetryAfter parses an HTTP Retry-After header (RFC 7231 §7.1.3), which may be either a non-negative delta-seconds integer or an HTTP-date. Returns
internal/vector/embed/client.go:241
↓ 4 callersFunctionparseTime
parseTime parses RFC3339 time string.
internal/remote/store.go:206
↓ 4 callersFunctionprintDedupSummary
(summary *dedup.ExecutionSummary)
cmd/msgvault/cmd/deduplicate.go:490
↓ 4 callersMethodprobeParquetColumns
probeParquetColumns checks which columns exist in a Parquet table's files. Delegates to the standalone probeColumns in views.go.
internal/query/duckdb.go:245
↓ 4 callersFunctionpstArchiveFingerprint
pstArchiveFingerprint returns a short stable identifier for a PST file, derived from a SHA-256 over its first 4 KiB. The PST header in that range embe
internal/importer/pst_import.go:610
↓ 4 callersMethodreleaseDownshiftRemainder
(ctx context.Context, gen vector.GenerationID, token string, ids []int64)
internal/vector/embed/worker.go:969
↓ 4 callersMethodrenderExportAttachmentsModal
renderExportAttachmentsModal renders the export attachments modal content.
internal/tui/view.go:1292
↓ 4 callersFunctionrepairOtherStrings
repairOtherStrings repairs other string fields that could have encoding issues.
cmd/msgvault/cmd/repair_encoding.go:528
↓ 4 callersFunctionrequireNullTime
requireNullTime extracts a non-NULL time.Time from a sql.NullTime, with a clear error mentioning the field name. Required timestamps (created_at, upda
internal/store/sync.go:70
↓ 4 callersFunctionresetColumnCache
resetColumnCache clears the cached column info (for testing).
internal/whatsapp/queries.go:60
↓ 4 callersFunctionresolveLidSender
resolveLidSender resolves a "lid" JID sender to a phone number via the jid_map lookup table. Only activates when the sender's server is "lid". Returns
internal/whatsapp/mapping.go:168
↓ 4 callersFunctionrestrictToCurrentUser
restrictToCurrentUser sets a DACL on path that grants GENERIC_ALL only to the current user and blocks inherited ACEs. For directories, the DACL includ
internal/fileutil/secure_windows.go:25
↓ 4 callersFunctionrunScheduledSync
runScheduledSync performs a sync for a scheduled account. The dispatch is by source_type: Gmail accounts run an incremental sync using the Gmail Histo
cmd/msgvault/cmd/serve.go:402
↓ 4 callersFunctionsanitizeEmail
sanitizeEmail sanitizes an email for use in a filename.
internal/oauth/oauth.go:153
↓ 4 callersFunctionscanMessageRows
scanMessageRows scans the standard 9-column message row set (id, conversation_id, subject, message_type, from_email, sent_at, snippet, has_attachments
internal/store/api.go:708
↓ 4 callersFunctionscanSyncRun
(sc scanner)
internal/store/sync.go:107
↓ 4 callersFunctionscopesForEmail
scopesForEmail returns the OAuth scopes appropriate for the given email. Personal Microsoft accounts use a different IMAP resource than org accounts.
internal/microsoft/oauth.go:54
↓ 4 callersFunctionseedAttachmentFile
seedAttachmentFile creates a file under attachmentsDir at relPath and returns its absolute path. Intermediate directories are created as needed.
cmd/msgvault/cmd/remove_account_test.go:17
↓ 4 callersMethodseedPending
seedPending inserts one pending_embeddings row per live message in the main schema. Uses ON CONFLICT DO NOTHING for idempotency on retries and to dedu
internal/vector/pgvector/backend.go:282
↓ 4 callersFunctionshellQuote
shellQuote returns a shell-safe quoted string using single quotes. Handles embedded single quotes by ending the quoted string, adding an escaped singl
internal/oauth/oauth.go:163
↓ 4 callersFunctionsnapshotRowCounts
(t *testing.T, st *store.Store)
internal/fbmessenger/importer_test.go:169
↓ 4 callersMethodspinnerIndicator
spinnerIndicator returns the current spinner frame string.
internal/tui/view.go:1087
↓ 4 callersFunctionstoreAttachment
( st *store.Store, attachmentsDir string, messageID int64, att *mime.Attachment, )
internal/importer/ingest.go:295
↓ 4 callersFunctionsynctechDriveTestSource
()
cmd/msgvault/cmd/add_synctech_sms_drive_test.go:228
↓ 4 callersFunctiontestMIMEWithAttachment
testMIMEWithAttachment returns a MIME message with a binary attachment. Returns a fresh byte slice on each call to prevent cross-test mutation.
internal/sync/fixtures_test.go:13
↓ 4 callersMethodtextRowCount
textRowCount returns the number of rows in the current text view.
internal/tui/text_keys.go:385
↓ 4 callersFunctiontoMessageSummary
toMessageSummary converts an APIMessage to a MessageSummary for API responses.
internal/api/handlers.go:297
↓ 4 callersFunctiontoUTC
toUTC converts a time to UTC. If the original had a numeric offset, perform proper timezone conversion. Otherwise (named timezone only), keep the same
internal/mime/parse.go:242
↓ 4 callersFunctionunitVec
(axis int)
internal/vector/hybrid/engine_test.go:142
↓ 4 callersMethodupsertAttachment
(gmailID, filename, storagePath, contentHash string)
internal/deletion/executor_e2e_test.go:93
↓ 4 callersFunctionwindowsFiletimeToTime
windowsFiletimeToTime converts a Windows FILETIME value (100-nanosecond intervals since 1601-01-01 UTC) to a time.Time. Returns zero time if ft == 0.
internal/pst/reader.go:29
↓ 4 callersMethodwithAggregateRequestID
withRequestID sets the aggregate request ID for testing stale response handling.
internal/tui/setup_test.go:477
↓ 4 callersMethodwithConn
withConn runs fn with the active connection, connecting if necessary. It holds the mutex for the duration of fn. If fn returns a network error the dea
internal/imap/client.go:164
↓ 4 callersMethodwithSearchQuery
withSearchQuery sets a search query on the model.
internal/tui/setup_test.go:471
↓ 3 callersMethodAPIKey
APIKey resolves the API key from the env var named in APIKeyEnv. Returns "" if APIKeyEnv is empty or the variable is unset.
internal/vector/config.go:330
↓ 3 callersMethodAddConversation
AddConversation inserts a conversation and returns its ID.
internal/testutil/dbtest/dbtest.go:182
↓ 3 callersMethodAddRecipient
AddRecipient adds a message_recipients row.
internal/query/testfixtures_test.go:247
↓ 3 callersMethodAssertIsScopeError
AssertIsScopeError verifies that the error is an insufficient scope error.
internal/deletion/executor_test.go:207
↓ 3 callersMethodAssertManifestLastProcessedIndex
AssertManifestLastProcessedIndex verifies the persisted LastProcessedIndex.
internal/deletion/executor_test.go:264
↓ 3 callersMethodAssertMessageDeleted
AssertMessageDeleted asserts that a message has been marked as deleted.
internal/testutil/storetest/storetest.go:192
↓ 3 callersMethodAssertMessageHasLabel
AssertMessageHasLabel asserts that a message is linked to a specific label ID.
internal/testutil/storetest/storetest.go:171
↓ 3 callersMethodAssertNoActiveSync
AssertNoActiveSync asserts there is no active sync for the fixture's source.
internal/testutil/storetest/storetest.go:220
↓ 3 callersFunctionAttachments
Attachments exports the given attachments into a zip file. It reads attachment content from attachmentsDir using content-hash based paths.
internal/export/attachments.go:53
↓ 3 callersMethodBuild
Build generates Parquet files from the accumulated data and returns the analytics directory path and a cleanup function.
internal/query/testfixtures_test.go:405
↓ 3 callersMethodBuildFTSTerm
BuildFTSTerm converts a slice of user-supplied search terms into a SQL expression and a single argument string. Both SQLite FTS5 and PostgreSQL tsquer
internal/query/dialect.go:70
↓ 3 callersFunctionCORSMiddleware
CORSMiddleware returns a middleware that handles CORS headers.
internal/api/middleware.go:35
↓ 3 callersMethodCc
Cc sets the Cc header.
internal/testutil/email/builder.go:56
↓ 3 callersMethodCost
Cost returns the quota cost for an operation.
internal/gmail/ratelimit.go:31
↓ 3 callersMethodCountMessagesWithRaw
CountMessagesWithRaw returns the count of messages that have raw MIME stored.
internal/store/messages.go:875
↓ 3 callersFunctionCreateTarGz
CreateTarGz creates a tar.gz archive at path containing the given entries.
internal/testutil/archive_helpers.go:25
↓ 3 callersFunctionCredentialsPath
CredentialsPath returns the path to the credentials file for the given identifier.
internal/imap/auth.go:19
↓ 3 callersFunctionDefaultExecuteOptions
DefaultExecuteOptions returns sensible defaults.
internal/deletion/executor.go:88
↓ 3 callersMethodDeleteToken
DeleteToken removes the token file for the given email.
internal/oauth/oauth.go:746
↓ 3 callersMethodEnableFTS
EnableFTS creates the FTS5 table, populates it, and re-creates the engine to clear cached FTS state.
internal/query/sqlite_testhelpers_test.go:60
↓ 3 callersMethodEnsureHomeDir
EnsureHomeDir creates the msgvault home directory if it doesn't exist.
internal/config/config.go:468
↓ 3 callersFunctionEnsureVectorTable
EnsureVectorTable creates vectors_vec_dN for the given dimension if it does not already exist. The PARTITION KEY scopes rows by generation; the PRIMAR
internal/vector/sqlitevec/migrate.go:427
↓ 3 callersMethodExecute
Execute performs the deletion for a manifest.
internal/deletion/executor.go:218
↓ 3 callersFunctionExecuteContext
ExecuteContext runs the root command with the given context, enabling graceful shutdown when the context is cancelled. Installs a panic recovery and c
cmd/msgvault/cmd/root.go:251
↓ 3 callersFunctionExtractMboxFromZipWithLimits
(zipPath, destDir string, limits ExtractLimits, log *slog.Logger)
internal/importer/mboxzip/mbox_zip.go:169
↓ 3 callersMethodFailNext
FailNext forces the next n Embed calls to return an error.
internal/vector/embed/testsupport_test.go:189
↓ 3 callersMethodFindDuplicatesByRFC822ID
(sourceIDs ...int64)
internal/store/dedup.go:68
↓ 3 callersFunctionFormatBytesLong
FormatBytesLong formats bytes with full precision for export results.
internal/export/attachments.go:355
↓ 3 callersFunctionFormatExportResult
FormatExportResult formats ExportStats into a human-readable string for display.
internal/export/attachments.go:105
↓ 3 callersMethodFormatMethodology
FormatMethodology returns a detailed explanation of how dedup works.
internal/dedup/dedup.go:1198
↓ 3 callersMethodFormatReport
FormatReport renders a human-readable report of the scan results.
internal/dedup/dedup.go:1103
↓ 3 callersMethodGetAttachment
(ctx context.Context, id int64)
internal/query/engine.go:29
↓ 3 callersMethodGetBatchDeleteCall
GetBatchDeleteCall safely retrieves a batch delete call by index.
internal/deletion/executor_test.go:200
↓ 3 callersMethodGetDuplicateGroupMessages
( rfc822ID string, sourceIDs ...int64, )
internal/store/dedup.go:105
↓ 3 callersMethodGetIdentitiesForScope
GetIdentitiesForScope returns the union of confirmed identifier addresses across the given source IDs. Empty input returns an empty map — no global de
internal/store/account_identities.go:227
↓ 3 callersMethodGetMessage
(id int64)
cmd/msgvault/cmd/store_resolver.go:84
↓ 3 callersMethodGetMessageFields
GetMessageFields returns selected fields of a message by ID.
internal/testutil/storetest/storetest.go:106
↓ 3 callersMethodGetMessagesSummariesByIDs
(ids []int64)
internal/api/server.go:30
↓ 3 callersMethodGetSynctechSMSSource
(name string)
internal/config/config.go:569
↓ 3 callersMethodInProgressDir
InProgressDir returns the path to the in_progress directory.
internal/deletion/manifest.go:250
↓ 3 callersMethodInspectDisplayName
InspectDisplayName returns the display name for a recipient of a message.
internal/store/inspect.go:144
↓ 3 callersFunctionIsTransientNetwork
IsTransientNetwork reports whether err (or anything it wraps) indicates a transient network problem rather than a logical or auth failure. It catches
internal/syncerr/transient.go:15
↓ 3 callersFunctionIsUUID
IsUUID returns true if s matches UUID format (8-4-4-4-12 hex).
internal/emlx/discover.go:266
↓ 3 callersFunctionLabelFromPath
LabelFromPath derives a human-readable label from a mailbox path relative to the root directory. Rules: - Strip root prefix - Strip known containers:
internal/emlx/discover.go:117
↓ 3 callersMethodLastMessageID
LastMessageID returns the ID of the most recently added message.
internal/testutil/dbtest/dbtest.go:279
↓ 3 callersMethodListConversationMessages
ListConversationMessages returns messages within a conversation.
internal/query/text_engine.go:19
↓ 3 callersMethodListConversations
ListConversations returns conversations matching the filter.
internal/query/text_engine.go:11
← previousnext →901–1,000 of 5,225, ranked by callers