Commit Graph

4000 Commits

Author SHA1 Message Date
djcb 2a83b02ce2 mu: cosmetic 2016-07-23 19:14:13 +03:00
djcb c27471f4fa mu4e: compose: auto-crypt/sign crypto replies
When replying to an encrypted message, sign/encrypt by default; see
  mu4e-compose-crypto-reply-policy.

(Issue #865)
2016-07-12 00:25:05 +03:00
djcb a24058040f mu4e: fix typo in face description 2016-07-12 00:15:29 +03:00
djcb 1945ab3bce mu4e: handle foo> citation style
Handle the citation style where the cited part is prefixed with
eg. "foo> " instead of the normal ">".

Also improve the default color scheme a bit.
2016-07-10 21:45:52 +03:00
Dirk-Jan C. Binnema fc3b9c19da Merge pull request #877 from remvee/feature/handle-mbsync-output
mu4e: Handle mbsync output in mu4e-update buffer
2016-07-10 00:04:25 +03:00
djcb 1e963c1779 mu4e: update font-locking for mu4e-compose-mode
mu4e was making a vain attempt to fontify the compose buffer; this
doesn't work because message (from which mu4e-compose-mode derives) uses
font-locking for that.

So, instead, remap the message-mode faces to the ones used for mu4e.
2016-07-09 23:42:58 +03:00
Remco van 't Veer b203226a06 Handle mbsync output in mu4e-update buffer
The mbsync command uses carriage return characters to go to the
beginning of the line.
2016-07-08 14:12:30 +02:00
djcb b31ba3dd81 mu4e: seems the keymaps might not be defined (workaround)
Users were seeing:
,----
| Debugger entered--Lisp error: (wrong-type-argument keymapp nil)
|   signal(wrong-type-argument (keymapp nil))
|   define-key-after(nil [mu4e-hard-newlines] (menu-item "Format=flowed"
| mu4e-toggle-use-hard-newlines :button (:toggle . use-hard-newlines) :help
| "Toggle format=flowed" :visible (eq major-mode (quote mu4e-compose-mode))
| :enable mu4e-compose-format-flowed) sep)
|   mu4e-compose-mode()
|   byte-code("..." [original-msg mu4e-compose-parent-message
| mu4e-compose-context-policy winconf includes att make-local-variable put
| permanent-local t mu4e~context-autoswitch run-hooks mu4e-compose-pre-hook
| current-window-configuration nil (mu4e-draft-open compose-type
| original-msg) ((quit (byte-code "..." [winconf set-window-configuration
| mu4e-message "Operation aborted" throw --cl-block-mu4e~compose-handler--
| nil] 3))) mu4e~draft-insert-mail-header-separator mml-attach-file plist-get
| :file-name :mime-type mu4e~compose-set-friendly-buffer-name
| set-buffer-modified-p (new forward) message-goto-to message-goto-body
| mu4e~compose-type mu4e~compose-hide-headers mu4e-compose-mode delete-frame
| --dolist-tail-- compose-type mu4e-compose-in-new-frame message-exit-actions
| message-postpone-actions] 6)
|   mu4e~compose-handler(new)
|   mu4e-compose(new)
|   mu4e-compose-new()
`----
2016-07-03 23:29:05 +03:00
Dirk-Jan C. Binnema 6a42000997 Merge pull request #871 from arthurl/arthur/PR/refences-header-bug
mu4e: [FIX] references header dropped bug
2016-07-03 10:17:04 +03:00
djcb 3895052bfd Merge branch 'master' of github.com:djcb/mu 2016-07-03 10:02:23 +03:00
djcb ddf4adc30f mu4e: try a bit harder to find the draft folder
If we can't guess the draft folder when re-editing a message, fallback
to the default.
2016-07-03 10:00:27 +03:00
Arthur Lee 8a62bc172d mu4e: [FIX] references header dropped bug 2016-06-22 01:43:59 +08:00
Dirk-Jan C. Binnema 52b7aae439 Merge pull request #852 from jschwab/improve-action-show-thread
mu4e: Improve behavior of mu4e-action-show-thread
2016-06-11 09:54:08 +03:00
Dirk-Jan C. Binnema 5228e24fbd mu4e: Merge pull request #867 from thierryvolpiatto/Fix_window_restore
Fix window restoration when C-g'ing on reply.
2016-06-09 09:23:55 +03:00
Thierry Volpiatto fa2427e6f9 Fix window restoration when C-g'ing on reply.
* mu4e/mu4e-compose.el (mu4e~compose-handler):
Save and restore window config.
2016-06-09 07:22:56 +02:00
djcb d3b20704dc mu4e: exclude compose buffer from desktop-saving
You can't really use drafts restored from desktop-save-mode; so exclude
them.

Fixes #860.
2016-06-08 22:29:28 +03:00
djcb ed16684f45 mu4e: cosmetics 2016-06-08 19:25:52 +03:00
djcb e977309de5 mu4e: don't try to open non-existent messages
When processing header updates, don't try to open a message that doesn't
exist. Fixes issue #825.
2016-06-08 19:22:41 +03:00
djcb 3e6267fd05 mu-maildir: ignore backup/temporary files
Ignore backup/temporary files, i.e., files ending in ~ or #.

Fixes #855.
2016-06-05 19:29:53 +03:00
Dirk-Jan C. Binnema 04d973a9df Merge pull request #861 from remvee/feature/hide-index-messages-customizable
mu4e: Make `mu4e-hide-index-messages' customizable
2016-06-05 18:55:49 +03:00
djcb 5656d3ee18 Merge branch 'master' of github.com:djcb/mu 2016-06-05 18:53:31 +03:00
djcb ac1bfae196 mu4e: limit # of references to 21
Following the example of `message-shorten-references', only allow up to
21 references, since some mail servers limit them.

Fixes #859.
2016-06-05 18:49:04 +03:00
Dirk-Jan C. Binnema db3a8c712d Merge pull request #853 from liweitianux/master
Use Unicode characters when cleaning up attachment filename
2016-06-05 17:41:07 +03:00
Remco van 't Veer 4814548318 Make `mu4e-hide-index-messages' customizable 2016-06-03 09:50:52 +02:00
Dirk-Jan C. Binnema 36571518b0 Merge pull request #858 from j-hao/master
mu4e: Make dvipng optional when convert from org to html
2016-06-01 09:07:31 +03:00
Jun Hao fe52c0e932 mu4e: Make dvipng optional when convert from org to html 2016-05-31 20:28:57 +08:00
Aaron LI 297df938d6 Use Unicode characters when cleaning up attachment filename
Improve the function ``cleanup_filename()`` of ``lib/mu-msg-part.c`` to
use Unicode characters when replacing the control characters, slashes
and colons with ``-``.

Originally, this function just use plain C characters (i.e., assuming
ASCII string) when checking each character is or not a control character,
slash or colon.  However, when the attachment filename contains non-ASCII
(e.g., Chinese characters), all the non-ASCII characters are replaced
with ``-``.

For example:
* Before:
```
> mu view test_chinese_attachment_filename.eml
From: Tester <tester@example.com>
To: Example <example@example.com>
Subject: Test email with attachment of Chinese filename
Date: Mon 23 May 2016 05:22:09 PM CST
Attachments: 'attachment-test.txt', '------------.txt', '-------test.txt'
Hello,

This is a simple test email with three attachments:

1. `attachment:test.txt`: filename is all English;
2. `测试附件.txt`: filename is all Chinese (exclude the extension);
3. `附件-test.txt`: filename mixes Chinese and English.
```

* After:
```
> ./build/mu/mu/mu view test_chinese_attachment_filename.eml
From: Tester <tester@example.com>
To: Example <example@example.com>
Subject: Test email with attachment of Chinese filename
Date: Mon 23 May 2016 05:22:09 PM CST
Attachments: 'attachment-test.txt', '测试附件.txt', '附件-test.txt'
Hello,

This is a simple test email with three attachments:

1. `attachment:test.txt`: filename is all English;
2. `测试附件.txt`: filename is all Chinese (exclude the extension);
3. `附件-test.txt`: filename mixes Chinese and English.
```
2016-05-23 19:26:04 +08: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
djcb 54b6230adf tests: fix unit tests
Some tests weren't yet update for the new test message.
2016-05-16 13:38:10 +03:00
djcb bd0fd4b8d8 mu4e: ensure filename is valid for removing it later
lexical-let the filename to be removed later, so it's still valid.
2016-05-16 09:22:11 +03:00
djcb a81270583f Add unit-test for multi-to/cc recipients
To check for the report in Issue #826.
2016-05-15 16:21:20 +03:00
Dirk-Jan C. Binnema 94587ac3ac Merge pull request #850 from Chris00/kill-message-manual
mu4e: Improve the description of C-c C-k in compose mode
2016-05-15 15:56:47 +03:00
Christophe Troestler e1c946ebd5 Improve the description of C-c C-k in compose mode
Fixes https://github.com/djcb/mu/issues/843
2016-05-15 12:23:23 +02:00
Dirk-Jan C. Binnema 41ff64fabc Merge pull request #848 from j-hao/master
Ignore auto generated mu/mu-help-strings.h
2016-05-15 10:53:32 +03:00
Dirk-Jan C. Binnema 851ab880f0 Merge pull request #847 from Chris00/captured-message
mu4e: Add a menu entry to attach captured messages
2016-05-14 15:15:07 +03:00
Jun Hao 5db97c80de Ignore auto generated mu/mu-help-strings.h 2016-05-11 22:51:34 +08:00
Christophe Troestler 834b0671c8 Add a menu entry to attach captured messages
Without this menu entry, one has to remember the command name which is
not convenient.  This entry also helps to discover the "capture" feature.
2016-05-10 21:55:54 +02:00
djcb 3a7429456c mu4e: parenthesize narrowing term
When narrowing search results, parenthesize the narrowing term, so terms
with AND/OR etc. don't lead to surprising results.

Fixes #846.
2016-05-09 23:14:36 +03:00
Dirk-Jan C. Binnema 070c623286 Merge pull request #844 from Chris00/flowed
mu4e: Compose mails with format=flowed by default
2016-05-09 23:08:44 +03:00
Christophe Troestler d063889e4c Set mu4e-compose-format-flowed to nil by default
Requested by Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> not to disturb
existing users.
2016-05-07 18:12:10 +02:00
Dirk-Jan C. Binnema 7585506e37 Merge pull request #831 from j-hao/master
Handle attached images when write msg body to html
2016-05-07 12:27:46 +03:00
Christophe Troestler af523cd05a Add the menu entry in the function defining the mode
This ensures that `(lookup-key message-mode-map [menu-bar text])'
returns a valid keymap.
2016-05-07 03:28:09 +02:00
Jun Hao d16957dc97 mu4e: handle attached image when write msg body to html 2016-05-07 09:07:11 +08:00
Jun Hao f998a0ad1e mu: expose content id to attachment plist 2016-05-07 09:07:11 +08:00
Christophe Troestler 55a95db3f0 Update the manual about composing format=flowed messages 2016-05-07 02:58:17 +02:00
Christophe Troestler d2ae534ad8 With use-hard-newlines, M-q reformat the paragraph as a single line 2016-05-07 02:58:17 +02:00
Christophe Troestler b6a1e1cef8 Add a menu entry to toggle format=flowed 2016-05-07 02:58:17 +02:00
Christophe Troestler 0d939f6852 By default, compose messages as format=flowed
Fixes https://github.com/djcb/mu/issues/836
2016-05-07 02:58:17 +02:00
Dirk-Jan C. Binnema c97591ea0f Merge pull request #841 from liweitianux/patch-1
Only ignore the "/mu/mu" executable
2016-05-06 22:12:19 +03:00
djcb e06c9ad1dd Merge branch 'master' of github.com:djcb/mu 2016-05-06 22:09:48 +03:00