2 Dec 2004 23:18
[PATCH] sync-mailbox: Syncing an empty mailbox is no error
Thomas Glanzmann <sithglan <at> stud.uni-erlangen.de>
2004-12-02 22:18:00 GMT
2004-12-02 22:18:00 GMT
Hello, the question popped up: Why the following macro[1] fails on an empty mailbox. [1] macro to access the folder browser: macro index i "<sync-mailbox><change-folder>?<toggle-mailboxes>" The problem here is that sync-mailbox fails on empty mailboxes and abort the macro. You want that sync before the folder browser in - because syncing is only done, if you enter a *new* folder and so closing the the current implicit. But when you browse that folder list you have outdated data in the folder list until you synced it before. Attached is a little patch to fix the issue - as usual against current CVS head. Thomas
diff -Nru a/curs_main.c b/curs_main.c
--- a/curs_main.c 2004-07-24 12:27:19 +02:00
+++ b/curs_main.c 2004-12-02 23:03:02 +01:00
<at> <at> -984,6 +984,10 <at> <at>
case OP_MAIN_SYNC_FOLDER:
+ /* syncing an non empty mailbox isn't error */
+ if (Context && !Context->msgcount)
(Continue reading)
]
While I won't debate that some users are adding such a header, I fail to
see the need for it.
Either a mail is PGP-signed, or it isn't.
If it is signed, it already contains the key id, algorithm, etc., so
this doesn't have to be added to the header. There is also already an
infrastructure for looking up keys, so including an URL where the key
can be obtained seems to be mostly pointless to me - why not just upload
the key to a keyserver?
If the mail is not signed, including information about a key which may
or may not be used on other mails seems to be of rather dubious value.
So I can see only two scenarios where such a header would be useful:
RSS Feed