Lines Matching defs:mp
39 make_path(POP *p, MsgInfoList *mp, int new, char *buf, size_t len)
42 new ? "new" : "cur", mp ? "/" : "", mp ? mp->name : "");
46 scan_file(POP *p, MsgInfoList *mp)
53 make_path(p, mp, mp->flags & NEW_FLAG, path, sizeof(path));
68 mp->lines++;
69 mp->length += strlen(buf);
74 parse_header(mp, buf);
77 return add_missing_headers(p, mp);
86 MsgInfoList *mp = p->mlp;
96 mp = realloc(mp, (n_mp + 1) * sizeof(*mp));
97 if(mp == NULL) {
103 memset(mp + n_mp, 0, sizeof(*mp));
104 mp[n_mp].name = strdup(dent->d_name);
105 if(mp[n_mp].name == NULL) {
111 mp[n_mp].number = n_mp + 1;
112 mp[n_mp].flags = 0;
114 mp[n_mp].flags |= NEW_FLAG;
115 e = scan_file(p, &mp[n_mp]);
118 p->drop_size += mp[n_mp].length;
122 p->mlp = mp;
206 pop_maildir_open(POP *p, MsgInfoList *mp)
209 make_path(p, mp, mp->flags & NEW_FLAG, tmp, sizeof(tmp));