Lines Matching refs:mip
177 detach_open_target(struct mime_info *mip)
189 partstr = mip->mi_partstr && mip->mi_partstr[0] ? mip->mi_partstr : "0";
190 subtype = mip->mi_subtype ? mip->mi_subtype : "unknown";
195 if (mip->mi_filename != NULL)
196 (void)sasprintf(&pathname, "%s/%s", mip->mi_detachdir,
197 mip->mi_filename);
199 if (mip->mi_detachall == 0)
203 mip->mi_detachdir, mip->mi_msgstr,
251 mime_detach_parts(struct mime_info *mip)
256 if (mip->mi_ignore_body || mip->mp->m_blines == 0)
259 if ((dec = mime_fio_decoder(mip->mi_encoding)) == NULL &&
263 if ((pathname = detach_open_target(mip)) == NULL)
273 mime_run_function(dec, pipe_end(mip), NULL);
275 run_decoder(mip, dec);
277 return pipe_end(mip);
286 mime_detach_msgnum(struct mime_info *mip, const char *msgstr)
288 for (/*EMPTY*/; mip; mip = mip->mi_flink)
289 mip->mi_msgstr = msgstr;