Maidag cleanup
* maidag/maidag.c (mda_mode,lmtp_mode,url_option): Remove. (maidag_mode): New variable. (parse_opt): The --lmtp, --url and --mda options set the delivery-mode configuration statement. (cb_delivery_mode): New callback. (maidag_cfg_param) <delivery-mode>: New statement. (main): Redo delivery mode selection. * maidag/maidag.h (maidag_mode): New enum. (maidag_mode): New extern. (mda_mode,lmtp_mode,url_option): Remove. (maidag_delivery_fn): New typedef. (maidag_stdio_delivery,mda): Change signature. (deliver_to_url, deliver_to_user): New prototypes. * maidag/deliver.c (mda): Take delivery function as a parameter. (maidag_stdio_delivery): Likewise. (deliver_to_user): Rename to deliver_to_mailbox. (deliver_url): Rename to do_delivery. (deliver): Rename to deliver_to_url. (deliver_to_user): New function. * maidag/forward.c (process_forward): Use deliver_to_user. * maidag/lmtp.c (dot_deliver): Likewise.
Showing
5 changed files
with
127 additions
and
93 deletions
-
Please register or sign in to post a comment