Added optional IMAP folder name
[dockapps/wmnotify.git] / src / imap.c
index 1078328..da11e47 100644 (file)
@@ -267,7 +267,7 @@ IMAP4_CheckForNewMail( void )
 
   /* Selecting the mailbox first. */
   argv[0] = IMAP4_CMD_EXAMINE;
-  argv[1] = "inbox";
+  argv[1] = wmnotify_infos.imap_folder;
   status = IMAP4_SendCommand( 2, argv );
   if( status != EXIT_SUCCESS ) {
     new_messages = -1;