projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't call writev() anymore.
[mmh]
/
sbr
/
getfolder.c
diff --git
a/sbr/getfolder.c
b/sbr/getfolder.c
index
21db9a9
..
9a6b18b
100644
(file)
--- a/
sbr/getfolder.c
+++ b/
sbr/getfolder.c
@@
-1,9
+1,10
@@
-
/*
/*
- * getfolder.c -- get the current or default folder
- *
- * $Id$
- */
+** getfolder.c -- get the current or default folder
+**
+** This code is Copyright (c) 2002, by the authors of nmh. See the
+** COPYRIGHT file in the root directory of the nmh distribution for
+** complete copyright information.
+*/
#include <h/mh.h>
#include <h/mh.h>
@@
-11,22
+12,22
@@
char *
getfolder(int wantcurrent)
{
char *
getfolder(int wantcurrent)
{
- register char *folder;
+ register char *folder;
- /*
- * If wantcurrent == 1, then try the current folder first
- */
- if (wantcurrent && (folder = context_find (pfolder)) && *folder != '\0')
- return folder;
+ /*
+ ** If wantcurrent == 1, then try the current folder first
+ */
+ if (wantcurrent && (folder = context_find(pfolder)) && *folder != '\0')
+ return folder;
- /*
- * Else try the Inbox profile entry
- */
- if ((folder = context_find (inbox)) && *folder != '\0')
- return folder;
+ /*
+ ** Else try the Inbox profile entry
+ */
+ if ((folder = context_find(inbox)) && *folder != '\0')
+ return folder;
- /*
- * Else return compile time default.
- */
- return defaultfolder;
+ /*
+ ** Else return compile time default.
+ */
+ return defaultfolder;
}
}