summaryrefslogtreecommitdiffstats
path: root/curs_main.c
AgeCommit message (Collapse)Author
2007-05-15Jump to the next *sub*-thread when tag-subthread is invoked,Thomas Roessler
not to the next thread.
2007-05-07Rename next-folder to next-unread-mailbox. Remove default binding.Brendan Cully
2007-05-02Add next-folder commandN.J. Mann
2007-03-22Fix update_index().Thomas Roessler
2007-03-20Enlarge help string buffersRocco Rutte
Even on 80x25 terminals, SHORT_STRING (128 byte) may not be enough so use LONG_STRING (1k) as STRING (256 byte) may well be too short for wider terminals. Closes debian #4152777.
2006-08-15Generic ACL support.Rocco Rutte
2006-06-08Clean up ReleaseDate mess; include ReleaseDate in User-AgentThomas Roessler
header.
2006-04-05(1) OP_MAIN_LINK_THREADS needs to check for IMAP_ACL_DELETE permission,Phil Pennock
since the thread linking involves deleting the old email (2) makes CHECK_IMAP_ACL() a no-op if USE_IMAP is not defined; then cleans up a bunch of the #ifdef litter.
2006-03-28imap-fetch-mail should check that there is a Context before dereferencingMike Hallock
Context->magic to avoid a segfault possibility.
2005-11-24mutt/2142 suggests that the change from pattern.c,3.14 -> 3.15Thomas Roessler
causes inconsistency and confusion. Reverting the change; adding a helpful message to the status line.
2005-10-04Piping and printing in IMAP folder index with imap_peek=no marks messageAlain Bench
read immediatly.
2005-09-21Check for sigwinch in index before calling km_dokey, since for unknownAdeodato Simó
reasons km_dokey seems to eat the signal in some cases. [Not reproducible in my ncurses environments - Brendan]. Closes: #1907.
2005-09-21Cancelling <change-folder> from within the pager will now keep you in theBrendan Cully
pager rather than kicking you back to the index. Closes: #2075.
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-09-06Move SASL and IMAP shutdown hooks into main where they belong.Brendan Cully
2005-09-06Release global SASL state when quitting.Brendan Cully
2005-09-04Allow empty limits, and limits in empty mailboxes. Closes: #1853, #1906.Alain Bench
2005-08-05Move some attachment-related prototypes and structures into attach.hBrendan Cully
from the global headers. A small step towards sane dependency tracking and code cleanliness.
2005-07-30When using colors, the status line of the index is displayed in aVincent Lefevre
>bright color, even when the prefix "bright" is *not* given in the foreground color. The problem occurs when I have the following additional line: color normal brightwhite black The problem is that BKGDSET's are missing.
2005-07-24Add thread editing commands.Cedric Duval
2005-07-23This is the current shortcut patch patch by Byrial Ole JensenByrial Jensen
<byrial@image.dk>, updated by Christoph Berg <cb@df7cb.de>.
2005-06-12Add $braille_friendly. Behavior originally suggested by SébastienThomas Roessler
Hinderer <Sebastien.Hinderer@libertysurf.fr>.
2005-02-28Fix a crash.Mads Martin Joergensen
2005-02-12pgp-auto-decode: When $pgp_auto_decode is set, then mutt will checkDerek Martin
for traditional pgp on certain operations. This is similar (but NOT identical) to the behavior known from PGP/MIME messages.
2005-02-03Add config.h to the top of every C file that could possibly want it.Brendan Cully
Remove it from mutt.h
2005-01-27this patch doesn't raise an error if you try to sync an empty mailboxThomas Glanzmann
which makes it possible to use such a macro as this on an empty mailbox: macro index y "<sync-mailbox><change-folder>?" macro pager y "<sync-mailbox><change-folder>?"
2004-04-12A belated fix for #1808 (Debian #233106): Make sureThomas Roessler
check-traditional-pgp doesn't leave the pager context unnecessarily. This makes message-hooks like this one safe: message-hook '!(~g|~G) ~b"^-----BEGIN\ PGP\ (SIGNED\ )?MESSAGE"' \ "exec check-traditional-pgp"
2003-09-03The commands "read-thread" (^R) and "read-subthread" (Esc-R) do notAnatoly Vorobey
honor the resolve variable (don't advance cursor after marking the thread/subthread as read), which, to me at least, is a nuisance.
2003-07-15The attached patch should keep all opened IMAP connections alive, noBrendan Cully
matter what mailbox you are currently in. With the patch that got committed yesterday, this should close bug 1523. (There was a typo in that patch. This one supersedes it.)
2003-07-04Introduce tag-prefix-cond and end-cond. This makes simpleNicolas Rachinsky
conditional execution of parts of macros possible.
2003-07-04Display an empty index when no messages match search criteria.Bruno Postle
2003-04-02Here is the patch to fix the bug I reported earlier in this thread,Gary Johnson
that sometimes when changing folders, mutt would generate an error message and stop the further processing of folder-hooks.
2003-01-23The attached patch provides improved support for IMAP ACLs (onNathan Dushman
servers that support them). This means that mutt will now write the Seen flag in mailboxes that allow it, even if the mailbox doesn't allow other changes.
2003-01-21- To cleanup the pgp/smime code and prepare for other backends.Werner Koch
- Support gpg-agent by not asking for a passphrase - autconf cleanups. This is just a start and probably we need a couple of other things to do. One drawback is that the help menu does always list all crypto realted stuff even when configured for no crypto at all. Same goes for the configure options but I consider thsi a feature: It allows to use the same .muttrc for different versions of mutt - at least during development, this is an advantage. This all might be fixed but requires some changes to the configuration system. Note, the use of the WithCrypto macro - it enables the compiler to do dead-code-elimination depending on the configured backend. This is better readable than all the nested ifdefs. I did some short tests and it seems to work, althoug mutt's size does not change largely when compiled w/o crypto. cryptglue.c is new as a warpper to all crypto calls; some are still in crypt.c but they should eventually also be wrapped. We don't use function pointers to keep a path to use dlopen or runtime configured backends. crypt.h is also new and replaces pgp.h and smime.h in most files (except for the backend). 2003-01-06 Werner Koch <wk@gnupg.org> * crypt.c (crypt_valid_passphrase): Detect gpg-agent and don't ask for the passphrase. * pgp.c (pgp_decrypt_part, pgp_application_pgp_handler) (pgp_sign_message, pgp_encrypt_message) (pgp_traditional_encryptsign): Make sure that we never ever send the passphrase if the gpg-agent has been detected. Likewise. * acconfig.h: Removed all remaining stuff as AC_TEMPLATEs to configure.in. BTW, we should consider to rename configure.in to configure.ac. 2003-01-04 Werner Koch <wk@gnupg.org> Replaced the use of HAVE_PGP and HAVE_SMIME by a more readable and extendable solution. * pgplib.h: Moved enum pgp_ring and KEYFLAGS_* to * crypt.h: here. * smime.c (mutt_is_application_smime): Moved to * crypt.c (mutt_is_application_smime): here. * pgp.c (mutt_is_application_pgp): Moved to * crypt.c (mutt_is_application_pgp): here. * pgp.c (pgp_is_multipart_encrypted): Removed. Merged code with * crypt.c (mutt_is_multipart_encrypted): this. * mutt.h: Protect against double inclusion. * pgplib.h (struct pgp_keyinfo): Remove the typedef to pgp_key_t. * crypt.h (pgp_key_t): Declare the typedef here. NOTE: This is now a pointer. Changed all usages accordingly. * configure.in: Replace HAVE_PGP and HAVE_SMIME by the new CRYPT_BACKEND macros. Always include all OPS.*. (LIBOBJ): Replaced by AC_LIBOBJ as required by newer autoconfs. * Makefile.am (EXTRA_mutt_SOURCES): Move crypt.c to mutt_SOURCES. (mutt_SOURCES): Add cryptglue.c (EXTRA_DIST): Add crypt.h * pgp.h, pgplib.h, smime.h: Use the header only when the approriate backend has been configured. * pgp.c, pgpkey.c, smime.c: Build only if the approriate CRYPT_BACKEND_ macro is defined. * pgp.h, smime.h, global.h: Moved all variable declarations to global.h because they are now always defined. * sort.h: Always define PgpSortKey, although it does not belong to here. * keymap.h: Unconditionally include all PGP and SMIME stuff. * mutt.h: Ditto. * protos.h: Ditto. * init.h (HAVE_SMIME): Unconditionally include all crypto related definitions. Mark the doc entries with "(Crypto/PGP/SMIME only)". * globals.h: Replace gpg.h and smime.h by crypt.h. * functions.h: Always include all crypto commands. * copy.h: Unconditionally define the crypto related M_CM_ * pgplib.h: Move APPLICATION_PGP and PGP* to crypt.h and include it. * smime.h: Move APPLICATION_SMIME and SMIME* to crypt.h and include it. * mutt_crypt.h (ENCRYPT,SIGN,GOODSIGN, BADSIGN): Move to crypt.h. * crypt.c: Replaced pgp.h and smime.h header by crypt.h. Always include all functions but shortcut them depending on WITHCRYPTO. All over the place use WITHCRYPTO instead of ifdefs. Replaced all direct calls of the backend fucntions by twrapper functions defined in cryptglue.c (crypt_get_keys): Removed prototypes. * pgp.h (pgp_findKeys): New prototype. * smime.h (smime_findKeys): New prototype. * cryptglue.c: New. * crypt.h: New. * mutt_crypt.h: Moved all crypt_* prototypes to gcrypt.h. Unconditionally use this file. * init.c: Replaced pgp.h and smime.h header by crypt.h. (parse_set): Use WITHCRYPTO instead of ifdefs. (mutt_var_value_complete): Ditto. * sendlib.c: Replaced pgp.h and smime.h header by crypt.h. (write_as_text_part): Now one macro using WITHCRYPTO. (mutt_write_mime_body): Use WITHCRYPTO instead of ifdefs. (mutt_make_message_attach): Ditto. (mutt_write_fcc): Ditto. * send.c: Replaced pgp.h and smime.h header by crypt.h. (include_forward): Use WITHCRYPTO and validate passphrases for pgp and smime. (include_reply): Ditto. (generate_body): Use WITHCRYPTO instead of ifdefs. (ci_send_message): Ditto. * recvattach.c: Replaced pgp.h and smime.h header by crypt.h. (mutt_gen_attach_list): Use WITHCRYPTO instead of ifdefs. (mutt_attach_display_loop): Ditto (mutt_view_attachments): Ditto. * postpone.c: Replaced pgp.h and smime.h header by crypt.h. (mutt_get_postponed): Use WITHCRYPTO instead of ifdefs. (mutt_parse_crypt_hdr): Always include and use WITHCRYPTO instead of ifdefs. (mutt_prepare_template): Use WITHCRYPTO instead of ifdefs. * pop.c: Removed pgp.h and smime.h. (pop_fetch_message): Use WITHCRYPTO instead of ifdefs. * pattern.c: Replaced pgp.h and smime.h header by crypt.h. (Flags): Always include the crypto flags. (msg_search): Use WITHCRYPTO instead of ifdefs. (mutt_pattern_exec): Ditto. * parse.c: Removed pgp.h and smime.h. (mutt_parse_mime_message): Use WITHCRYPTO instead of ifdefs. * pager.c: Replaced pgp.h and smime.h header by crypt.h. (mutt_pager): Use WITHCRYPTO instead of ifdefs. * mx.c: Removed smime.h and pgp.h. (mx_update_context): Use WITHCRYPTO instead of ifdefs. * muttlib.c: Replaced pgp.h and smime.h header by crypt.h. (mutt_needs_mailcap): Use WITHCRYPTO. Note, that there used to be an error when PGP was not configured so that TYPEAPPLICATION was not recognized for SMIME. (mutt_is_text_part): Use WITHCRYPTO instead of ifdefs. * main.c: Include crypt.h. (show_version): Remove HAVE_PGP and HAVE_SMIME. Add CRYPT_BACKEND_CLASSIC_PGP, CRYPT_BACKEND_CLASSIC_SMIME. * keymap.c: Include crypt.h so that we can test WITHCRYPTO. (Menus): Always include pgp and smime. (km_init): Create smime and pgp bindings depending on WITHCRYPTO. (km_get_table): Return OpPgp depending on WITHCRYPTO. * hook.c (mutt_parse_hook): Use WITHCRYPTO instead of ifdefs. (mutt_crypt_hook): Always include. * headers.c: Replaced pgp.h and smime.h header by crypt.h. (mutt_edit_headers): Use WITHCRYPTO instead of ifdefs * hdrline.c: Replaced pgp.h and smime.h header by crypt.h. (hdr_format_str): Use WITHCRYPTO. * handler.c: Replaced pgp.h and smime.h header by crypt.h. (mutt_can_decode): Use WITHCRYPTO instead of ifdefs. (mutt_can_decode): Application/smime is now also checked when PGP support is not configured. (mutt_body_handler): Use WITHCRYPTO * curs_main.c: Replaced pgp.h and smime.h header by crypt.h. (mutt_index_menu): Shortcut crypto only operations depending on WITHCRYPTO. * copy.c: Replaced pgp.h and smime.h header by crypt.h. (_mutt_copy_message): * compose.c: Replaced pgp.h and smime.h header by crypt.h. (enum): Always include HDR_CRYPT and HDR_CRYPTINFO. (redraw_crypt_lines): Always include this fnc but shortcut it depending on WITHCRYPT. Draw lines depending on the configured crypto support. (pgp_send_menu): Always include this one. Call wrapper functions. (smime_send_menu): Likewise. (draw_envelope): Use WITHCRYPTO instead of ifdefs. (mutt_compose_menu): Allow pgp/smime commands only when configured. * commands.c: Replaced pgp.h and smime.h header by crypt.h. (mutt_display_message,pipe_msg, _mutt_pipe_message) (set_copy_flags, mutt_save_message, mutt_edit_content_type) (_mutt_check_traditional_pgp): Use pgp wrapper. * attach.c (mutt_view_attachment): Removed HAVE_GPG and HAVE_SMIME and replaced by global variable WITHCRYPTO. Replaced pgp and smime header by crypt.h.x
2002-12-21OK, Michael is right: Gotos suck. ;-)Thomas Roessler
2002-12-17Experimental: Introduce {next,previous}-new-then-unread. TheseThomas Roessler
functions behave like {next,previous}-new as long as new messages are visible. When no new messages are visibuel any more, there's a fall-back to {next,prev}-unread. Memo to self: Impose a weekly quota on the use of goto statements.
2002-12-11Fix Mike's and my e-mail addresses in copyright lines.Thomas Roessler
2002-12-10Replace safe_free calls by the FREE macro.Thomas Roessler
2002-12-09This patch adds two features to mutt:Michael Elkins
- you can now specify the octal code of a key in a bind or macro function, using the syntax <NNN>. Eg, bind index <541> show-version This allows you to bind to a function key for which Mutt doesn't have a friendly name associated with it. - adds a what-key function which allows you to press a key and have mutt show you the decimal/octal value. (not bound to anything by default)
2002-11-11Fix #1310; redraw problems.Michael Elkins
2002-09-09Add a buffy-list function, and display more information when newRudi Chiarito
mail arrives. With some modifications from tlr.
2002-02-28$narrow_tree; fater redrawing when changing tree options. FromThomas Roessler
Daniel Eisenbud.
2002-01-24S/MIME support. From Oliver Ehli <elmy@acm.org> and Mike SchiraldiThomas Roessler
<raldi@research.netsol.com>.
2002-01-16patch-1.3.25-de-new_threads.1Thomas Roessler
2001-11-08patch-1.3.23.1-de-new_threads.3-4Thomas Roessler
2001-10-31Advanced threading, v 5.1. From Daniel EisenbudThomas Roessler
<eisenbud@cs.swarthmore.edu>.
2001-10-17Fix #829.Thomas Roessler
2001-10-17Fix CURHDR confusion. Mutt should compile now. (Sorry for notThomas Roessler
committing this earlier.)
2001-10-15AIX portability patch. Suggested by Jan ChrillesenThomas Roessler
<jan@chrillesen.dk>.