Commit Graph

100 Commits

Author SHA1 Message Date
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
Jun Hao 13c4b48920 mu4e: quote user-full-name according to rfc822 when construct from field 2016-03-14 23:08:41 +08:00
djcb a0f0e95344 mu4e: better handling of closing compose frames
Use message-mode actions to close the compose
frame (`mu4e-compose-in-new-frame') whenever we're finished editing a
message.
2016-02-20 12:25:21 +02:00
djcb b72db626f3 mu4e: implement resending
Implement the special compose type 'resend', for resending existing
messages, possibly with changes.
2016-02-16 08:29:06 +02:00
Thomas Moulia 8f5df6cca0 mu4e: fix compose cancel orphaning a buffer
Create buffer contents _before_ creating the file.
2016-02-02 20:21:37 +02:00
djcb d9ca330f2b mu4e: tiny doc improvement 2016-01-15 21:02:35 +02:00
djcb 967b3cb727 mu4e: update copyright years 2016-01-09 21:28:03 +02:00
djcb b373f8e5f0 mu4e: context policy tweaking
As discussed in issue #751, mu4e should tried to accommodate some
different ways of choosing the context.

We add a new policy `ask-if-none', that will only query the user if
there is no context yet; this is the new default for
mu4e-context-policy, i.e. what happens when entering the main view.

The default policy for mu4e-compose-context-policy is now `ask',
i.e. ask if none of the contexts match.

The idea is for the defaults to ask when we don't know a context, and we
can't determine one using the match functions; this is probably the
least confusing. When user gets annoyed by too many question, they can
tweak the behavior to their liking. I.e. 'ask questions first, shoot
later'

Document all of this.
2016-01-03 13:29:19 +02:00
djcb 2d443a953c mu4e: don't use `purecopy`, it's useless
Don't use `purecopy`, it's useless outside emacs itself, as pointed out
by cpitclaudel. Fixes issue #729.
2015-12-15 07:02:24 +02:00
djcb b43b701aa9 mu4e: add mu4e-user-agent-string
Add mu4e-user-agent-string, this allows for customizing the user-agent
string.
2015-11-22 11:25:05 +02:00
djcb aa871ee4da mu4e: don't insist of message-signature being a string
Better not to ignore message-signature, even when it's not a string.
2015-10-16 11:20:48 +03:00
djcb ff06d5fb4d mu4e: don't include '--' if no signature set
This fixes issue #434.
2015-10-16 11:18:50 +03:00
Jonas Bernoulli a924985803 Fix issues reported by the byte-compiler. 2015-10-09 01:02:58 +02:00
djcb a350e2047d Change format for filenames
It seems some tools try to interpret the filename of message files,
even though they shouldn't:
   "Do not try to extract information from unique names."

In particular, they seem to interpret the first part of the name (before
the first dot) as the # of seconds since the Unix epoch (ie.,
time(NULL)). That's not what mu/mu4e put there.

So, let's conform a bit more to the expected filename (as per the
maildir spec), so we're not confusing those tools.
2015-10-02 17:43:38 +03:00
Eike Kettner 0f167270a6 * mu4e-draft.el: fix adding User-agent header 2015-07-24 08:24:45 +02:00
Pan Jie 64959382b9 Mu4e: add support for composing in a new frame
Adds the variable mu4e-compose-in-new-frame and when set to t, message
are composed in a new frame rather than the current one.
2015-05-24 11:48:37 +03:00
djcb 46934a9167 mu4e: Use save-excursion to leave point before signature
Based on the patch by janisteunissen.
  7f8b598e00
2014-10-12 16:18:07 +03:00
djcb 9bd65560a5 mu4e: make including dates in drafts optional (and disabled by default)
Add new configuration variable `mu4e-compose-auto-include-date'.
2014-09-02 06:10:38 -07:00
Dirk-Jan C. Binnema a4da062845 Merge pull request #430 from taurgal/master
* mu4e: Add revert-buffer support to the mu4e main buffer
2014-06-05 22:01:52 +03:00
djcb a36d4bd72f * mu4e: make sure there's always an ending newline 2014-06-02 08:42:05 +03:00
Bosché Aurélien fe53c5a0f8 Added a missing ";; New" comment. 2014-05-24 19:38:14 +02:00
Bosché Aurélien fdbc1d6f9a Automatically insert a date field in the new drafts headers.
So that one can see when a draft was composed when browsing the
draft maildir (instead of getting "None" in the Date column). Then one
can sort the drafts by date.
2014-05-24 19:30:13 +02:00
djcb 5ab30cbc09 * mu4e: don't add rogue \n where re-editing 2014-05-04 10:51:44 -07:00
djcb 5cf67c6ea9 * don't mark the mail-header-separator as read-only
this seems to cause problems in some cases, where message-mode
  apparently requires the text to be writable.
2014-04-27 11:28:58 +03:00
djcb e3274461db * mu4e: applied Michael Strey's patch for the date in citations
What was going wrong?

  Using the function `mu4e-view-message-text',
  mu4e~draft-cite-original created a temporary buffer. Based on this
  buffer the function message-cite-original-without-signature,
  borrowed from Gnus, had to extract the date for the citation
  line. The problem was, that this function depends on a standardized
  date in ISO format whilst mu4e-view-message-text formatted the date
  according to the setting of mu4e-view-date-format.

  This patch hopefully solves this problem by setting
  mu4e-view-date-format in function mu4e~draft-cite-original.
2014-03-09 20:08:55 +02:00
djcb 9b5c841602 * mu4e: make sure the signature gets insert at the right places (Fixes #381) 2014-03-03 19:54:36 +02:00
djcb a860d61b98 * fix mu4e-compose-signature 2013-12-26 18:51:02 +02:00
djcb 5232c9ca5d * mu4e: check that message-signature is a string 2013-12-21 11:10:15 -08:00
djcb 5f6c274b3c * mu4e: add mu4e-compose-signature-auto-include and document it 2013-12-21 10:58:55 -08:00
djcb 9c8101d949 * mu4e: centralize some of the fontification code; cleanup signature support 2013-10-20 15:41:47 +03:00
djcb b6dee495f4 * mu4e-draft: small faces update 2013-10-19 12:07:37 +03:00
djcb 8656f6721e * mu4e: complete the new reply-to-your-own-messages behavior + documentation 2013-07-17 21:13:42 +03:00
djcb 5ecbb40557 * mu4e: when replying to messages written by self, keep the same to:/cc: 2013-07-07 18:30:30 +03:00
djcb 7fe37334b5 * cosmetics 2013-06-24 22:44:36 +03:00
djcb 3d385325ea * mu4e-draft: fix typo in patch 2013-06-08 17:36:09 +03:00
joost c511ae7f1f also try to avoid unnecessary quotes when replying (see issue #217) 2013-06-05 10:26:22 +02:00
djcb 3c67aa6591 * mu4e: fix a few compiler warnings / typos 2013-06-03 21:09:20 +03:00
djcb f6035fd5db * mu4e-drafts: make the draft file the same as the mu-maildir function generates 2013-05-22 00:22:20 +03:00
djcb 83667fbe83 * fix typo 2013-05-22 00:06:32 +03:00
djcb 222d8c3627 * improve message-composition / draft handling 2013-05-21 08:05:06 +03:00
djcb 362bcbda17 * mu4e: fix some weirdness with editing drafts 2013-05-20 06:53:55 +03:00
djcb 85fb0e14ef * mu4e: add mu4e-compose-dont-reply-to-self, default to nil for now (thanks to sfischme) 2013-04-23 19:54:47 +03:00
djcb d38fbccd47 * mu4e-draft.el: hopefully fix the references issue 2012-12-28 14:48:20 +02:00
djcb deb862a488 * fix broken references: don't comma-separate 2012-12-28 12:49:31 +02:00
djcb 9bc27d63ef * cosmetic 2012-12-15 12:02:04 +02:00
djcb 46a49c8875 * remove all addresses in `mu4e-user-mail-address-list' from cc-list; fixes #101 2012-12-09 15:31:39 +02: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 e5e5955752 * minor 2012-11-08 21:35:01 +02:00
djcb 2e6f8ba015 * mu4e: set mail-header-separator to some sane value 2012-11-04 20:41:09 +02:00
djcb 339d1ff036 * mu4e: refactor part of mu4e-compose into the new mu4e-draft.el 2012-10-31 20:33:46 +02:00