summaryrefslogtreecommitdiff
path: root/alot/commands/envelope.py
Commit message (Collapse)AuthorAge
* pep8 fixesPatrick Totzke2012-03-11
|
* fix preparation of editable headersPatrick Totzke2012-03-06
| | | | | | | in envelope.EditCommand: headers that the user wants to edit in the $EDITOR, should be present (with empty values) in the template. Moreover, only those which already have values are removed from the envelope. fixes #390
* determine editable content before pre-edit-hookPatrick Totzke2012-03-06
| | | | | | this moves the construction of the tempfile content and edit_only_body flag before the call to the pre-translate-hook. Also make the setter more explicit, code readability.
* Be more clever when editing mail template, see discussion in #388Daniel2012-03-06
| | | | | | | | | | | | | | If any headers are to be edited along with the body, then put a separating empty newline between headertext and body. This is the default; self.edit_only_body==False. Thus, in the callback function, the call to parse_template() will have only_body=False. The parsing regexp then picks up an empty line as separating headerlines from body. Though, if there is no empty line there, the first non-header-look line will belong to the body ("\n?" in the regexp). If no headers are to be edited, we set self.edit_only_body to True. This is passed on to parse_template(), which then will not do any regexp parsing, but just let the whole template become the body.
* Fix blacklist bug, and don't keep edit_headers in the object for nowDaniel2012-03-06
|
* Prefix tmpfile; convenient for automatic change of editor modesDaniel2012-03-05
|
* dont pass config parm to hooksPatrick Totzke2012-02-19
|
* pep8/pyflakes cleanupPatrick Totzke2012-02-19
|
* use settings in completersPatrick Totzke2012-02-19
|
* replace config with SettingsManager in commandsPatrick Totzke2012-02-19
|
* move adding Date headers to save/send commandsPatrick Totzke2012-02-16
| | | | | | | | | This moves the addition of a Date header from Envelope.construct_mail to the envelope handling commands. This allows us to store mails locally that contain this timestamp, but send out mails that do not so that the MTA, that will append its own timestamp, doesn not create a second entry. issue #326
* flush after adding mails in Draft/SendCommandPatrick Totzke2012-02-08
|
* make refocussing after envelope.edit configurrablePatrick Totzke2012-02-08
| | | | turned on by default and off when called from global.ComposeCommand.
* spawn parameter for envelope.EditCommandPatrick Totzke2012-02-08
| | | | | that just passes its value on to globals.EditCommand issue #287
* use asyncronous call to sendmailPatrick Totzke2012-02-02
| | | | | in account.send_mail and use call/errbacks in envelope accordingly
* Remove direct use of threading.Tom Prince2012-01-28
| | | | twisted includes tools for handling threaded code nicely. Use it.
* pep8 and pyflakes cleanupsPatrick Totzke2012-01-19
|
* typoPatrick Totzke2012-01-19
|
* fix issue #255Patrick Totzke2012-01-11
|
* Purge logging objectdtk2012-01-05
| | | | | | | | | Consistently use module functions instead. Introduce a non-default log format that replaces the logger name with the module name. Cf issue #170. Closes #231.
* fix name of SaveCommandPatrick Totzke2012-01-03
| | | | | c/p error: forgot to rename SentCommand to SaveCommand, which resulted in two different classes with the same name.
* use envelope.attach in AttachCommandPatrick Totzke2012-01-03
| | | | | | this fixes an issue with email parts showing up in envelope.attachments instead of Attachment objects because the new envelope.attach method wasnt used before.
* move signature adding to ComposeCommandPatrick Totzke2011-12-30
| | | | | | | | this also implements the feature that uses the 'signature_as_attachment' account option: if set to False, the signature file will be appended to the body text (if its mimetype is text). closes #173
* add save command for envelopePatrick Totzke2011-12-25
| | | | | this saves the current envelope as mail to the draft mailbox of the account read from the From-header or your default one.
* Use exceptions for error handling in SendmailAccount.send_mailJustus Winter2011-12-25
|
* don't introduce unnecessary spacesPatrick Totzke2011-12-20
| | | | this finalizes issue #135
* don't write newlines to templatesPatrick Totzke2011-12-19
| | | | issue #135
* correctly write editable headers to templatePatrick Totzke2011-12-19
| | | | issues #135 #163
* Merge branch 'issue-159-bclose' into testingPatrick Totzke2011-12-17
|\
| * sent_time and modified_since_sent in envelopePatrick Totzke2011-12-17
| | | | | | | | | | | | This is to warn the user before re-sending an already sent message in case the envelope buffer was not closed because it was the last remaining buffer.
* | fix: add missing return statementPatrick Totzke2011-12-17
|/ | | | | If an AttachCommand is constructed by hand it's possible that `path` is unset. Immediately abort in that case.
* implement envelope.set --appendPatrick Totzke2011-12-17
| | | | | | `set --append K V` in envelope mode will append the new K-header value V. (defaults to overwrite)
* move hook lookups to AlotConfigParserPatrick Totzke2011-12-11
| | | | issue #146
* docstrings for envelope commandsPatrick Totzke2011-12-10
|
* Merge branch 'master' into docsPatrick Totzke2011-12-08
|\ | | | | | | | | Conflicts: alot/commands/envelope.py
| * remove unnecessary decode parm to Envelope.getPatrick Totzke2011-12-07
| |
| * remove decode_header callsPatrick Totzke2011-12-07
| | | | | | | | | | | | forgot to remove unnecessary `decode_header` calls for headers stored in `Envelope.headers`, which now contains decoded unicode strings directly.
* | Merge branch 'master' into docsPatrick Totzke2011-12-06
|\|
| * removed remaining encode_header calls.Patrick Totzke2011-12-06
| | | | | | | | | | This is now done only once, in Envelope.construct_mail, just before sending out a message.
* | buffers documentationPatrick Totzke2011-12-04
| |
* | directly import inlineCallbacksPatrick Totzke2011-12-03
|/ | | | Solves an issue with readthemanual.org builds
* fix issue #139Patrick Totzke2011-11-28
|
* fix remaining references to UI.commandpromptPatrick Totzke2011-11-28
| | | | issue #139
* fix: close envelope after sendoutPatrick Totzke2011-11-12
|
* fix issue #122Patrick Totzke2011-11-11
|
* cleanupsPatrick Totzke2011-11-10
|
* use envelops rather than emails in envelope bufPatrick Totzke2011-11-06
|
* cleanupPatrick Totzke2011-11-05
|
* renamed DisensembledMail -> EnvelopePatrick Totzke2011-11-05
|
* fix envelope attach commandPatrick Totzke2011-11-04
|