static char rcsid[] = "@(#)$Id: a_edit.c,v 1.13 2006/04/09 07:37:17 hurtta Exp $";
/******************************************************************************
* The Elm (ME+) Mail System - $Revision: 1.13 $ $State: Exp $
*
* Modified by: Kari Hurtta <hurtta+elm@posti.FMI.FI> (was hurtta+elm@ozone.FMI.FI)
******************************************************************************
* The Elm Mail System
*
* Copyright (c) 1988-1992 USENET Community Trust
* Copyright (c) 1986,1987 Dave Taylor
*****************************************************************************/
/** This routine is for allowing the user to edit their aliases.text
as they wish.
**/
#include "def_elm.h"
int edit_aliases_text(aview, page, LOC)
struct AliasView *aview;
struct menu_context *page;
struct screen_parts *LOC;
{
/** Allow the user to edit their aliases text, always resynchronizing
afterwards. This routine calls the function edit_a_file()
to do the actual editing. Thus editing is done the same
way here as in mailbox editing.
We will ALWAYS resync on the aliases text file
even if nothing has changed since, not unreasonably, it's
hard to figure out what occurred in the edit session...
**/
if (edit_a_file(user_text_file,page) == 0) {
return (0);
}
/*
* Redo the hash table...always!
*/
install_aliases(aview, LOC);
/*
* clear any limit in effect.
*/
set_alias_selected(aview,0);
return(1);
}
/*
* Local Variables:
* mode:c
* c-basic-offset:4
* buffer-file-coding-system: iso-8859-1
* End:
*/
syntax highlighted by Code2HTML, v. 0.9.1