9 date 92.12.15.00.20.22; author jromine; state Exp;
14 date 92.01.31.21.54.56; author jromine; state Exp;
19 date 90.04.05.15.31.56; author sources; state Exp;
24 date 90.04.05.14.49.12; author sources; state Exp;
29 date 90.02.06.13.08.59; author sources; state Exp;
34 date 90.02.06.13.05.59; author sources; state Exp;
48 @/* m_maildir.c - get the path for the mail directory */
50 static char ident[] = "@@(#)$Id: m_maildir.c,v 1.5 1992/01/31 21:54:56 jromine Exp jromine $";
57 #define NCWD (sizeof CWD - 1)
61 #define NPWD (sizeof PWD - 1)
64 static char mailfold[BUFSIZ];
66 static char *exmaildir ();
69 char *m_maildir (folder)
70 register char *folder;
75 if ((cp = exmaildir (folder))
76 && (ep = cp + strlen (cp) - 1) > cp
85 char *m_mailpath (folder)
86 register char *folder;
92 || strncmp (folder, CWD, NCWD) == 0
93 || strcmp (folder, DOT) == 0
94 || strcmp (folder, DOTDOT) == 0
95 || strncmp (folder, PWD, NPWD) == 0)
96 cp = path (folder, TFOLDER);
98 (void) strcpy (maildir, mailfold);/* preserve... */
99 cp = getcpy (m_maildir (folder));
100 (void) strcpy (mailfold, maildir);
108 static char *exmaildir (folder)
109 register char *folder;
115 folder = m_getfolder ();
117 || strncmp (folder, CWD, NCWD) == 0
118 || strcmp (folder, DOT) == 0
119 || strcmp (folder, DOTDOT) == 0
120 || strncmp (folder, PWD, NPWD) == 0) {
121 (void) strcpy (mailfold, folder);
126 if ((pp = m_find ("path")) != NULL && *pp) {
128 (void) sprintf (cp, "%s/", mypath);
134 cp = copy (path ("./", TFOLDER), cp);
137 (void) strcpy (cp, folder);
151 static char ident[] = "@@(#)$Id: m_maildir.c,v 1.4 1990/04/05 15:31:56 sources Exp jromine $";
163 static char ident[] = "@@(#)$Id:$";
177 static char ident[] = "$Id:";