summaryrefslogtreecommitdiff
path: root/emacs/notmuch-maildir-fcc.el
Commit message (Collapse)AuthorAge
* emacs: Delete some trailing whitespace.Carl Worth2010-04-26
| | | | That managed to sneak in with some recent improvements to the Fcc code.
* emacs: Ensure that message-directory for Fcc has a trailing slashJesse Rosenthal2010-04-26
| | | | | | Use `file-name-as-directory' to ensure that message-directory has a trailing slash so it can be combined with the notmuch-fcc-dirs correctly.
* emacs: add prompt to create maildir for fcc if it does not exist.Jesse Rosenthal2010-04-26
| | | | | | | | If the user specifies a maildir that does not exist, prompt the user to see whether a maildir should be created. This will fail, with the relevant explanation, if the location is not writable, or if a file already exists in that location. If the location is a dir, but not a maildir, this will add /tmp/cur/new to it.
* emacs: fcc should fail at the right time if it doesn't point to a maildirJesse Rosenthal2010-04-26
| | | | | | | | | | | | | Throw an error after the maildir is generated but before the message is sent. This change allows the user to edit the maildir if it fails, so that it will point to a correct place. Note that this changes the previous behavior which always overwrote the existing Fcc line. Now, an Fcc line is only auto-generated if there isn't one already there. The ideal change would be to prompt to create a maildir. This should enable a place for doing that in a future patch.
* emacs: Fix to generate error if fcc directory is not a maildirCarl Worth2010-04-26
| | | | | | | Previously this was just a message that was almost impossible for the user to see. Now, the user gets to see the error message, and is presented with a buffer that actually contains the Fcc header of interest.
* Integrate notmuch-fcc mechansimSebastian Spaeth2010-04-26
| | | | | | | | | | | | | | I have gone wild and added a defcustom "notmuch-fcc-dirs". Depending on the value of that variable we will not do any maildir fcc at all (nil, the default), or it is of the format (("defaultsentbox") ("full name <email@address>" . "Work/sentbox") ("full name2 <email2@address2>" . "Work2/sentbox")) The outbox name will be concatenated with the message mode variable "message-directory" which is "~/Mail/" by default. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
* notmuch-maildir-fcc: elisp syntax fixesSebastian Spaeth2010-04-26
| | | | | | | | | | | | | | | 1)use insert-buffer-substring Rather than the insert-buffer. Emacs complains that it is for interactive use and not for use within elisp. So use insert-buffer-substring which does the same thing when not handed any 'begin' 'end' parameters. 2)replace caddr with (car (cdr (cdr))) The former requires 'cl to be loaded and during make install emacs complained about not knowing it. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
* Integrate notmuch-maildir-fcc into notmuchSebastian Spaeth2010-04-26
| | | | | | | Require notmuch-maildir-fcc and also install it. Rename all jkr/* functions to notmuch-maildir-fcc-* Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
* Add elisp file for FCC to maildir solutionJesse Rosenthal2010-04-26
File grabbed from http://jkr.acm.jhu.edu/jkr-maildir.el but not integrated yet. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>