Drew DeVault
1321cea241
Redirect to edit draft after saving message
pirms 3 gadiem
Drew DeVault
86579bb478
Remove async SMTP queue
pirms 3 gadiem
Drew DeVault
cbeacf9d06
Copy unsent messages to Outbox
This patch:
1. Copies unsent messages to the outbox before attempting to deliver
them with SMTP
2. Deletes those messages once they're sent, or leaves them if an error
occured
3. Updates the message list to make it obvious when there are unsent
messages in the outbox
pirms 3 gadiem
Drew DeVault
4904207269
Replace parts tree with attachment list
pirms 3 gadiem
Drew DeVault
64b16f4a50
message.html: add tabs to select html/plaintext
pirms 3 gadiem
Drew DeVault
b437cef2ab
Implement broader search functionality
pirms 3 gadiem
Drew DeVault
0191aa4698
plugins/base/imap: fetch flags on search
pirms 3 gadiem
Drew DeVault
9e2c420461
Categorize and normalize folder listing
pirms 3 gadiem
Drew DeVault
793f261b62
Handle case where server does not return body
This was causing a nil pointer dereference before.
Fixes ~migadu/alps#121.
pirms 3 gadiem
Reto Brunner
f3931fd510
remove exec bit from plugins/base/imap.go
pirms 3 gadiem
Simon Ser
522454e009
base: don't use Client.Mailbox
The information returned by Client.Mailbox may be out-of-date. Instead,
retrieve the mailbox status from the server each time.
Closes: https://todo.sr.ht/~emersion/alps/80
pirms 4 gadiem
Simon Ser
8589228c73
Replace IMAPMessage.TextPartName with TextPart
pirms 4 gadiem
fox.cpp
62910a94fb
plugins/base: Add missing nil check for getMailboxByType
Fixes panic if there is no usable Sent folder.
pirms 4 gadiem
Simon Ser
3036cc4436
plugins/base: fix mailbox unread count
pirms 4 gadiem
Simon Ser
b891a95fcf
Rename project to alps
pirms 4 gadiem
Simon Ser
4cf5ad68af
plugins/base: always show INBOX first
pirms 4 gadiem
Simon Ser
5af6c6adc1
plugins/base: wrap MailboxInfo and MailboxStatus
This allows us to extend these and expose helpers for templates and
plugins.
pirms 4 gadiem
Simon Ser
fe73f2022c
plugins/base: add action param to handleSetFlags
This alows to add/remove flags instead of setting them.
pirms 4 gadiem
Simon Ser
a455fc8ddd
plugins/base: fix IMAMessage.PartByPath with nil path
pirms 4 gadiem
Simon Ser
c96903f3f1
plugins/base: replace MessageRenderData.PartPath with Part
pirms 4 gadiem
Simon Ser
7af7d73700
plugins/base: add message URL and Content-Id helpers
pirms 4 gadiem
Simon Ser
1bd930f043
plugins/carddav: add basic contacts view
pirms 4 gadiem
Simon Ser
651872ef7d
plugins/base/imap: disable full-text search for now
It's too slow on servers where indexes aren't enabled.
References: https://todo.sr.ht/~sircmpwn/koushin/23
pirms 4 gadiem
Simon Ser
4d68400036
plugins/base: add settings page
Add a settings page where the user can change the number of messages
displayed per page.
pirms 4 gadiem
Simon Ser
85c01b87a9
plugins/base: support attachments in drafts
References: https://todo.sr.ht/~sircmpwn/koushin/16
pirms 4 gadiem
Simon Ser
50046b62ac
plugins/base: use BodyStructure.Walk instead of custom logic
pirms 4 gadiem
Simon Ser
3384c39a17
plugins/base: delete previous draft
pirms 4 gadiem
Simon Ser
2e367efe58
plugins/base: add fallback if SPECIAL-USE is unsupported
pirms 4 gadiem
Simon Ser
bfc617b702
plugins/base: save message as draft
pirms 4 gadiem
Simon Ser
589b303f9f
plugins/base: append outgoing messages to Sent mailbox
And mark original message as answered.
Closes: https://todo.sr.ht/~sircmpwn/koushin/15
pirms 4 gadiem
Dejan Strbac
15a77185b4
Include flags when fetching items over IMAP
pirms 4 gadiem
Simon Ser
97b314b6e7
Add Server.Reload
This only reloads templates for now. In the future it'll also reload
Lua plugins.
pirms 4 gadiem
Simon Ser
80da410c3b
Implement paging for search
pirms 4 gadiem
Simon Ser
2a2a48c7fa
Add a form to set message flags
References: https://todo.sr.ht/~sircmpwn/koushin/36
pirms 4 gadiem
Simon Ser
4449416357
Export IMAPMessage
This is a public type other plugins and templates may want to access.
pirms 4 gadiem
Simon Ser
1c5e17472d
Add basic search
Closes: https://todo.sr.ht/~sircmpwn/koushin/23
pirms 4 gadiem
Simon Ser
d897eeee5c
Introduce base plugin
This plugin offers base IMAP/SMTP functionality.
References: https://todo.sr.ht/~sircmpwn/koushin/39
pirms 4 gadiem
Simon Ser
61ffc105fd
Use imap.BodyStructure.Filename and imap.Address.Address
The former fixes encoding issues in filenames. The latter is just for
brevity.
pirms 4 gadiem
Simon Ser
4ab5fb7f65
Make message view's Back link set the mailbox page
This allows to go back and forth between the mailbox view and the
message view.
References: https://todo.sr.ht/~sircmpwn/koushin/22
pirms 4 gadiem
Simon Ser
8de93c50d2
Add basic pagination to message list
References: https://todo.sr.ht/~sircmpwn/koushin/22
pirms 4 gadiem
Simon Ser
b386d1c2bb
Fix mailbox view when empty
This fixes the second part of #14 .
References: https://todo.sr.ht/~sircmpwn/koushin/14
pirms 4 gadiem
Simon Ser
c3fd390b1a
Set imap.CharsetReader
This adds support for additional charsets when parsing e.g. subject
lines.
pirms 4 gadiem
Simon Ser
ec03c60dff
Import go-message charsets package
Enables support for non-UTF8 charsets.
Closes: https://todo.sr.ht/~sircmpwn/koushin/18
pirms 4 gadiem
Simon Ser
1194b98e54
Fix EOF on message view
pirms 4 gadiem
Simon Ser
2d3cce64da
Fix format string
pirms 4 gadiem
Simon Ser
96646c8324
Add context to errors
pirms 4 gadiem
Simon Ser
4c52849539
Show last 50 messages in mailbox view
pirms 4 gadiem
Simon Ser
be14524c33
Display & download any message part
pirms 4 gadiem
Simon Ser
33b8679f1c
Extract string conversion functions
pirms 4 gadiem
Simon Ser
ed50cef3cf
Linkify message part tree
pirms 4 gadiem