-/*
-** Return the Return-Path and Delivery-Date header information.
-**
-** Currently, I'm assuming that the "From " line takes the following form:
-** "From" sender@host date (sendmail delivery)
-*/
-int
-get_returnpath(char *rp, int rplen, char *dd, int ddlen)
-{
- char *cp;
-
- if (!(cp = strchr(fromline, ' '))) {
- return 0;
- }
- /* Extract the Return-Path. */
- snprintf(rp, rplen, "%.*s\n", (int)(cp - fromline), fromline);
- /* Advance over the whitespace. */
- while (*cp == ' ' || *cp == '\t') {
- cp++;
- }
- /* Extract the Delivery-Date. */
- snprintf(dd, ddlen, "%.*s\n", 24, cp);
- *fromline = '\0';
- return 1;
-}
-
-