hdrline.o help.o history.o hook.o init.o keymap.o \
main.o mbox.o menu.o mh.o muttlib.o mutt_account.o mutt_attach.o mutt_body.o mutt_header.o \
mutt_logging.o mutt_signal.o mutt_socket.o mutt_thread.o mutt_window.o mx.o newsrc.o \
- nntp.o pager.o parse.o pattern.o pop.o pop_auth.o pop_lib.o \
+ nntp.o pager.o parse.o pattern.o \
postpone.o progress.o query.o recvattach.o recvcmd.o resize.o rfc1524.o \
rfc2047.o rfc2231.o rfc3676.o safe_asprintf.o score.o send.o \
sendlib.o sidebar.o smtp.o sort.o state.o status.o system.o \
MUTTLIBS+= $(LIBEMAIL)
ALLOBJS+= $(LIBEMAILOBJS)
+###############################################################################
+# libpop
+LIBPOP= libpop.a
+LIBPOPOBJS= pop/pop_auth.o pop/pop.o pop/pop_lib.o
+CLEANFILES+= $(LIBPOP) $(LIBPOPOBJS)
+MUTTLIBS+= $(LIBPOP)
+ALLOBJS+= $(LIBPOPOBJS)
+
###############################################################################
# libmutt
LIBMUTT= libmutt.a
$(PWD)/email:
$(MKDIR_P) $(PWD)/email
+# libpop
+$(LIBPOP): $(PWD)/pop $(LIBPOPOBJS)
+ $(AR) cr $@ $(LIBPOPOBJS)
+ $(RANLIB) $@
+$(PWD)/pop:
+ $(MKDIR_P) $(PWD)/pop
+
# libncrypt
$(LIBNCRYPT): $(PWD)/ncrypt $(LIBNCRYPTOBJS)
$(AR) cr $@ $(LIBNCRYPTOBJS)
#include "sidebar.h"
#endif
#ifdef USE_POP
-#include "pop.h"
+#include "pop/pop.h"
#endif
#ifdef USE_IMAP
#include "imap/imap.h"
#include "imap/imap.h"
#endif
#ifdef USE_POP
-#include "pop.h"
+#include "pop/pop.h"
#endif
#ifdef USE_NNTP
#include "nntp.h"
parse.c
pattern.c
pgpewrap.c
-pop.c
-pop_auth.c
-pop_lib.c
+pop/pop.c
+pop/pop_auth.c
+pop/pop_lib.c
postpone.c
progress.c
query.c
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#include "pop_private.h"
#include "mutt/mutt.h"
#include "email/email.h"
#include "conn/conn.h"
--- /dev/null
+/**
+ * @file
+ * POP network mailbox
+ *
+ * @authors
+ * Copyright (C) 2000-2003 Vsevolod Volkov <vvv@mutt.org.ua>
+ *
+ * @copyright
+ * 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, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef _POP_POP_H
+#define _POP_POP_H
+
+#include "mx.h"
+
+void pop_fetch_mail(void);
+
+extern struct MxOps mx_pop_ops;
+
+#endif /* _POP_POP_H */
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
+#include "pop_private.h"
#include "mutt/mutt.h"
#include "email/email.h"
#include "conn/conn.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include "pop_private.h"
#include "mutt/mutt.h"
#include "email/email.h"
#include "conn/conn.h"
* this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef _MUTT_POP_H
-#define _MUTT_POP_H
+#ifndef _POP_PRIVATE_H
+#define _POP_PRIVATE_H
#include <stdbool.h>
#include <time.h>
-#include "mx.h"
struct Account;
struct Context;
int pop_reconnect(struct Context *ctx);
void pop_logout(struct Context *ctx);
-/* pop.c */
-void pop_fetch_mail(void);
-extern struct MxOps mx_pop_ops;
-
-#endif /* _MUTT_POP_H */
+#endif /* _POP_PRIVATE_H */