summaryrefslogtreecommitdiff
path: root/alot/commands
Commit message (Collapse)AuthorAge
* commands/globals:BufferCloseCommand: drop unused redraw paramAnton Khirnov2022-05-11
| | | | | Drop it also from the corresponding UI functions, where it does not do anything.
* commands/globals:ExternalCommand: actually use thread param from touchhookAnton Khirnov2022-05-08
| | | | | The value from the hook would currently get overridden by the value provided to the ExternalCommand() constructor.
* commands/globals:ExternalCommand: do not shell-quote cmd for the shellAnton Khirnov2022-05-08
| | | | | | | | | This is not just "being extra safe" as the comment says, it actually prevents using shell constructs in the commandline, thus nullifying the main reason to use the shell in the first place. If the shell is requested, assume the command list is already properly prepared for the shell and just join the list elements with spaces.
* commands/thread: fix action nameAnton Khirnov2022-02-05
|
* commands/search: allow reversing search resultsAnton Khirnov2021-11-29
|
* mail/reply: rewrite recipient selectionAnton Khirnov2021-11-24
| | | | | | | | Thoroughly ensure that To+Cc contains neither our own address (except when it is wanted) nor any duplicates. Use structured headers provided by email.headerregistry to simplify dealing with addr-spec vs. mailbox (display name + <addr-spec>).
* Drop some unused imports.Anton Khirnov2021-11-24
|
* commands/thread: move determining reply recipients to mail/replyAnton Khirnov2021-11-24
|
* commands/thread: split some reply handling code to a separate moduleAnton Khirnov2021-11-22
|
* commands/thread: auto-page copiousoutput mailcap handlersAnton Khirnov2021-11-20
|
* commands/thread: construct the reply body in its own functionAnton Khirnov2021-11-20
|
* commands/thread: refactor selecting reply recipientsAnton Khirnov2021-11-20
|
* commands/thread: refactor adding mail-followup-to headerAnton Khirnov2021-11-20
| | | | Move it to a separate function, simplify flow control.
* commands/thread: refactor setting reply referencesAnton Khirnov2021-11-20
| | | | | Move it to its own function, simplify the flow control. Expand the arbitrary references limit to 16 in total.
* commands/thread: do not construct the Envelope until right before composeAnton Khirnov2021-11-20
| | | | | It is cleaner to construct it with all the headers known, rather than modify it progressively.
* commands/thread: drop useless deleteAnton Khirnov2021-11-20
| | | | | The 'To' header has not been set on the envelope yet, so trying to delete it is pointless.
* commands/thread: replace one more header with named constantAnton Khirnov2021-11-20
|
* commands/thread: fix action name for forwarding emailAnton Khirnov2021-11-20
|
* commands/thread: use named constants instead of string literalsAnton Khirnov2021-11-20
| | | | This is safer against typos.
* commands/envelope: refactor deriving headers to be editedAnton Khirnov2021-11-20
| | | | | | | | | Split the code into its own function. Make it properly case-insensitive. Apply either the blacklist or the whitelist setting, trying to apply both makes no sense. Enforce that either a blacklist or a whitelist is configured in the settings.
* 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
|