* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
if (!s || !(t = strchr (s, ':')))
return U_UNKNOWN;
if ((t - s) + 1 >= sizeof (sbuf))
return U_UNKNOWN;
if (!s || !(t = strchr (s, ':')))
return U_UNKNOWN;
if ((t - s) + 1 >= sizeof (sbuf))
return U_UNKNOWN;
/* ciss_parse_userhost: fill in components of ciss with info from src. Note
* these are pointers into src, which is altered with '\0's. Port of 0
* means no port given. */
/* ciss_parse_userhost: fill in components of ciss with info from src. Note
* these are pointers into src, which is altered with '\0's. Port of 0
* means no port given. */
/* url_parse_ciss: Fill in ciss_url_t. char* elements are pointers into src,
* which is modified by this call (duplicate it first if you need to). */
/* url_parse_ciss: Fill in ciss_url_t. char* elements are pointers into src,
* which is modified by this call (duplicate it first if you need to). */
ciss->path = ciss_parse_userhost (ciss, tmp);
url_pct_decode (ciss->path);
ciss->path = ciss_parse_userhost (ciss, tmp);
url_pct_decode (ciss->path);
-int url_ciss_tostring (ciss_url_t* ciss, char* dest, size_t len, int flags)
+int url_ciss_tostring (ciss_url_t * ciss, char *dest, size_t len, int flags)
snprintf (dest, len, "%s:", mutt_getnamebyvalue (ciss->scheme, UrlMap));
snprintf (dest, len, "%s:", mutt_getnamebyvalue (ciss->scheme, UrlMap));
- snprintf (dest, len, "%s:%s@", ciss->user, ciss->pass);
+ snprintf (dest, len, "%s:%s@", ciss->user, ciss->pass);
- snprintf (dest, len, "%s@", ciss->user);
+ snprintf (dest, len, "%s@", ciss->user);
e->to = rfc822_parse_adrlist (e->to, tmp);
tag = headers ? strtok (headers, "&") : NULL;
e->to = rfc822_parse_adrlist (e->to, tmp);
tag = headers ? strtok (headers, "&") : NULL;
taglen = strlen (tag);
/* mutt_parse_rfc822_line makes some assumptions */
snprintf (scratch, sizeof (scratch), "%s: %s", tag, value);
scratch[taglen] = '\0';
taglen = strlen (tag);
/* mutt_parse_rfc822_line makes some assumptions */
snprintf (scratch, sizeof (scratch), "%s: %s", tag, value);
scratch[taglen] = '\0';
SKIPWS (value);
mutt_parse_rfc822_line (e, NULL, scratch, value, 1, 0, 0, &last);
}
}
SKIPWS (value);
mutt_parse_rfc822_line (e, NULL, scratch, value, 1, 0, 0, &last);
}
}