aboutsummaryrefslogtreecommitdiff
path: root/src/rpop3.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2009-09-15 07:09:25 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2009-09-15 07:09:25 +0000
commit9479896ab983f25c77dbfc6b1847b46ba847e352 (patch)
treefa7c62230d757cb19fc4edf2773a2ab06e13e640 /src/rpop3.c
parentb3f0c2e205e0959c4d6287b02c9eb8a4d4af026a (diff)
generate cache on adding messages.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2253 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/rpop3.c')
-rw-r--r--src/rpop3.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rpop3.c b/src/rpop3.c
index f2e68800..347f1a83 100644
--- a/src/rpop3.c
+++ b/src/rpop3.c
@@ -718,7 +718,7 @@ static gint rpop3_retr_recv(Pop3Session *session, FILE *fp, guint len)
{
gchar *file;
MsgInfo *msginfo;
- MsgFlags flags = {0, 0};
+ MsgFlags flags = {MSG_NEW|MSG_UNREAD, MSG_RECEIVED};
MessageView *msgview;
file = get_tmp_file();
@@ -743,7 +743,7 @@ static gint rpop3_retr_recv(Pop3Session *session, FILE *fp, guint len)
return -1;
}
- if (folder_item_add_msg(inbox, file, NULL, FALSE) < 0) {
+ if (folder_item_add_msg(inbox, file, &flags, FALSE) < 0) {
session->error_val = PS_IOERR;
return -1;
}
@@ -1080,7 +1080,7 @@ static void rpop3_recv(GtkButton *button, gpointer data)
gtk_tree_model_get(model, &iter, COL_NUMBER, &num,
COL_DELETED, &deleted, -1);
if (!deleted) {
- debug_print("rpop3_recv: recieving message %d\n", num);
+ debug_print("rpop3_recv: receiving message %d\n", num);
g_array_append_val(array, num);
}
}