/*
**   YAM2NN - Usenet access for YAM p7 and newer
**   Copyright (C) 1999 Karol Bryd <kbryd@femina.com.pl>
**
**   This program is free software; you can redistribute it and/or
**   modify it under the terms of the GNU General Public License
**   as published by the Free Software Foundation; either version 2
**   of the License, or (at your option) any later version.
**
**   This program is distributed in the hope that it will be useful,
**   but WITHOUT ANY WARRANTY; without even the implied warranty of
**   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
**   GNU General Public License for more details.
**
**   You should have received a copy of the GNU General Public License
**   along with this program; if not, write to the Free Software
**   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/

#ifndef _FOLDERS_H_
#define _FOLDERS_H_

#define REGULAR  0
#define INCOMING 1
#define OUTGOING 2
#define SENT     3
#define DELETED  4

struct Folder
{
    struct Folder *f_next;
    struct Folder *f_prev;
    char          *f_path;
    int            f_num;
    int            f_type;
};

extern int query_for_user(void);
extern void scan_folders(struct List *folders);
extern int build_folders_list(struct List *folders);
extern void free_folders_list(struct List *folders);
extern char *get_folder_path(struct List *folders, int type);
extern int get_folder_pos(struct List *folders, int type);
extern struct List *init_folder_list(void);

extern char current_user_path[];
extern struct List *open_folder_list(void);
extern void save_folder_list(struct List *folders, struct List * newsgrouplist);


#endif

