projects
/
mmh
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8758071
)
Cleanup in m_draft. There was some confusingly unnecessary code.
author
markus schnalke
<meillo@marmaro.de>
Tue, 13 Dec 2011 13:19:40 +0000
(14:19 +0100)
committer
markus schnalke
<meillo@marmaro.de>
Tue, 13 Dec 2011 13:19:40 +0000
(14:19 +0100)
sbr/m_draft.c
patch
|
blob
|
history
diff --git
a/sbr/m_draft.c
b/sbr/m_draft.c
index
38584e4
..
77ea394
100644
(file)
--- a/
sbr/m_draft.c
+++ b/
sbr/m_draft.c
@@
-22,18
+22,11
@@
m_draft(char *which)
static char buffer[BUFSIZ];
char *folder;
static char buffer[BUFSIZ];
char *folder;
- folder = getcpy(expandfol(draftfolder));
-
- chdir(toabsdir("+"));
- strncpy(buffer, toabsdir(folder), sizeof(buffer));
-
- create_folder(buffer, 0, done);
-
- if (chdir(buffer) == -1)
- adios(buffer, "unable to change directory to");
-
- if (!(mp = folder_read(folder)))
+ folder = getcpy(toabsdir(draftfolder));
+ create_folder(folder, 0, done);
+ if (!(mp = folder_read(folder))) {
adios(NULL, "unable to read folder %s", folder);
adios(NULL, "unable to read folder %s", folder);
+ }
/*
** Make sure we have enough message status space for all
/*
** Make sure we have enough message status space for all