* New version 2.26
[alpine.git] / alpine / adrbkcmd.h
blob98a070c5dbb015cf53991e52464b3e52b97243cf
1 /*
2 * $Id: adrbkcmd.h 1012 2008-03-26 00:44:22Z hubert@u.washington.edu $
4 * ========================================================================
5 * Copyright 2013-2022 Eduardo Chappa
6 * Copyright 2006-2008 University of Washington
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * ========================================================================
17 #ifndef PITH_ADRBKCMD_INCLUDED
18 #define PITH_ADRBKCMD_INCLUDED
21 #include "../pith/adrbklib.h"
22 #include "../pith/state.h"
23 #include "../pith/ldap.h"
24 #include "../pith/handle.h"
25 #include "../pith/store.h"
28 #define AB_COMMENT_STR _("Comment")
31 /* exported prototypes */
32 void view_abook_entry(struct pine *, long);
33 void edit_entry(AdrBk *, AdrBk_Entry *, a_c_arg_t, Tag, int, int *, char *);
34 int ab_add_abook(int, int);
35 int ab_edit_abook(int, int, char *, char *, char *);
36 int any_addrbooks_to_convert(struct pine *);
37 int convert_addrbooks_to_remote(struct pine *, char *, size_t);
38 int any_sigs_to_convert(struct pine *);
39 int convert_sigs_to_literal(struct pine *, int);
40 void warn_about_rule_files(struct pine *);
41 void convert_to_remote_config(struct pine *, int);
42 int ab_del_abook(long, int, char **);
43 int ab_shuffle(PerAddrBook *, int *, int, char **);
44 int ab_compose_to_addr(long, int, int);
45 int ab_forward(struct pine *, long, int);
46 int ab_save(struct pine *, AdrBk *, long, int, int);
47 int ab_print(int);
48 int ab_agg_delete(struct pine *, int);
49 int single_entry_delete(AdrBk *, long, int *);
50 char *query_server(struct pine *, int, int *, int, char **);
51 void free_headents(struct headerentry **);
52 void write_single_vcard_entry(struct pine *, gf_io_t, VCARD_INFO_S *);
53 void free_vcard_info(VCARD_INFO_S **);
54 #ifdef ENABLE_LDAP
55 void view_ldap_entry(struct pine *, LDAP_CHOOSE_S *);
56 void compose_to_ldap_entry(struct pine *, LDAP_CHOOSE_S *,int);
57 void forward_ldap_entry(struct pine *, LDAP_CHOOSE_S *);
58 STORE_S *prep_ldap_for_viewing(struct pine *, LDAP_CHOOSE_S *, SourceType, HANDLE_S **);
59 void free_saved_query_parameters(void);
60 int url_local_ldap(char *);
61 #endif
64 #endif /* PITH_ADRBKCMD_INCLUDED */