o There is a problem with the esddsp daemon. After a few seconds, the sound stops
and an error message is reported. This does not happen if wmnotify is launched
directly.
+o wmnotify display "X connection to :0.0 broken (explicit kill or server shutdown"
+ when another application is using the soundcard.
.BI "protocol " <protocol-name>
mail account protocol, POP3 or IMAP4.
+.TP
+.BI "imap_folder " <folder-name>
+IMAP folder name (optional, default is INBOX).
+
.TP
.BI "use_ssl " <value>
This option controls the SSL encryption enabling/disabling. The value may be
fprintf( fp, "username xxxxxxxx\n\n" );
fprintf( fp, "# Password.\n" );
fprintf( fp, "password xxxxxxxx\n\n" );
+ fprintf( fp, "# IMAP folder name (optional, default is INBOX).\n" );
+ fprintf( fp, "# folder INBOX.some_folder\n\n" );
fprintf( fp, "# Mail Check Interval (in minutes, default is 5 minutes).\n" );
fprintf( fp, "#mailcheckdelay 5\n\n" );
fprintf( fp, "# Default mail client (optional).\n" );
const char *err_string = NULL;
/* Default values for optional parameters. */
+ strcpy( wmnotify_infos.imap_folder, "INBOX"); /* Default IMAP folder. */
wmnotify_infos.port = 110;
wmnotify_infos.mail_check_interval = 60; /* 1 minute interval. */
wmnotify_infos.audible_notification = false; /* Disabled. */
protocol_found = true;
}
+ else if( STREQ( token, "imap_folder" ) ) {
+ token = GetArguments( "imap_folder", true );
+ /* Should check size before using strcpy(), or use strncopy() instead. */
+ strcpy( wmnotify_infos.imap_folder, token );
+ }
else if( STREQ( token, "use_ssl" ) ){
int number;
/* 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;