[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nmh-workers] mime-aware filtering?
From: |
Ken Hornstein |
Subject: |
Re: [Nmh-workers] mime-aware filtering? |
Date: |
Mon, 25 Jun 2012 23:02:52 -0400 |
>m_getfld() is the heart of MH.
Truer words have never been spoken; it's used by so much (including the
profile parser).
>so when i say "let's talk about what m_getfld should look like" i really
>mean "let's talk about what MH's storage and access model should be."
>
>int
>m_getfld (int state, unsigned char *name, unsigned char *buf,
> int bufsz, FILE *iob)
Okay ... just shooting from the hip, and based on our discussion back in
January ... here's something (I'm ignoring how this would be implemented
for now, and I'm not defining any of the structures). I hope these
functions would be obvious in operation.
int nmh_openmsg(struct message, messagehandle *, char **error);
int nmh_getheader(messagehandle, const char *, char **header, int *numheaders,
char **error);
int nmh_getmime(messagehandle, mimehandle_ret *, char **error);
int nmh_openmime(mimehandle, char **type, char **subtype,
int *nested, mimehandle_ret *, char **error);
int nmh_nextmime(mimehandle, char **type, char **subtype, int *iterator,
char **error);
int nmh_closemime(mimehandle);
int nmh_closemsg(message);
I'm sure there are problems with this, just wanted to get the ball rolling.
--Ken
- Re: [Nmh-workers] mime-aware filtering?, (continued)
- Re: [Nmh-workers] mime-aware filtering?, Paul Fox, 2012/06/26
- Re: [Nmh-workers] mime-aware filtering?, Anders Eriksson, 2012/06/27
- Re: [Nmh-workers] mime-aware filtering?, Ken Hornstein, 2012/06/25
- Re: [Nmh-workers] mime-aware filtering?, Paul Vixie, 2012/06/25
- Re: [Nmh-workers] mime-aware filtering?, Jon Steinhart, 2012/06/25
- Re: [Nmh-workers] mime-aware filtering?, Paul Vixie, 2012/06/25
- Re: [Nmh-workers] mime-aware filtering?, Jon Steinhart, 2012/06/25
- Re: [Nmh-workers] mime-aware filtering?, Ken Hornstein, 2012/06/25
- Re: [Nmh-workers] mime-aware filtering?, Paul Vixie, 2012/06/25
- Re: [Nmh-workers] mime-aware filtering?, Ken Hornstein, 2012/06/25
- Re: [Nmh-workers] mime-aware filtering?,
Ken Hornstein <=
- Re: [Nmh-workers] mime-aware filtering?, Paul Vixie, 2012/06/26
- Re: [Nmh-workers] mime-aware filtering?, Jeffrey Honig, 2012/06/26
- Re: [Nmh-workers] mime-aware filtering?, Paul Vixie, 2012/06/26
- Re: [Nmh-workers] mime-aware filtering?, Christian Neukirchen, 2012/06/26
- Re: [Nmh-workers] mime-aware filtering?, David Levine, 2012/06/25
- Re: [Nmh-workers] mime-aware filtering?, David Levine, 2012/06/26