2009/8/2 Zsolt Udvari <[email protected]>:
> Hi list!
>
> I want to use mairix with claws-mail. I'm using claws-mail as a client
> to gmail via IMAP.
Oh, I found it: I've 'straced' mairix:
stat64("/home/zsolt/.claws-mail/imapcache/imap.gmail.com/udvzsolt//INBOX/.sylpheed_cache",
0xbff81180) = -1 ENOENT (No such file or directory)
So I've created a symlink .claws_cache to .sylpheed_cache and it works ;)
After that I've created a patch to support claws-mail:
--- mairix-0.21-orig/dirscan.c 2007-06-22 22:18:00.000000000 +0200
+++ mairix-0.21/dirscan.c 2009-08-02 11:32:54.901739313 +0200
@@ -262,6 +262,9 @@
/* Sylpheed */
has_child_file(path, ".sylpheed_cache") ||
has_child_file(path, ".sylpheed_mark") ||
+ /* Claws-mail */
+ has_child_file(path, ".claws_cache") ||
+ has_child_file(path, ".claws_mark") ||
/* NNML (Gnus) */
has_child_file(path, ".marks") ||
has_child_file(path, ".overview") ||
--- mairix-0.21-orig/search.c 2007-06-22 22:18:00.000000000 +0200
+++ mairix-0.21/search.c 2009-08-02 12:13:56.618576447 +0200
@@ -611,7 +611,7 @@
result = new_array(char, len + 1 + sizeof(":2,FRS"));
strcpy(result, output_dir);
strcat(result, is_in_new ? "/new/" : "/cur/");
- sprintf(uniq_buf, "123456789.%d.mairix", token);
+ sprintf(uniq_buf, "1234%d", token);
strcat(result, uniq_buf);
if (is_seen || is_replied || is_flagged) {
strcat(result, ":2,");
The patch of search.c needed because claws-mail doesn't handle
"123456789.nnn.mairix"-style filenames. I hope that the latest patch
doesn't conflict anything.
Zsolt
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Mairix-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mairix-users