#include "stock_pixmap.h"
#include "hooks.h"
#include "filtering.h"
-#include "pop.h"
+#include "partial_download.h"
static GList *messageview_list = NULL;
/* Message ID */
generate_msgid(account->address, buf, sizeof buf);
- fprintf(fp, "Message-Id: <%s>\n", buf);
+ fprintf(fp, "Message-ID: <%s>\n", buf);
if (fclose(fp) == EOF) {
FILE_OP_ERROR(tmp, "fclose");
textview_set_all_headers(messageview->mimeview->textview, all_headers);
mimeview_show_message(messageview->mimeview, mimeinfo, file);
+ messageview_set_position(messageview, 0);
if (messageview->msginfo->partial_recv)
partial_recv_show(messageview->noticeview,
void *button1_cb = NULL;
void *button2_cb = NULL;
- if (!pop3_msg_in_uidl_list(msginfo->account_server, msginfo->account_login,
- msginfo->partial_recv))
+ if (!partial_msg_in_uidl_list(msginfo))
return;
+
switch (msginfo->planned_download) {
case POP3_PARTIAL_DLOAD_UNKN:
text = g_strdup_printf(_("This message has been partially "
static void partial_recv_dload_clicked(NoticeView *noticeview,
MsgInfo *msginfo)
{
- if (pop3_mark_for_download(msginfo) == 0) {
+ if (partial_mark_for_download(msginfo) == 0) {
partial_recv_show(noticeview, msginfo);
}
}
static void partial_recv_del_clicked(NoticeView *noticeview,
MsgInfo *msginfo)
{
- if (pop3_mark_for_delete(msginfo) == 0) {
+ if (partial_mark_for_delete(msginfo) == 0) {
partial_recv_show(noticeview, msginfo);
}
}
static void partial_recv_unmark_clicked(NoticeView *noticeview,
MsgInfo *msginfo)
{
- if (pop3_unmark(msginfo) == 0) {
+ if (partial_unmark(msginfo) == 0) {
partial_recv_show(noticeview, msginfo);
}
}