mirror of https://github.com/djcb/mu.git
* mu-msg-file: cosmetics
This commit is contained in:
parent
0565587dda
commit
64fcbe7603
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -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__*/
|
||||
|
|
Loading…
Reference in New Issue