+/*
+ * Determine if the passed address is a local "send to file" address.
+ * If any of the network metacharacters precedes any slashes, it can't
+ * be a filename. We cheat with .'s to allow path names like ./...
+ */
+isfileaddr(name)
+ char *name;
+{
+ register char *cp;
+ extern char *metanet;
+
+ if (any('@', name))
+ return(0);
+ if (*name == '+')
+ return(1);
+ for (cp = name; *cp; cp++) {
+ if (*cp == '.')
+ continue;
+ if (any(*cp, metanet))
+ return(0);
+ if (*cp == '/')
+ return(1);
+ }
+ return(0);
+}
+