! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Plugin doesn't reflect changes in local mailbox immediately


Description Dimitris Mandalidis 2008-12-26 21:28:44 CET
Created attachment 2051 
Enables mailbox check after button pressed

When new messages, after doing left-click on the button, a user probably launches an MUA to read the messages and possibly (like I do) to move them to their respective folders.

The problem is that when the user finally closes his MUA the plugin needs <interval> seconds to reflect possible changes in the mailbox. The situation also applies to other types of mailboxes.

I attach a diff which corrects this problem by calling xfce_mailwatch_force_update() after the button was pressed.

The overhead on remote mailboxes with this change might need to be considered as the traffic doubles in the worst case. (user presses the button every <interval> seconds).
Comment 1 Dimitris Mandalidis 2008-12-26 21:29:56 CET
Patch against 1.1.0 version
Comment 2 Brian J. Tarricone (not reading bugmail) 2008-12-26 22:21:36 CET
No, for a few reasons:

1.  Future versions will use local file-change monitoring, so local mail spools will get auto-updated without timeout intervals at all.

2.  Middle-click already does the update-now function.

3.  This patch just doesn't make sense anyway, especially for remote file systems -- clicking the button can do *anything*.  In my case, all it does is switch to the virtual desktop where I keep my mail program running all the time.  It doesn't at all indicate that I've read the mail and it's no longer new; in fact I'm not seeing how this could ever work -- how is the click command going to instantaneously make all mail read?  (Note that it runs async, so your forced update could even occur before the click command completes.)

Bug #4738

Reported by:
Dimitris Mandalidis
Reported on: 2008-12-26
Last modified on: 2010-11-09


Brian J. Tarricone (not reading bugmail)
CC List:
1 user


1.1.0 or older


Enables mailbox check after button pressed (545 bytes, patch)
2008-12-26 21:28 CET , Dimitris Mandalidis
no flags

Additional information