comparison src/sm-archive.cpp @ 3:01268466f0dc

initial version
author carl
date Fri, 10 Mar 2006 11:00:12 -0800
parents 32b57406b656
children 5241a079fe03
comparison
equal deleted inserted replaced
2:32b57406b656 3:01268466f0dc
188 my_syslog(&priv, msg); 188 my_syslog(&priv, msg);
189 } 189 }
190 char *target = dc.find_to(rcptaddr); 190 char *target = dc.find_to(rcptaddr);
191 if (target) smfi_addrcpt(ctx, target); 191 if (target) smfi_addrcpt(ctx, target);
192 free(rcptaddr); 192 free(rcptaddr);
193 if (!processed_from) { 193 if (!priv.processed_from) {
194 target = dc.find_from(priv.mailaddr); 194 target = dc.find_from(priv.mailaddr);
195 if (target) smfi_addrcpt(ctx, target); 195 if (target) smfi_addrcpt(ctx, target);
196 processed_from = true; 196 priv.processed_from = true;
197 } 197 }
198 return SMFIS_CONTINUE; 198 return SMFIS_CONTINUE;
199 } 199 }
200 200
201 sfsistat mlfi_eom(SMFICTX *ctx) 201 sfsistat mlfi_eom(SMFICTX *ctx)
206 } 206 }
207 207
208 sfsistat mlfi_abort(SMFICTX *ctx) 208 sfsistat mlfi_abort(SMFICTX *ctx)
209 { 209 {
210 mlfiPriv &priv = *MLFIPRIV; 210 mlfiPriv &priv = *MLFIPRIV;
211 if (!priv) return SMFIS_CONTINUE;
212 priv.reset(); 211 priv.reset();
213 return SMFIS_CONTINUE; 212 return SMFIS_CONTINUE;
214 } 213 }
215 214
216 sfsistat mlfi_close(SMFICTX *ctx) 215 sfsistat mlfi_close(SMFICTX *ctx)