and attach_ignore_fundamental stripped, some debugging code
removed, some bones thrown to check_sec.sh.
+2005-10-10 18:26:31 Brendan Cully <brendan@kublai.com> (brendan)
+
+ * pgp.c: Make PGP decode failure non-fatal when displaying
+ messages (as opposed to decode-saving them). I think it would be
+ nicer to include the original text when decryption fails
+ though...
+
+ * imap/command.c, setenv.c: Accept + as IMAP continuation, not
+ just + . May close #2106. Feed check_sec candy in setenv.c.
+
+2005-10-09 20:53:21 Brendan Cully <brendan@kublai.com> (brendan)
+
+ * configure.in: Now that we always check for ncurses/ncurses.h,
+ remove /usr special case.
+
+ * configure.in, mutt_curses.h: Tweak ncurses autoconflation to
+ check for ncurses/ncurses.h everywhere, not just in /usr. With
+ --with-curses=/usr/local, should Close: #2095.
+
+ * configure.in, setenv.c: Add Russ Allbery's setenv replacement
+ function.
+
+ * init.h: Correct doc nit for $meta_key, noted by Mark
+ Weyer. Closes: #2105.
+
+2005-10-06 06:15:00 Brendan Cully <brendan@kublai.com> (brendan)
+
+ * browser.c: Sort browser entries after every IMAP browsing
+ operation instead of just when explicitly requested. Closes:
+ #2089.
+
+2005-10-06 05:13:55 Jeff Ito <jeffi@rcn.com> (brendan)
+
+ * smime.c: Add AES ciphers to S/MIME encryption options. Closes:
+ #2103.
+
+2005-10-05 19:24:40 David Champion <dgc@uchicago.edu> (brendan)
+
+ * doc/manual.xml.head, init.c: Fix 'unattachments'. Closes: #2102.
+
+2005-10-05 19:20:22 Jeff Ito <jeffi@rcn.com> (brendan)
+
+ * smime.c: S/MIME key selection truncates the last character of
+ the selected key for no apparent reason. Removed until someone
+ can justify it. Closes: #2081.
+
+2005-10-04 19:00:05 Brendan Cully <brendan@kublai.com> (brendan)
+
+ * init.h: Tweak description of pop_checkinterval slightly. Closes:
+ #2074.
+
+ * hcache.c: Bump hcache Id for attachment counting patch.
+
+2005-10-04 06:05:39 David Champion <dgc@uchicago.edu> (brendan)
+
+ * Muttrc.head.in, doc/manual.xml.head, doc/muttrc.man.head,
+ globals.h, hdrline.c, init.c, init.h, mime.h, mutt.h, parse.c,
+ pattern.c, protos.h, recvattach.c: Attachment counting for index
+ display (patch-1.5.11.dgc.attach.6). Modifications: attach_recurse
+ and attach_ignore_fundamental stripped, some debugging code
+ removed, some bones thrown to check_sec.sh.
+
2005-10-04 05:24:00 Sebastien Hinderer <Sebastien.Hinderer@libertysurf.fr> (brendan)
* pager.c: The following patch has an effect only when the
}
int pgp_use_gpg_agent (void) {
- char *tty, *ttybuf;
+ char *tty;
if (!option (OPTUSEGPGAGENT) || !getenv ("GPG_AGENT_INFO"))
return 0;
- if ((tty = ttyname(0)) &&
- ((ttybuf = mem_malloc (sizeof("GPG_TTY") + strlen(tty) + 1)))) {
- snprintf (ttybuf, sizeof (ttybuf), "GPG_TTY=%s", tty);
- putenv (ttybuf);
- }
+ if ((tty = ttyname(0)))
+ setenv ("GPG_TTY", tty, 0);
return 1;
}
}
/* treat empty result as sign of failure */
+ /* TODO: maybe on failure mutt should include the original undecoded text. */
if (pgpout) {
rewind (pgpout);
c = fgetc (pgpout);
mutt_error _("Could not decrypt PGP message");
mutt_sleep (1);
pgp_void_passphrase ();
- rc = -1;
- goto out;
+ if (!(s->flags & M_DISPLAY)) {
+ rc = -1;
+ goto out;
+ }
}
}
--- /dev/null
+/* $Id$
+**
+** Replacement for a missing setenv.
+**
+** Written by Russ Allbery <rra@stanford.edu>
+** This work is hereby placed in the public domain by its author.
+**
+** Provides the same functionality as the standard library routine setenv
+** for those platforms that don't have it.
+*/
+
+#include "config.h"
+
+#include <stdlib.h>
+#include <string.h>
+
+int
+setenv(const char *name, const char *value, int overwrite)
+{
+ char *envstring;
+
+ if (!overwrite && getenv(name) != NULL)
+ return 0;
+
+ /* Allocate memory for the environment string. We intentionally don't
+ use concat here, or the xmalloc family of allocation routines, since
+ the intention is to provide a replacement for the standard library
+ function which sets errno and returns in the event of a memory
+ allocation failure. */
+ envstring = malloc(strlen(name) + 1 + strlen(value) + 1); /* __MEM_CHECKED__ */
+ if (envstring == NULL)
+ return -1;
+
+ /* Build the environment string and add it to the environment using
+ putenv. Systems without putenv lose, but XPG4 requires it. */
+ strcpy(envstring, name); /* __STRCPY_CHECKED__ */
+ strcat(envstring, "="); /* __STRCAT_CHECKED__ */
+ strcat(envstring, value); /* __STRCAT_CHECKED__ */
+ return putenv(envstring);
+
+ /* Note that the memory allocated is not freed. This is intentional;
+ many implementations of putenv assume that the string passed to
+ putenv will never be freed and don't make a copy of it. Repeated use
+ of this function will therefore leak memory, since most
+ implementations of putenv also don't free strings removed from the
+ environment (due to being overwritten). */
+}