summaryrefslogtreecommitdiff
path: root/alot/commands
Commit message (Collapse)AuthorAge
* mail/envelope: add a special class for headersAnton Khirnov2021-11-20
| | | | Handle multiple headers with ordering and case-insensitive operations.
* commands/thread: use imported function directlyAnton Khirnov2021-11-20
|
* commands/thread:ForwardCommand: do not construct EmailMessage unnecessarilyAnton Khirnov2021-05-15
|
* commands/thread:ForwardCommand: use the message headers objectAnton Khirnov2021-05-15
|
* commands/thread: pass bytes to Attachment, not strAnton Khirnov2021-05-15
| | | | Attachment payload should always be bytes.
* commands/globals: remove special treatment for a missing signature fileAnton Khirnov2021-05-15
| | | | | | It is unnecessary extra complexity. If the user set a signature, then it must exist. If it does not exist, the user should unset the signature path.
* commands/globals: invert a condition to reduce indent levelAnton Khirnov2021-05-15
|
* commands/envelope: fix accessing the attachment filenameAnton Khirnov2021-05-15
|
* commands/thread:ReplyCommand: stop calling get_email()Anton Khirnov2021-05-13
|
* commands/thread:ReplyCommand: use the message headers object in ↵Anton Khirnov2021-05-13
| | | | determine_sender()
* commands/thread:ReplyCommand: use the message headers object for building replyAnton Khirnov2021-05-13
|
* commands/thread:ReplyCommand: simplify list-reply logicAnton Khirnov2021-05-13
|
* commands/thread:ReplyCommand: factor out list-reply logicAnton Khirnov2021-05-13
|
* commands/thread:ReplyCommand: use the headers object for accessing List-IdAnton Khirnov2021-05-13
|
* commands/thread:ReplyCommand: factor out building reply subjectAnton Khirnov2021-05-13
|
* commands/thread: use the headers object for building reply subjectAnton Khirnov2021-05-13
|
* commands/thread: use MimeTree properties instead of accessing email directlyAnton Khirnov2021-03-16
|
* commands/search: fix sort order in RefineCommandAnton Khirnov2021-02-22
|
* commands/thread:ReplyCommand: drop unnecessary call to parseaddr()Anton Khirnov2021-02-10
|
* commands/thread:ReplyCommand: drop unnecessary instance variableAnton Khirnov2021-02-10
|
* commands/thread: stop calling get_email in ForwardCommandAnton Khirnov2021-02-10
| | | | Serialize the message and deserialize it again to avoid modifying it.
* commands/thread: stop calling get_email in BounceCommandAnton Khirnov2021-02-10
| | | | Serialize the message and deserialize it again to avoid modifying it.
* commands/thread: remove unused importAnton Khirnov2021-02-10
|
* Cosmetics, clean up importsAnton Khirnov2021-02-10
|
* commands/thread: refactor applying the tag commandAnton Khirnov2021-02-07
| | | | Do all the changes in one batch rather than separately.
* commands/search: refactor applying the tag commandAnton Khirnov2021-02-07
| | | | Apply toggle as a single db write rather than two.
* commands/thread: add --thread option to tagging commandsAnton Khirnov2021-02-04
| | | | | Makes the command affect the whole thread, rather than just those messages matching the query.
* commands/thread: drop the select commandAnton Khirnov2021-02-03
| | | | | | It no longer makes sense since the buffer has been split into two windows. Replace it with a new 'openattachment' command for opening attachments.
* Fix access to Attachment filename.Anton Khirnov2021-02-01
|
* db: use symbolic constants for sort ordersAnton Khirnov2021-01-31
|
* db/attachment: move to mail/Anton Khirnov2021-01-30
| | | | It has nothing whatsoever to do with the database.
* db/attachment: simplify the Attachment classAnton Khirnov2021-01-30
| | | | | Make it a plain container around raw data and a few bits of metadata, rather than around a whole MIME part.
* db/envelope: move to a new module "mail"Anton Khirnov2021-01-30
| | | | It has nothing to do with the database.
* db/envelope: switch to the "new" (EmailMessage) python APIAnton Khirnov2021-01-30
| | | | | | | | | | email.mime is a part of the old API, which does not mix well with the new one (i.e. when email.policy.SMTP is used), specifically when non-ASCII headers are used. Additionally, clean the APIs that accept either EmailMessage or a str to only expect EmailMessage. Supporting both just adds confusion and complexity.
* SendCommand: stop using an instance attribute unnecessarilyAnton Khirnov2021-01-29
|
* SendCommand: remove unnecessary instance attributeAnton Khirnov2021-01-29
| | | | It is only used inside one function.
* commands/envelope: remove unused SendCommand parametersAnton Khirnov2021-01-29
|
* ComposeCommand: read template/signature as textAnton Khirnov2021-01-26
| | | | | | We should not try to guess anything, just use the platform encoding. Remove helper.try_decode(), as it has no more callers.
* addressbook/external: stop using call_cmd()Anton Khirnov2021-01-26
| | | | | | | It does not actually save any code. The new code also uses a shell as is documented. Remove call_cmd(), as it no longer has any callers.
* account: stop using call_cmd_async() to run sendmailAnton Khirnov2021-01-26
| | | | | | | It does not actually save any code. The new code also uses a shell as is documented. Remove call_cmd_async(), as it no longer has any callers.
* Rewrite mailcap handling.Anton Khirnov2021-01-26
| | | | | | | | | | | Add a class that encapsulates the handler and is responsible for managing the temporary file, if one is needed. Use this class for both rendering inline content and displaying attachments externally. External attachments are now wrapped in an asyncio task that is added to a pool of tasks managed by ui.
* Use super() where applicable.Anton Khirnov2021-01-21
|
* commands/search: remove unused variableAnton Khirnov2021-01-20
|
* commands/search: remove unused codeAnton Khirnov2021-01-20
|
* db: make write operations asyncAnton Khirnov2021-01-20
|
* helper: get rid of decode_string()Anton Khirnov2021-01-16
| | | | | | | | It just adds unnecessary type confusion. In most places where it is used, the types are always str, so it does nothing. In the few others, the encoding/decoding is better handled explicitly.
* helper: rewrite mailto_to_envelope/parse_mailto to Envelope.from_mailtoAnton Khirnov2021-01-16
|
* thread: allow switching between multipart/alternative partsAnton Khirnov2021-01-13
|
* buffers/thread: more sophisticated heuristics for default weightsAnton Khirnov2021-01-09
| | | | Should produce better results in most situations.
* buffers/thread: allow changing weights of the tree/message splitAnton Khirnov2020-12-30
|