#include <errno.h>
#include <setjmp.h>
#include <signal.h>
-#include <zotnet/mts/mts.h>
-#include <zotnet/tws/tws.h>
+#include <h/mts.h>
+#include <h/tws.h>
#include <h/mime.h>
#include <h/mhparse.h>
unsigned long bits;
unsigned char value, *b, *b1, *b2, *b3;
char *cp, *ep, buffer[BUFSIZ];
+ /* sbeck -- handle prefixes */
+ CI ci;
CE ce;
MD5_CTX mdContext;
ce->ce_unlink = 0;
}
+ /* sbeck@cise.ufl.edu -- handle suffixes */
+ ci = &ct->c_ctinfo;
+ snprintf (buffer, sizeof(buffer), "%s-suffix-%s/%s",
+ invo_name, ci->ci_type, ci->ci_subtype);
+ cp = context_find (buffer);
+ if (cp == NULL || *cp == '\0') {
+ snprintf (buffer, sizeof(buffer), "%s-suffix-%s", invo_name,
+ ci->ci_type);
+ cp = context_find (buffer);
+ }
+ if (cp != NULL && *cp != '\0')
+ ce->ce_file = add (cp, ce->ce_file);
+
if ((ce->ce_fp = fopen (ce->ce_file, "w+")) == NULL) {
content_error (ce->ce_file, ct, "unable to fopen for reading/writing");
return NOTOK;
char buffer[BUFSIZ];
unsigned char mask;
CE ce;
+ /* sbeck -- handle prefixes */
+ CI ci;
MD5_CTX mdContext;
ce = ct->c_cefile;
ce->ce_unlink = 0;
}
+ /* sbeck@cise.ufl.edu -- handle suffixes */
+ ci = &ct->c_ctinfo;
+ snprintf (buffer, sizeof(buffer), "%s-suffix-%s/%s",
+ invo_name, ci->ci_type, ci->ci_subtype);
+ cp = context_find (buffer);
+ if (cp == NULL || *cp == '\0') {
+ snprintf (buffer, sizeof(buffer), "%s-suffix-%s", invo_name,
+ ci->ci_type);
+ cp = context_find (buffer);
+ }
+ if (cp != NULL && *cp != '\0')
+ ce->ce_file = add (cp, ce->ce_file);
+
+ if ((ce->ce_fp = fopen (ce->ce_file, "w+")) == NULL) {
+ content_error (ce->ce_file, ct, "unable to fopen for reading/writing");
+ return NOTOK;
+ }
+
if ((ce->ce_fp = fopen (ce->ce_file, "w+")) == NULL) {
content_error (ce->ce_file, ct, "unable to fopen for reading/writing");
return NOTOK;
{
int cc, fd, len;
char buffer[BUFSIZ];
+ /* sbeck -- handle prefixes */
+ char *cp;
+ CI ci;
CE ce;
ce = ct->c_cefile;
ce->ce_unlink = 0;
}
+ /* sbeck@cise.ufl.edu -- handle suffixes */
+ ci = &ct->c_ctinfo;
+ snprintf (buffer, sizeof(buffer), "%s-suffix-%s/%s",
+ invo_name, ci->ci_type, ci->ci_subtype);
+ cp = context_find (buffer);
+ if (cp == NULL || *cp == '\0') {
+ snprintf (buffer, sizeof(buffer), "%s-suffix-%s", invo_name,
+ ci->ci_type);
+ cp = context_find (buffer);
+ }
+ if (cp != NULL && *cp != '\0')
+ ce->ce_file = add (cp, ce->ce_file);
+
if ((ce->ce_fp = fopen (ce->ce_file, "w+")) == NULL) {
content_error (ce->ce_file, ct, "unable to fopen for reading/writing");
return NOTOK;