Commit Graph

45 Commits

Author SHA1 Message Date
Alex Bennée 67b9ef8384 mu4e/mu4e-actions: optional apply signoff
Maintainers often want to apply patches with their signoff. Support
this with an optional argument.
2018-05-21 18:56:44 +01:00
djcb 95d68b4741 mu4e: add action mu4e-action-copy-message-file-path
Allow for copying the file path of the current message; useful for
developers.
2017-08-27 17:35:23 +03:00
djcb 05faceeb49 mu4e: some whitespace cleanup 2017-01-30 21:07:00 +02:00
djcb 5a09733048 mu4e: msg2pdf: don't require builddir for default
Try to find msg2pdf in addition to builddir, since it seems some people
/ distros are actually installing it.
2017-01-30 21:05:04 +02:00
djcb ec064c5f9e mu4e: cosmetic
Clear up some overly long lines.
2017-01-03 17:45:03 +02:00
Abdo Roig-Maranges cba2e0c21c add rudimentary completion support for retag action
This adds a variable mu4e-action-tags-completion-list, that contains a
list of commonly used tags to suggest as completion terms during a retag
actions.

Along the way, the retag action accepts as argument a comma-separated
list of +tag and -tag keywords, instead of a space-separated one,
removing the need to quote tags with spaces in them, and making it
consistent with the behaviour of completing-read-multiple.
2016-08-22 20:26:35 +02:00
Dirk-Jan C. Binnema 80ecf80a12 Merge pull request #875 from stsquad/some-fixes
mu4e-actions: improve mbox handling for multiple marks
2016-08-02 08:08:34 +03:00
Ævar Arnfjörð Bjarmason e2ce627197 Actually make the "write attachments" feature in d16957d work
This is a follow-up to my pull request #895 which fixes another bug in
pull request #831 (d16957d).

The code to write out the attachments would never work, for what it's
worth it's clear from the issue I fixed in #895 that the codepath had
never been executed as-is.

It would find the attachments and try to write them out to /tmp/, just
that, no /tmp/NAME, just the directory itself. That would yield an
error of trying to write to a directory.

Fix that, now we create a temporary name as a function of the
attachment and both save it and extract it.

This makes the mu4e-action-view-in-browser function finally work for
me. It'll now write out the attachments to /tmp, and rewrite the HTML
so that I'll see the attachments in my browser.
2016-08-01 21:11:05 +02:00
Ævar Arnfjörð Bjarmason dc65f0c5ec Fix a regression in pull request #831
The mu4e-message-field function was called in a way that would never
work, fix that by calling it correctly.

There's the additional follow-up TODO here that the mu4e-message-field
function itself should probably die on this sort of invocation, but I
don't know enough about elisp idioms to know how that should look.

This fixes my issue #894.
2016-07-31 23:28:35 +02:00
Alex Bennée fdb476e225 mu4e-actions: improve mbox handling for multiple marks
This avoids prompting the user over and over if the directory hasn't
changed. I've also ensured the paths are escaped with
shell-quote-argument.
2016-07-03 08:38:26 +01:00
Josiah Schwab fb45d70d54 Improve behavior of mu4e-action-show-thread
This patch improves the behavior of mu4e-action-show-thread.  This
action now leaves the point on the message where the action was invoked,
which helps prevent losing ones' place in a long thread.  When invoked
in view mode, it continues to display the message that was being viewed,
instead of returning to a header-only view.
2016-05-19 10:05:29 -07:00
Jun Hao d16957dc97 mu4e: handle attached image when write msg body to html 2016-05-07 09:07:11 +08:00
djcb c041ca39ed mu4e: mention privacy aspects of browser
Mention the privacy aspects of opening a message in a browser, and what
to do about it.
2016-03-15 06:40:21 +02:00
djcb ace2f2ad2c mu4e: clean up creating html files
Clean up the creation of html files a bit, and automatically clean them
up after a short while, so we don't clutter /tmp.

Refactor the html-generating actions, so we don't repeat ourselves too
much.
2016-02-20 11:21:24 +02:00
djcb 29a4ae1c83 mu4e: explicitly specify utf8 for html-view actions
Explicitly add the (html 5) <meta charset ...> for UTF-8; not all
browsers default to UTF-8 and could show the class "Â" characters when
interpreting UTF-8 as ISO-8859-1.
2016-02-02 20:21:37 +02:00
djcb 7ea5f4c8e2 mu4e: add mu4e-action-view-with-xwidget
Action for using xwidget/webkit to display emails in a webkit widget
inside mu4e. This currently requires the git-version of emacs (emacs-25
branch).
2016-01-24 12:32:09 +02:00
djcb ea1c6645ef mu4e: use , to separate Keyword: values
Conform with https://tools.ietf.org/html/rfc2822#section-3.6.5

Spotted by andersjohansson
2016-01-14 22:26:10 +02:00
djcb 967b3cb727 mu4e: update copyright years 2016-01-09 21:28:03 +02:00
Dima Kogan 781f0782f5 mu4e: added action to show the current thread only
Add an action for view and headers buffer to show only the messages in
the current thread.
2015-11-12 12:57:26 +02:00
KOMURA Takaaki 0901af847a * mu4e/mu4e-actions.el: modify org-capture-templates
add " " between :EMAIL: and 'mail'
move the cursor to the left of 'name'
2015-05-20 23:44:41 +09:00
Alex Bennée c03c14d52d mu4e-actions.el: add mu4e-action-git-apply-mbox example
Apply patch is useful when you might want to change the patch. However
for reviews you may well just want stuff applied directly to the
commit history.
2013-10-25 12:09:26 +01:00
Alex Bennée 64d348c07e mu4e-actions.el: better last dir handling for mu4e-action-git-apply-patch
add-to-list does pre-pend an element to a list by default, but only if
it isn't in there already. This change ensures the path we have just
added is always the first in the list. This makes sense when applying
a series of patches by hand.
2013-10-25 12:08:00 +01:00
djcb 7472a3bb07 * mu4e: mu4e-actions: require 'ido' 2013-10-08 06:52:29 +03:00
Alex Bennée 128a17b87e mu4e-actions.el: make git apply patch history aware
As you are often applying a series of patches to a tree it doesn't
make sense to move the user to default-directory every time. This
changes read-directory-name to use ido-read-directory-name and
populate the directory with the last one applied.

Any path chosen is also added to the beginning of
ido-work-directory-list for next time.
2013-10-03 09:21:09 +01:00
djcb 3c67aa6591 * mu4e: fix a few compiler warnings / typos 2013-06-03 21:09:20 +03:00
djcb 7f80bce015 * mu4e-actions: mu4e-action-capture-message should not be interactive 2013-05-13 00:04:36 +03:00
djcb 9c7d2e3b16 * mu4e: don't use beginning-of-buffer non-interactively (fixes compilation warning) 2013-03-17 19:45:16 +02:00
djcb 0623973ce0 * cosmetics 2013-03-17 11:58:08 +02:00
Dirk-Jan C. Binnema ae1deb4b10 Merge pull request #158 from pygatea/master
* re-implements "retagging" action in elisp to get around sed version inconsistencies between platforms
2013-03-17 02:55:17 -07:00
djcb b7332b923e * mu4e: retagging: +/- are only special at the beginning of terms (thanks to seanfarley) 2013-03-17 11:27:42 +02:00
D. LoBraico bce9282332 * mu4e: Whoops, uses actual correct helper function naming conventions (~ instead of -) 2013-03-16 12:42:41 -05:00
D. LoBraico 0d4d7b4ff1 * mu4e: uses correct helper function naming conventions. 2013-03-16 12:40:18 -05:00
djcb dbbcaf0f2b * mu4e: make the +/- in +tag, -tag only match at the beginning of words 2013-03-16 17:58:17 +02:00
D. LoBraico fd53bde694 * mu4e: replaces sed with elisp in re-tag action 2013-03-11 16:55:37 -05:00
djcb f7b6c6e6ab * some fixes for the retagging action (thanks to Abdó Roig-Maranges) 2012-12-15 12:06:32 +02:00
djcb 5921afbe5c * mu4e-actions: fix 'sed' parameters in mu4e-action-retag-message 2012-12-10 02:01:55 +02:00
djcb 0e204fece4 * small cleanup of the retagging support 2012-12-09 15:07:21 +02:00
Abdó Roig-Maranges fb2f5d6a53 Adds an action to change tags header
New action mu4e-action-retag-message that reads tag changes from the user and
modifies the corresponding header (X-Keywords, X-Label, etc) on the message.
2012-12-07 00:18:00 +01:00
Jonas Bernoulli 8a3d4c27de improve doc-strings
The first sentence should summarize the variable's or function's
purpose and it should fit on the first line.  Change existing
doc-string by:

* Move first sentence onto first line even if that makes it _a bit_
  long.
* Move additional notes out of first sentence and add them later,
  possibly as complete sentences.
* If I am uncertain whether doing the above would alter the meaning,
  _don't_ do it.
* If fitting the initial sentence on the first line would require a
  complete rewrite of the doc-string _don't_ do so unless it is very
  easy to do.
* Remove indentation from second and later lines if it is there to
  align them with the first in the source code, instead of in
  `describe-*' output.
* Make "pullet point" lists a bit more consistent.

Obviously this does not fix all problems but it's a start.
2012-11-10 14:01:17 +01:00
djcb 0b2b984150 * mu4e: add example mu4e-action-git-apply-patch 2012-10-29 12:26:17 +02:00
djcb 5c2025a12c * mu4e: mu4e-message part 3 2012-09-26 17:28:30 +03:00
djcb 81f74219b2 * fix mu4e-action-view-in-browser (thanks semente!) 2012-09-25 07:38:57 +03:00
djcb 0bd47871e8 * mu4e: don't require org directly 2012-09-03 11:15:27 +03:00
djcb 90290a132c * mu4e: improve mu4e-action-view-in-browser 2012-08-30 12:54:26 +03:00
djcb dc62bd6c75 * rename emacs/ => mu4e/ 2012-07-10 20:00:06 +03:00