Mercurial > masqmail
comparison src/spool.c @ 349:b45dc53f2829
Removed unused second arg of msg_spool_read()
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Thu, 14 Jul 2011 11:38:23 +0200 |
parents | d04894d0fc64 |
children | 41958685480d |
comparison
equal
deleted
inserted
replaced
348:a7a387253b2f | 349:b45dc53f2829 |
---|---|
199 fclose(in); | 199 fclose(in); |
200 return TRUE; | 200 return TRUE; |
201 } | 201 } |
202 | 202 |
203 message* | 203 message* |
204 msg_spool_read(gchar * uid, gboolean do_readdata) | 204 msg_spool_read(gchar * uid) |
205 { | 205 { |
206 message *msg; | 206 message *msg; |
207 gboolean ok = FALSE; | 207 gboolean ok = FALSE; |
208 | 208 |
209 msg = create_message(); | 209 msg = create_message(); |
210 msg->uid = g_strdup(uid); | 210 msg->uid = g_strdup(uid); |
211 | 211 |
212 DEBUG(4) debugf("msg_spool_read():\n"); | 212 DEBUG(4) debugf("msg_spool_read():\n"); |
213 /* header spool: */ | 213 /* header spool: */ |
214 ok = spool_read_header(msg); | 214 ok = spool_read_header(msg); |
215 DEBUG(4) debugf(" spool_read_header() returned: %d (do_readdata had been: %d)\n", | 215 DEBUG(4) debugf(" spool_read_header() returned: %d\n", ok); |
216 ok, do_readdata); | |
217 if (ok && do_readdata) { | |
218 /* data spool: */ | |
219 ok = spool_read_data(msg); | |
220 DEBUG(4) debugf(" spool_read_data() returned: %d\n", ok); | |
221 } | |
222 return msg; | 216 return msg; |
223 } | 217 } |
224 | 218 |
225 /* write header. uid and gid should already be set to the | 219 /* write header. uid and gid should already be set to the |
226 mail ids. Better call spool_write(msg, FALSE). | 220 mail ids. Better call spool_write(msg, FALSE). |