summaryrefslogtreecommitdiffstats
path: root/init.c
AgeCommit message (Collapse)Author
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.
2016-04-27Fix remaining direct usages of COLS/LINES to use mutt window functions.Kevin McCarthy
Most of these were just message update/clearing.
2016-04-27Add window structures to use for screen layout.Kevin McCarthy
This is a series of 11 patches, centralizing Mutt screen drawing inside windows (mutt_window_t structures). Currently, the screen drawing and cursor positioning logic is distributed all over the code, resulting in many files having the same logic of where the help, status, message windows are. Additionally, the code directly uses move and mvadd*/mvprint* functions, which means if the layouts are changed, the row/column computation logic needs to be changed all over the place. The patch creates a (very simple) mutt_window_t structure and functions for moving, addch/str/printw, along with clearing the line. The windows keep track of where they are on the screen, allowing the Mutt code to simply position elements relative to the window. During curses initalization, and when the window is resized, the window sizes and positions and recomputed. Also, a new option flags, R_REFLOW is added for options that need to force a reflow when they are changed. Thanks to Richard Russon for pointing out the slang compilation issue.
2016-03-19Fix a few typos in translation messages.Kevin McCarthy
Thanks to Moritz Barsnick for reporting these.
2016-03-10Restrict mailto header fields using mailto_allow.Michael Elkins
By default, only the body and subject fields are allowed. These can be changed with the mailto_allow and unmailto_allow commands.
2016-03-08Improve method of determining FQDN. (closes #3298)Derek Martin
Rather than reading /etc/resolv.conf, use gethostname() and getaddrinfo() to get the canonical domain. Thanks to Vincent Lefèvre for the memory leak fix.
2016-01-01Update copyright notices.Kevin McCarthy
This patch only updates existing copyright notices in the source files, using commit dates since the last copyright update in commits e3af935cdb1a and f8fd60d8d3f2. Add a notice to the COPYRIGHT file to refer to our mercurial repository for the full commit history. Add myself to the COPYRIGHT file and smime_keys.pl file.
2015-11-24Rename idna functions and bits for smtputf8 changes.Kevin McCarthy
This is patch 1 of 4 implementing support for SMTPUTF8 (RFC 6531). Change mutt_idna.c to be always compiled. Remove the stub functions in mutt_idna.h. Instead, put #ifdefs around the idna function calls. The conversion functions will be fixed up in the next patch. Rename the conversion functions to mutt_addrlist_to_intl() and mutt_env_to_intl(). Rename the ADDRESS idna status bits to "intl" status bits.
2014-08-21Remove unused variable t in start_debug().Kevin McCarthy
t was set but never used. This was generating a compiler warning.
2013-10-05Consistently use mutt_buffer_init functionAaron Schrab
Despite the existence of the mutt_buffer_init function, most initializations were instead done with memset. Use the specific function instead to make it easier if later changes are made to how the initialization should be done.
2013-10-04fix more comment typosMichael Elkins
2013-07-23fix typos in commentsOndřej Bílka
2013-04-11backout c1371176ea45Michael Elkins
2013-04-11Backed out changeset 1142ed8974faMichael Elkins
2013-04-10use gethostname() to determine the system host nameMichael Elkins
use getaddrinfo() to look up canonical DNS name, and fall back to hinting from /etc/resolv.conf see #3298
2013-04-10fix various compiler warnings; most were due to unchecked return values from ↵Michael Elkins
system calls.
2012-07-20Do not use stack-allocated space for BUFFERsBrendan Cully
It will cause mutt_buffer_* to segfault if it needs to grow the space. Thanks to Steve Losh for discovering the issue. I have done some simple grepping to find other cases, but some may remain.
2012-07-08Fix some spelling errors (closes #3493)Antonio Radici
2012-07-07check_charset: check for NULL before calling strtok_r (closes #3326)Antonio Radici
Otherwise, if strtok_r cannot handle NULL an empty *charset setting will segfault
2011-12-03Declare many structures const (closes #3552)Dan Fandrich
Many structs used in mutt are actually constant but are defined without the 'const' keyword. This can slow initialization (slightly) in some environments due to extra copying and increases the amount of writable RAM required at run-time, which can be significant on non-MMU systems. Using const can also increase the opportunities for compiler optimization. The attached patch marks many such structures as const. On my test x86 build, this reduces the size of .data by over 50%.
2010-08-24Do not call regfree if regcomp fails.Emanuele Giaquinta
The content of the regex_t structure is undefined in this case.
2010-08-24add REG_ICASE accidentally removed in changeset 1a35f096c8cbMichael Elkins
2010-08-06detect availablity of 'long long'Michael Elkins
cast time_t to 'long long' prior to bitshifting since it can be a float value according to POSIX.1-2008 closes #3439
2010-08-06use a 64-bit random value in temporary filenames.Michael Elkins
closes #3158
2010-07-18use REGCOMP() macroMichael Elkins
2010-07-18Skip 'attachments' directive if minor type is not a valid regexpEmanuele Giaquinta
2010-04-03prevent user from setting $charset to an empty string since other code ↵Michael Elkins
requires it to be set to a valid string closes #3326
2009-07-28Fix some issues with ungroup [...] *Rocco Rutte
2009-07-24Fix check_sec.sh warningRocco Rutte
2009-07-23fix :reset to work with empty stringsAron Griffis
Signed-off-by: Aron Griffis <agriffis@n01se.net>
2009-07-23Implement ungroup command. Closes #3304.Rocco Rutte
2009-07-23Move remove_from_rx_list() to muttlib.c, name it mutt_remove_from_rx_list()Rocco Rutte
2009-06-15Print timestamps in debug files. Closes #3263.Rocco Rutte
2009-06-01Use strtol() wrappers for most atoi() callsRocco Rutte
2009-05-29Add flags to mutt_read_line() for EOL-stripping and continuation supportRocco Rutte
We use these to stop supporting EOL-escaping with \ which was wrong in most cases (e.g. $history_file), support is kept for reading config and mailcap files. Leaving CRLF in will be used for the pager.
2009-03-15Use safe_fclose() instead of fclose(), add fclose() to check_sec.shRocco Rutte
2009-03-09Restore $reverse_alias feature by using case-insensitive hash keysRocco Rutte
The fix is implemented as callbacks in the hash table so we can avoid working with copies of the mailbox keys but work on the originals instead and don't pollute the code with lower-case conversions all over the place. While I'm at it, turn int hashes into unsigned values since the hash function returns unsigned values now, too. Closes #3185.
2009-01-03Raise debug level for several messagesBrendan Cully
2008-12-26Ignore NULL/empty lines in rc parser, fixes mutt -e '' crashingRocco Rutte
2008-12-02Include mutt_menu.h in init.c for mutt_menu_init() prototypeRocco Rutte
2008-12-01Fix some typos to silence compiler warningsRocco Rutte
2008-11-30Manage last search pattern outside of menu lifecycleRocco Rutte
Previously, the pattern was thrown away during menu destruction. For the next search, mutt then can't provide a good suggestion. The new behaviour is to manage the pattern outside the lifecyle to always provide the last pattern as suggestion.
2008-10-28Make some functions static.Emanuele Giaquinta
2008-10-19Make some variables static.Emanuele Giaquinta
2008-09-18Fix compiler warningsRocco Rutte
2008-09-17sorting efficiencyThomas Roessler
2008-08-25Introduce $imap_pipeline_depth.Brendan Cully
This lets users control the number of commands that mutt will queue up before sending them to the server. Setting this to 0 disables pipelining, which should close #2892.
2008-08-19Silence an incorrect uninitialized variable warning.Brendan Cully
2008-08-18Validate charset names for all charset options.Rocco Rutte
Validation is either done against mutt's table of IANA assigned names or local iconv implementation (based on the assumption that iconv_open(charset,charset) fails if charset is unknown to the implementation). Closes #1668.
2008-08-11Prefer "backtick" over "backtic" on comments and docs as it's more common, ↵Rocco Rutte
closes #3101.