projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
move the last crypt-* things into lib-crypt, adapt configure.ac
[apps/madmutt.git]
/
init.c
diff --git
a/init.c
b/init.c
index
fd047b6
..
6545888
100644
(file)
--- a/
init.c
+++ b/
init.c
@@
-22,8
+22,9
@@
#include <lib-lib/buffer.h>
#include <lib-lib/mapping.h>
#include <lib-lib/buffer.h>
#include <lib-lib/mapping.h>
+#include <lib-ui/curses.h>
+
#include "mutt.h"
#include "mutt.h"
-#include "mutt_curses.h"
#include "history.h"
#include "keymap.h"
#include "mbyte.h"
#include "history.h"
#include "keymap.h"
#include "mbyte.h"
@@
-263,15
+264,15
@@
static void sys_to_string (char* dst, size_t dstlen,
char *val = NULL, *t = NULL;
int clean = 0;
char *val = NULL, *t = NULL;
int clean = 0;
- /* get some $m
uttng
_ values dynamically */
- if (ascii_strcmp ("m
uttng
_pwd", option->option) == 0) {
+ /* get some $m
admutt
_ values dynamically */
+ if (ascii_strcmp ("m
admutt
_pwd", option->option) == 0) {
val = p_new(char, _POSIX_PATH_MAX);
val = getcwd (val, _POSIX_PATH_MAX-1);
clean = 1;
val = p_new(char, _POSIX_PATH_MAX);
val = getcwd (val, _POSIX_PATH_MAX-1);
clean = 1;
- } else if (ascii_strcmp ("m
uttng
_folder_path", option->option) == 0 &&
+ } else if (ascii_strcmp ("m
admutt
_folder_path", option->option) == 0 &&
CurrentFolder && *CurrentFolder) {
val = CurrentFolder;
CurrentFolder && *CurrentFolder) {
val = CurrentFolder;
- } else if (ascii_strcmp ("m
uttng
_folder_name", option->option) == 0 &&
+ } else if (ascii_strcmp ("m
admutt
_folder_name", option->option) == 0 &&
CurrentFolder && *CurrentFolder) {
ssize_t Maildirlength = m_strlen(Maildir);
CurrentFolder && *CurrentFolder) {
ssize_t Maildirlength = m_strlen(Maildir);
@@
-2006,7
+2007,7
@@
static int parse_set (BUFFER * tmp, BUFFER * s, unsigned long data,
break;
}
break;
}
- /* the $m
uttng
_ variables are read-only */
+ /* the $m
admutt
_ variables are read-only */
if (!FuncTable[DTYPE (option->type)].opt_from_string) {
snprintf (err->data, err->dsize, _("$%s is read-only"),
option->option);
if (!FuncTable[DTYPE (option->type)].opt_from_string) {
snprintf (err->data, err->dsize, _("$%s is read-only"),
option->option);
@@
-2702,7
+2703,6
@@
void mutt_init (int skip_sys_rc, LIST * commands)
p = "vi";
}
Editor = m_strdup(p);
p = "vi";
}
Editor = m_strdup(p);
- Visual = m_strdup(p);
if ((p = getenv ("REPLYTO")) != NULL) {
BUFFER buf, token;
if ((p = getenv ("REPLYTO")) != NULL) {
BUFFER buf, token;
@@
-2763,18
+2763,18
@@
void mutt_init (int skip_sys_rc, LIST * commands)
if (!Muttrc) {
#if 0
if (!Muttrc) {
#if 0
- snprintf (buffer, sizeof(buffer), "%s/.m
uttng
rc-%s", NONULL (Homedir),
+ snprintf (buffer, sizeof(buffer), "%s/.m
admutt
rc-%s", NONULL (Homedir),
MUTT_VERSION);
if (access (buffer, F_OK) == -1)
#endif
MUTT_VERSION);
if (access (buffer, F_OK) == -1)
#endif
- snprintf (buffer, sizeof(buffer), "%s/.m
uttng
rc", NONULL (Homedir));
+ snprintf (buffer, sizeof(buffer), "%s/.m
admutt
rc", NONULL (Homedir));
if (access (buffer, F_OK) == -1)
#if 0
if (access (buffer, F_OK) == -1)
#if 0
- snprintf (buffer, sizeof(buffer), "%s/.m
uttng/muttng
rc-%s",
+ snprintf (buffer, sizeof(buffer), "%s/.m
admutt/madmutt
rc-%s",
NONULL (Homedir), MUTT_VERSION);
if (access (buffer, F_OK) == -1)
#endif
NONULL (Homedir), MUTT_VERSION);
if (access (buffer, F_OK) == -1)
#endif
- snprintf (buffer, sizeof(buffer), "%s/.m
uttng/muttng
rc",
+ snprintf (buffer, sizeof(buffer), "%s/.m
admutt/madmutt
rc",
NONULL (Homedir));
default_rc = 1;
NONULL (Homedir));
default_rc = 1;
@@
-2792,15
+2792,15
@@
void mutt_init (int skip_sys_rc, LIST * commands)
/* Process the global rc file if it exists and the user hasn't explicity
requested not to via "-n". */
if (!skip_sys_rc) {
/* Process the global rc file if it exists and the user hasn't explicity
requested not to via "-n". */
if (!skip_sys_rc) {
- snprintf (buffer, sizeof(buffer), "%s/M
uttng
rc-%s", SYSCONFDIR,
+ snprintf (buffer, sizeof(buffer), "%s/M
admutt
rc-%s", SYSCONFDIR,
MUTT_VERSION);
if (access (buffer, F_OK) == -1)
MUTT_VERSION);
if (access (buffer, F_OK) == -1)
- snprintf (buffer, sizeof(buffer), "%s/M
uttng
rc", SYSCONFDIR);
+ snprintf (buffer, sizeof(buffer), "%s/M
admutt
rc", SYSCONFDIR);
if (access (buffer, F_OK) == -1)
if (access (buffer, F_OK) == -1)
- snprintf (buffer, sizeof(buffer), "%s/M
uttng
rc-%s", PKGDATADIR,
+ snprintf (buffer, sizeof(buffer), "%s/M
admutt
rc-%s", PKGDATADIR,
MUTT_VERSION);
if (access (buffer, F_OK) == -1)
MUTT_VERSION);
if (access (buffer, F_OK) == -1)
- snprintf (buffer, sizeof(buffer), "%s/M
uttng
rc", PKGDATADIR);
+ snprintf (buffer, sizeof(buffer), "%s/M
admutt
rc", PKGDATADIR);
if (access (buffer, F_OK) != -1) {
if (source_rc (buffer, &err) != 0) {
fputs (err.data, stderr);
if (access (buffer, F_OK) != -1) {
if (source_rc (buffer, &err) != 0) {
fputs (err.data, stderr);