summaryrefslogtreecommitdiffstats
path: root/editmsg.c
AgeCommit message (Collapse)Author
2019-01-04Clean up code indentation.Kevin McCarthy
These are mostly automated changes corresponding to the emacs settings: (c-set-style "linux") (setq c-basic-offset 2) (c-set-offset 'case-label '+) Most of the code follows the convention: (add-to-list 'c-cleanup-list 'space-before-funcall) but this is not enforced by this indentation cleanup. Also, I personally dislike tabs, so I have: (setq-default indent-tabs-mode nil) in my own configuration. However I have no desire to change every line just for that effect. So this cleanup does nothing about the mix issue. Some of the secondary files (e.g. regex.c) have been skipped. I've also skipped crypt-gpgme.c, because I need to think about that file. Werner Koch and the GnuPG team contributed most it, and it follows the Gnu indentation settings. It should probably be made uniform with Mutt, but I don't want to discourage future GnuPG contribution to the file. I manually reverted a few unsightly cleanups, and added a few tweeks when I saw things that could be improved.
2018-12-31Remove trailing whitespace.Kevin McCarthy
The result of find . -name "*.[ch]" -exec emacs -batch {} \ --eval="(progn (delete-trailing-whitespace) (and (buffer-modified-p) (save-buffer)))" \;
2016-07-17Add the trash folder patch.Kevin McCarthy
This is based on the trash folder patch by Cedric Duval. Modifications to the original patch are: * Use a flag called M_PURGE instead of M_APPENDED. The same flag is then used in the following "purge" patch instead of adding a different flag. * Removed the counter in context. The existing context->deleted is all that's needed. * Removed the "auto unset M_PURGE" when M_DELETED is unset inside _mutt_set_flag(), although this is convenient, it easily leads to header->purge not being reset in a few situations. * Reset purge flag along with the deleted flag if $delete is answered no. * Set M_PURGE on an edited message. (edit_one_message()) * Preserve purge flag in mutt_reopen_mailbox() * Turn off OPTCONFIRMAPPEND when saving to the trash, rather than hardcoding it off in mutt_save_confirm(). That way, normal save to the folder will respect the option.
2016-06-18pass context in mx_close_messageDamien Riegel
The mx_close_message is one of the few mx_* functions that don't have a context as parameter. To make them more consistent, pass the context.
2016-05-09Change M_* symbols to MUTT_*Derek Martin
Changeset 23334e967dd7 created a workaround for a namespace conflict with Solaris and derivatives. After some discussion, the team decided it would be best to move away from using the "M_" prefix for macros. This patch was automatically generated by running: perl -wpi -e 's/\bM_(\w+)\b/MUTT_$1/g' `find . -name '*.[ch]' -print` with the exception that sys_socket.h was exempted. (That file will be backed out subsequent to this commit.) Thanks to Andras Salamon for supplying the perl script used to make this change.
2015-09-13Add translation comments and improvements.Kevin McCarthy
These were suggested by TAKAHASHI Tamotsu.
2013-07-23fix typos in commentsOndřej Bílka
2009-06-21Pass buffer size to mutt_mktemp()Rocco Rutte
2009-03-15Use safe_fclose() instead of fclose(), add fclose() to check_sec.shRocco Rutte
2009-01-04Update copyrights. Closes #3016.Brendan Cully
I went through the logs of each file with a copyright header and updated the years for the authors in the headers for any non-comment changes they introduced. What a pain!
2007-08-31Decrement the mtime of the tempfile during edit-message to make muttGary Johnson
notice changes taking less than one second.
2005-09-17Gah, forgot the zip code when updating the FSF address...Brendan Cully
2005-09-17Update FSF address (via sed, I hope nothing got mangled). Closes: #2071.Brendan Cully
2005-02-12Partially fix debian bug #275060 (editing a message in a mbox losesTAKAHASHI Tamotsu
its flags).
2005-02-03Add config.h to the top of every C file that could possibly want it.Brendan Cully
Remove it from mutt.h
2003-08-05This patch removes the Kendra format from mutt. (The support wasBrendan Cully
broken anyways.)
2002-12-11Fix Mike's and my e-mail addresses in copyright lines.Thomas Roessler
2002-09-09Fixing #1149: Truncate files used for editing messages.Michael Elkins
2002-07-24Fix $editor and $visual. Based on an earlier patch from EdmundMichael Elkins
Grimley Evans.
2002-03-20Rename the new M_NEW by M_NEWFOLDER. There was another constant ofThomas Roessler
the same name. Problem noted by Will Yardley's compiler.
2002-03-13Don't fopen mail folders in append mode where we should safe_fopen()Thomas Roessler
them in write mode. Debian bug #138200, noted by Colin Philipps <cph@cph.demon.co.uk>. NEEDS BACKPORTING.
2001-10-11Unify "Can't stat" messages. Suggested by Byrial.Thomas Roessler
2000-07-07Fix #185: is_from would return 0 (i.e., error) when parsing Jan 1Thomas Roessler
1970 12:00 - apparently, this point of time occurs on real mail folders.
2000-04-22Comment cosmetics. From Martin Michlmayer.Thomas Roessler
2000-03-16Use Editor with a fall-back to visual when editing messages.Thomas Roessler
2000-03-03The FSF apparently has moved.Thomas Roessler
2000-03-03Fix index updates when closing or synching mail folders fails.Thomas Roessler
There were some bug-fixes hidden in that code.
2000-01-16Use Visual, not Editor, for editing messages. Noted by MariusThomas Roessler
Gedminas <mgedmin@pub.osf.lt>.
2000-01-10More copyright cosmetics - noted by Martin Michlmayr <tbm@cyrius.com>.Thomas Roessler
2000-01-06Update copyright notices for unstable.Thomas Roessler
1999-10-26Fix a small bug in the new edit-message feature. From AndrejThomas Roessler
Gritsenko.
1999-09-02Don't copy the Status header to the user's edit buffer - we destroyThomas Roessler
it later when copying the message back.
1999-09-02A new edit-message feature, giving the raw message in an editor.Thomas Roessler