summaryrefslogtreecommitdiff
path: root/alot
Commit message (Collapse)AuthorAge
...
* multi word commands for pipetoPatrick Totzke2012-01-01
| | | | | | | split commandline strings into lists in PipeCommands constuctor if the shellcmd comes as a string instead of a stringlist. if we let argparse do the splitting, t will try to interpret parameters itself. This fixes issue #117, this cmdline now works: pipeto all 'tee bla'
* don't display text/plain attachments in bodytextPatrick Totzke2011-12-31
| | | | | | | before, an attachment with mimetype text/plain would be displayed as part of the body text of a message in case no text/html part exists. this patch makes message.extract_body skip thse parts closes issue #220
* 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
* added account option 'signature_as_attachment'Patrick Totzke2011-12-30
| | | | | that causes the content of the signature file to be appended to the initial body text of an envelope instead of attached
* changed default binding: P postpones (saves draft)Patrick Totzke2011-12-27
| | | | | | realized too late that overiding 'd' to save drafts in envelope mode is stupid. we revert to mutt's default binding for this operation
* isinstance(s, basestring) to match str and unicodePatrick Totzke2011-12-27
| | | | | | | this fixes an issue with envelope.attach() failing due to its argument nor being an Attachment nor a str. This happens e.g. when you define a signature file, whose path gets handed to this method as unicode object.
* update ThreadBuffer wrt new folding methodPatrick Totzke2011-12-27
| | | | | folding of MessageWidgets is now done by setting widget.folded to True and calling widget.refresh()
* simplified MessageWidgetPatrick Totzke2011-12-27
| | | | | | | | | | instead of having separate methods to fold/unfold or toggle headers/source parts, this patch introduces the boolean flags * show_raw * show_all_headers * folded which can be manipulated and will be used when rebuild is called
* merge fold,toggleheaders and togglesource commandsPatrick Totzke2011-12-27
| | | | | into one big ChangeDisplaymodeCommand, that can change the displayed parts of a (list of) MesssageWidget(s).
* binding: `h` to togglesource in thread modePatrick Totzke2011-12-27
| | | | as done in mutt.
* add thread mode command 'togglesource'Patrick Totzke2011-12-27
| | | | | that allows to toggle the raw-text display mode of the focussed message
* display raw message source text in MessageWidgetPatrick Totzke2011-12-27
| | | | | | This allows to switch MessageWidgets to "display source" mode, in which apart from the sumary line only the raw message text is displayed.
* use RefreshCommand after removing messagePatrick Totzke2011-12-27
| | | | | This is not only cleaner but also results in the foolter line being refreshed, so the displayed message count is accurate
* ThreadBuffer rebuilds to SolidFill if thread nonexistantPatrick Totzke2011-12-27
| | | | | | | ThreadBuffer will display as urwid.SolidFill if the displayed thread seized to exist. This could happen for example if the last message of that thread has been removed.
* introduce and use NonexistantObjectErrorPatrick Totzke2011-12-27
| | | | | | DBManager.get_thread and get_message now raise this exception in case the requested object does not exist in the index. Moreover, Thread.refresh uses the refactored dbm._get_notmuch_thread.
* Enable highlighting of date and mailcount componentsdtk2011-12-27
| | | | | | | | | | | | | | The default for thread_highlight_components is still 'subject', since that setting is most discreet and could be a greatest common divisor for all users to agree on. This commit does however add exemplary themeing of the date and mailcount components for the 'flagged' tag. You can try them by enabling the full array of components in your config file: thread_highlight_components = date,mailcount,authors,subject There is no support for highlighting tags, which are the last component in the ThreadlineWidget. This is partly due to the fact that the TagWidget comes with its own themeing capabilities, and we don't wanna override those settings.
* Use better default themeing for highlightingdtk2011-12-27
| | | | | | | | | So far if the config provides no themeing for a threadline component for a given tag, shell defaults are used, which badly breaks the default theme. Now the following highlight tags are checked. If no themeing has been provided for any configured tag, the untagged theme will be used. Cf issue 25.
* Generalize highlightingdtk2011-12-27
| | | | | | | | | | Highlighting now works for arbitrary single tags (but be warned: demanding highlighting for a tag and not providing themeing for it will visually ruin your default theme). The components that are to be highlighted upon a match are now directly configurable, so the highlighting level is no longer needed. The ThreadlineWidget uses the new configuration. Cf issue #25.
* Refactor ThreadlineWidget::__get_*_theme() methodsdtk2011-12-27
| | | | Unify them under __get_theme('component') methods.
* Enable themeing of authors string of unread mailsdtk2011-12-27
| | | | | | | | | | So far only the subject of unread mails could be themed individually. This commit adds the ability to additionally theme the authors individually. This is configured by specifying a highlighting level, where 1 corresponds to the known themeing of the subject and 2 adds themed authors. Cf issue #25.
* Enable themeing of authors string of unread mailsdtk2011-12-27
| | | | | | | | | | So far only the subject of unread mails could be themed individually. This commit adds the ability to additionally theme the authors individually. This is configured by specifying a highlighting level, where 1 corresponds to the known themeing of the subject and 2 adds themed authors. Cf issue #25.
* Change default for highlight_unread_mails to Truedtk2011-12-27
| | | | | The highlighting is rather discreet with the default theme. This commit is a preparation for the introduction of another highlighting level.
* move Message-ID creation to envelope.construct_mailPatrick Totzke2011-12-27
| | | | | | and clean up envelope.construct_mail a bit issue #199 closes #199
* don't set envelope.sent_time in EditNewCommandPatrick Totzke2011-12-27
| | | | | the constructed envelope should be considered a fresh message and hence this has never been sent before.
* inline docs for Envelope.construct_mailPatrick Totzke2011-12-27
|
* Merge branch 'feature-drafts' into testingPatrick Totzke2011-12-27
|\
| * introduce threads.RemoveCommandPatrick Totzke2011-12-27
| | | | | | | | | | to remove messages from the notmuch index issue #210
| * add DBManager.remove_messagePatrick Totzke2011-12-27
| | | | | | | | | | | | | | to remove a message givven as Message object from the notmuch index issue #210
| * add Date-header when converting envelope to mailsPatrick Totzke2011-12-27
| | | | | | | | | | | | this causes drafts not to be stored without date header. If they are, notmuch displays them as if they had a date-value of 0 in epoch.
| * pep8 fixesPatrick Totzke2011-12-27
| |
| * default theme for draft tag: white on redPatrick Totzke2011-12-27
| |
| * fix account.store_mailPatrick Totzke2011-12-26
| | | | | | | | this fixes an unsuccessful previous merge
| * binding: `d` to save draft in envelope bufferPatrick Totzke2011-12-25
| |
| * 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.
| * fix c/p error in Account.store_draft_mailPatrick Totzke2011-12-25
| |
| * logging in Account.store_mailPatrick Totzke2011-12-25
| |
| * return values for Account.store_mailPatrick Totzke2011-12-25
| | | | | | | | | | this also fixes the issue of not using the created msg object, cf. issue #198
| * map 'n' to editnew in thread modePatrick Totzke2011-12-25
| | | | | | | | | | new default keybinding to editnew command issue #168
| * add editnew command for thread modePatrick Totzke2011-12-25
| | | | | | | | | | this composes a new envelope based on a (selected) message. issue #168
| * Envelope.attachments: list of AttachmentPatrick Totzke2011-12-25
| | | | | | | | | | | | store Attachment objects instead of raw email parts and use accordingly in construct_mail. Envelope.attach now accepts path strings as well as Attachment objects.
* | Replace redundant code with existing resultdtk2011-12-26
| | | | | | | | base = 'tag_%s' % tag
* | Fix typo in AlotConfigParserdtk2011-12-25
|/ | | | s/keybiding/keybinding/
* Merge branch 'master' into testingPatrick Totzke2011-12-25
|\
| * Add default key binding to toggle 'unread' tagdtk2011-12-25
| | | | | | | | | | | | | | | | Toggles the 'unread' tag of a mail thread in the search buffer. Default key is 's' as in the maildir flag 'seen'. Thunderbirds 'm' is taken globally for composing mails. Closes #200
| * Fix typo in default configdtk2011-12-25
| | | | | | | | "if unset, alot will first *try* the EDITOR env variable"
| * Fix typo in doc stringdtk2011-12-25
| | | | | | | | s/coulour/colour/
| * Decode the text message according to the encoding guessed by libmagic in ↵Justus Winter2011-12-25
| | | | | | | | helper.mimewrap
| * Remove unused function helper.guess_mimetype_of_pathJustus Winter2011-12-25
| |
| * Avoid reading the file twice if we have to guess the content typeJustus Winter2011-12-25
| |
| * Add helper.guess_encodingJustus Winter2011-12-25
| |