* mu-msg-file: cosmetics

This commit is contained in:
Dirk-Jan C. Binnema 2010-12-11 13:53:50 +02:00
parent 0565587dda
commit 64fcbe7603
2 changed files with 3 additions and 5 deletions

View File

@ -109,7 +109,7 @@ mu_msg_file_get_flags_from_path (const char *path)
/* only support the "2," format */
if (cursor && cursor[0] == '2' && cursor[1] == ',') {
cursor += 2; /* jump past 2, */
for (; *cursor; ++cursor)
for (; *cursor; ++cursor) {
switch (*cursor) {
case 'P':
flags |= MU_MSG_FLAG_PASSED;
@ -130,6 +130,7 @@ mu_msg_file_get_flags_from_path (const char *path)
flags |= MU_MSG_FLAG_FLAGGED;
break;
}
}
}
}
g_free(info);
@ -285,6 +286,3 @@ mu_msg_file_get_path_from_flags (const char *oldpath, MuMsgFlags newflags)
return newpath;
}

View File

@ -39,7 +39,6 @@ G_BEGIN_DECLS
*/
MuMsgFlags mu_msg_file_get_flags_from_path (const char* pathname);
/**
* get the new pathname for a message, based on the old path and the
* new flags. Note that setting/removing the MU_MSG_FLAG_NEW will
@ -57,6 +56,7 @@ MuMsgFlags mu_msg_file_get_flags_from_path (const char* pathname);
*/
char* mu_msg_file_get_path_from_flags (const char *oldpath, MuMsgFlags newflags);
G_END_DECLS
#endif /*__MU_MSG_FILE_H__*/