Re: [Evolution-hackers] [plugin-development] Adding a new filter action (replace subject in mail) [SEC=UNCLASSIFIED]

2008-05-16 Thread Mats Taraldsvik
Hi!

Thanks for the tip. As stated, I'm a beginner both in coding and plugin
development. However, I will give it a shot after my exams.

I'll get back to this thread once and if I make any progress.

(No need to reply to me directly - I'm following the list)

Mats Taraldsvik


On Fri, 2008-05-16 at 16:43 +1000, Shane McEwan wrote:
> G'day!
> 
> I have been wanting a plugin that would add a pre-defined string to the
> subject line. Unfortunately I'm not a good enough coder to write the
> plugin. If I can't do it in Perl I can't do it. :-(
> 
> Your suggested plugin sounds very close to what I want so I'll be
> interested to give it a try if you manage to get it working.
> 
> The closest I got was looking at the Attachment Reminder plugin which
> does almost everything you want except modify the subject. You could
> probably modify Attachment Reminder to do what you want if your coding
> skills are better than mine! :-)
> 
> I look forward to hearing about your progress and am willing to test
> things if you need it.
> 
> Good luck!
> 
> On Thu, 2008-05-15 at 18:08 +0200, Mats Taraldsvik wrote:
> > Hi!
> > 
> > I'd like to make a plugin which replaces the subject (or parts of it)
> > with text from the mail contents by regular expressions. 
> > 
> > Rationale: Forums and others send you messages with subject like "new
> > reply in forum", but the topic is not specified. This is annoying if you
> > have one email per response, since you have to look through all this
> > mail to see if other topics you are subscribed to has unread responses.
> > 
> > As I have no earlier experience in contributing, I'd like some help on
> > where to start, please. I have looked in the Eplugins doc, but couldn't
> > figure out filter actions.
> > 
> > cheers,
> > Mats Taraldsvik
> > 
> > (this was also posted on evolution-list, but I was advised to post here)
> > 
> > ___
> > Evolution-hackers mailing list
> > Evolution-hackers@gnome.org
> > http://mail.gnome.org/mailman/listinfo/evolution-hackers
> --
>  Shane McEwan - Bureau of Meteorology - Cape Grim BAPS
> 
>   There are 10 kinds of people . . .
>   those who understand binary and those who don't.
> 
>  159 Nelson St, Smithton, Tasmania - Ph 03 6452 1629 - Fax 03 6452 2600

___
Evolution-hackers mailing list
Evolution-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/evolution-hackers


Re: [Evolution-hackers] Evolution LDAP backend

2008-05-16 Thread Srinivasa Ragavan
On Fri, 2008-05-16 at 08:55 +0200, Free Ekanayaka wrote:
> > Evo ldap backend was nothing but, openldap patched ntlm. But there was
> > no update to it, as most distros patch OpenLDAP with ntlm and ship it.
> > 
> Thanks, do you know of any documentation about using evolution with 
> ntlm?
> 
What do you mean by that?

-Srini.
> Ciao,
> 
> Free
> 
> 
___
Evolution-hackers mailing list
Evolution-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/evolution-hackers


[Evolution-hackers] GTK and Bonobo Critical Warnings.

2008-05-16 Thread svalbard colaco
Hi all


I have evolution on DFB and i get the following warnings when run;

gtkhtml-WARNING **: Cannot create spell dictionary instance
(iid:OAFIID:GNOME_Spell_Dictionary:0.3)
Spell Dictionary is not supported.

Gtk-CRITICAL **: gtk_icon_info_get_filename: assertion `icon_info != NULL'
failed

Bonobo-CRITICAL **: impl_set_prop: assertion `value != NULL' failed

Bonobo-WARNING **: Activation exception 'Failed to activate
'OAFIID:GNOME_Spell_Control:0.3''
Spell Dictionary is not supported.

Can any on tell me how to debugg the same...Has any one come across these
warnings...?
And what colud be the possible approach to handle them

Thanks & Regards
sv.
___
Evolution-hackers mailing list
Evolution-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/evolution-hackers


[Evolution-hackers] Camel Provider/Getv/Setv

2008-05-16 Thread Jeffrey Stedfast
I guess I've probably always been aware that there was some suckage
here, but I never really knew how bad.

So the other night I was trying to implement support for tweaking cache
expiration preferences for IMAP4, but ran into some problems with
providing a decent way of providing a UI for it.

camel_object_[g,s]etv():

The problem with this method is that you can only specify a value type
and a label. This makes it hard to present any sort of more complex
user-input device for the user beyond true/false and possibly string
input? (which is probably why CAMEL_ARG_BOO and CAMEL_ARG_STR were the
only 2 arg-types mapped in the UI for folder properties).

If you want to request a float or integer from the user, then you have
no way of specifying an input range - nor do you have a proper way to
represent the following UI:

Cached messages should expire after [3600H] seconds.

(e.g. text before and after the spinbutton, which helps to make the
user-input query more readable)

There's also no way to link inputs. For exmaple:

[X] Expire messages older than [3600H] seconds.

or

[X] Enable XYZ
   XYZ should happen after [3600H] seconds.

In the second example, the followup UI element should be disabled if the
dependency element hasn't been enabled.

I'm not sure which of the 2 above methods is the preferred choice
(probably only 1 of them needs to be possible to do).


camel-provider properties:

Suffers from most of the same problems listed above.



Not sure how exactly to fix these issues, but figured I'd maybe get the
ball rolling by sending this mail and seeing if other people had ideas.
The best I can come up with is some sort of XML blurb describing how the
UI should look in some toolkit-agnostic way, but I'm not sure of the
details.

Jeff


___
Evolution-hackers mailing list
Evolution-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/evolution-hackers


Re: [Evolution-hackers] GTK and Bonobo Critical Warnings.

2008-05-16 Thread Matthew Barnes
On Fri, 2008-05-16 at 18:59 +0530, svalbard colaco wrote:
> Can any on tell me how to debugg the same...Has any one come across
> these warnings...?
> And what colud be the possible approach to handle them

Run evolution under GDB and set a breakpoint at the function "g_logv".
That will make the program stop every time one of these warnings are
printed.  You can then issue a backtrace command and see where in the
code the warning is coming from.

Matthew Barnes

___
Evolution-hackers mailing list
Evolution-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/evolution-hackers


[Evolution-hackers] evolution build fails on em-folder-properties.c

2008-05-16 Thread Reid Thompson
...
AMEL_PROVIDERDIR=\"\" -DPREFIX=\"/opt/evo\" -DG_LOG_DOMAIN=\"evolution-mail\" 
-ggdb -O2 -march=prescott -g -Wall -Wmissing-prototypes -Wno-sign-compare -MT 
em-folder-properties.lo -MD -MP -MF .deps/em-folder-properties.Tpo -c 
../../../evolution/mail/em-folder-properties.c  -fPIC -DPIC -o 
.libs/em-folder-properties.o
../../../evolution/mail/em-folder-properties.c: In function 'emfp_commit':
../../../evolution/mail/em-folder-properties.c:101: warning: implicit 
declaration of function 'gtk_spin_button_get_value_as_int'
../../../evolution/mail/em-folder-properties.c:101: error: 'GtkSpinButton' 
undeclared (first use in this function)
../../../evolution/mail/em-folder-properties.c:101: error: (Each undeclared 
identifier is reported only once
../../../evolution/mail/em-folder-properties.c:101: error: for each function it 
appears in.)
../../../evolution/mail/em-folder-properties.c:101: error: expected expression 
before ')' token
../../../evolution/mail/em-folder-properties.c:104: warning: implicit 
declaration of function 'gtk_spin_button_get_value'
../../../evolution/mail/em-folder-properties.c:104: error: expected expression 
before ')' token
../../../evolution/mail/em-folder-properties.c: In function 
'emfp_get_folder_item':
../../../evolution/mail/em-folder-properties.c:252: warning: implicit 
declaration of function 'gtk_spin_button_new_with_range'
../../../evolution/mail/em-folder-properties.c:252: warning: assignment makes 
pointer from integer without a cast
../../../evolution/mail/em-folder-properties.c:253: warning: implicit 
declaration of function 'gtk_spin_button_set_value'
../../../evolution/mail/em-folder-properties.c:253: error: 'GtkSpinButton' 
undeclared (first use in this function)
../../../evolution/mail/em-folder-properties.c:253: error: expected expression 
before ')' token
../../../evolution/mail/em-folder-properties.c:254: warning: implicit 
declaration of function 'gtk_spin_button_set_numeric'
../../../evolution/mail/em-folder-properties.c:254: error: expected expression 
before ')' token
../../../evolution/mail/em-folder-properties.c:255: warning: implicit 
declaration of function 'gtk_spin_button_set_digits'
../../../evolution/mail/em-folder-properties.c:255: error: expected expression 
before ')' token
../../../evolution/mail/em-folder-properties.c:266: warning: assignment makes 
pointer from integer without a cast
../../../evolution/mail/em-folder-properties.c:267: error: expected expression 
before ')' token
../../../evolution/mail/em-folder-properties.c:268: error: expected expression 
before ')' token
../../../evolution/mail/em-folder-properties.c:269: error: expected expression 
before ')' token
../../../evolution/mail/em-folder-properties.c: In function 
'emfp_dialog_got_folder_quota':
../../../evolution/mail/em-folder-properties.c:357: warning: assignment 
discards qualifiers from pointer target type
../../../evolution/mail/em-folder-properties.c:361: warning: assignment 
discards qualifiers from pointer target type
make[5]: *** [em-folder-properties.lo] Error 1
make[5]: *** Waiting for unfinished jobs


last changes added these...

[EMAIL PROTECTED] ~/evo-src/evolution/mail $ svn diff -r PREV 
em-folder-properties.c
Index: em-folder-properties.c
===
--- em-folder-properties.c  (revision 35501)
+++ em-folder-properties.c  (working copy)
@@ -97,6 +97,12 @@
g_free (arg->ca_str);
arg->ca_str = (char *) gtk_entry_get_text ((GtkEntry *) 
prop_data->widgets[i]);
break;
+   case CAMEL_ARG_INT:
+   arg->ca_int = gtk_spin_button_get_value_as_int 
((GtkSpinButton *) prop_data->widgets[i]);
+   break;
+   case CAMEL_ARG_DBL:
+   arg->ca_double = gtk_spin_button_get_value 
((GtkSpinButton *) prop_data->widgets[i]);
+   break;
default:
g_warning ("This shouldn't be reached\n");
break;
@@ -237,6 +243,34 @@
gtk_table_attach ((GtkTable *) table, w, 1, 2, row, row 
+ 1, GTK_FILL | GTK_EXPAND, 0, 0, 0);
prop_data->widgets[i] = w;
break;
+   case CAMEL_ARG_INT:
+   label = gtk_label_new (prop->description);
+   gtk_misc_set_alignment ((GtkMisc *) label, 0.0, 0.5);
+   gtk_widget_show (label);
+   gtk_table_attach ((GtkTable *) table, label, 0, 1, row, 
row + 1, GTK_FILL, 0, 0, 0);
+   
+   w = gtk_spin_button_new_with_range (G_MININT, G_MAXINT, 
1.0);
+   gtk_spin_button_set_value ((GtkSpinButton *) w, 
(double) prop_data->argv->argv[i].ca_int);
+   gtk_spin_button_set_numeric ((GtkSpinButton *) w, TRUE);
+   gtk_spi

Re: [Evolution-hackers] evolution build fails on em-folder-properties.c

2008-05-16 Thread Jeffrey Stedfast
try rev 35503

On Fri, 2008-05-16 at 13:51 -0400, Reid Thompson wrote:
> ...
> AMEL_PROVIDERDIR=\"\" -DPREFIX=\"/opt/evo\" -DG_LOG_DOMAIN=\"evolution-mail\" 
> -ggdb -O2 -march=prescott -g -Wall -Wmissing-prototypes -Wno-sign-compare -MT 
> em-folder-properties.lo -MD -MP -MF .deps/em-folder-properties.Tpo -c 
> ../../../evolution/mail/em-folder-properties.c  -fPIC -DPIC -o 
> .libs/em-folder-properties.o
> ../../../evolution/mail/em-folder-properties.c: In function 'emfp_commit':
> ../../../evolution/mail/em-folder-properties.c:101: warning: implicit 
> declaration of function 'gtk_spin_button_get_value_as_int'
> ../../../evolution/mail/em-folder-properties.c:101: error: 'GtkSpinButton' 
> undeclared (first use in this function)
> ../../../evolution/mail/em-folder-properties.c:101: error: (Each undeclared 
> identifier is reported only once
> ../../../evolution/mail/em-folder-properties.c:101: error: for each function 
> it appears in.)
> ../../../evolution/mail/em-folder-properties.c:101: error: expected 
> expression before ')' token
> ../../../evolution/mail/em-folder-properties.c:104: warning: implicit 
> declaration of function 'gtk_spin_button_get_value'
> ../../../evolution/mail/em-folder-properties.c:104: error: expected 
> expression before ')' token
> ../../../evolution/mail/em-folder-properties.c: In function 
> 'emfp_get_folder_item':
> ../../../evolution/mail/em-folder-properties.c:252: warning: implicit 
> declaration of function 'gtk_spin_button_new_with_range'
> ../../../evolution/mail/em-folder-properties.c:252: warning: assignment makes 
> pointer from integer without a cast
> ../../../evolution/mail/em-folder-properties.c:253: warning: implicit 
> declaration of function 'gtk_spin_button_set_value'
> ../../../evolution/mail/em-folder-properties.c:253: error: 'GtkSpinButton' 
> undeclared (first use in this function)
> ../../../evolution/mail/em-folder-properties.c:253: error: expected 
> expression before ')' token
> ../../../evolution/mail/em-folder-properties.c:254: warning: implicit 
> declaration of function 'gtk_spin_button_set_numeric'
> ../../../evolution/mail/em-folder-properties.c:254: error: expected 
> expression before ')' token
> ../../../evolution/mail/em-folder-properties.c:255: warning: implicit 
> declaration of function 'gtk_spin_button_set_digits'
> ../../../evolution/mail/em-folder-properties.c:255: error: expected 
> expression before ')' token
> ../../../evolution/mail/em-folder-properties.c:266: warning: assignment makes 
> pointer from integer without a cast
> ../../../evolution/mail/em-folder-properties.c:267: error: expected 
> expression before ')' token
> ../../../evolution/mail/em-folder-properties.c:268: error: expected 
> expression before ')' token
> ../../../evolution/mail/em-folder-properties.c:269: error: expected 
> expression before ')' token
> ../../../evolution/mail/em-folder-properties.c: In function 
> 'emfp_dialog_got_folder_quota':
> ../../../evolution/mail/em-folder-properties.c:357: warning: assignment 
> discards qualifiers from pointer target type
> ../../../evolution/mail/em-folder-properties.c:361: warning: assignment 
> discards qualifiers from pointer target type
> make[5]: *** [em-folder-properties.lo] Error 1
> make[5]: *** Waiting for unfinished jobs
> 
> 
> last changes added these...
> 
> [EMAIL PROTECTED] ~/evo-src/evolution/mail $ svn diff -r PREV 
> em-folder-properties.c
> Index: em-folder-properties.c
> ===
> --- em-folder-properties.c  (revision 35501)
> +++ em-folder-properties.c  (working copy)
> @@ -97,6 +97,12 @@
> g_free (arg->ca_str);
> arg->ca_str = (char *) gtk_entry_get_text ((GtkEntry 
> *) prop_data->widgets[i]);
> break;
> +   case CAMEL_ARG_INT:
> +   arg->ca_int = gtk_spin_button_get_value_as_int 
> ((GtkSpinButton *) prop_data->widgets[i]);
> +   break;
> +   case CAMEL_ARG_DBL:
> +   arg->ca_double = gtk_spin_button_get_value 
> ((GtkSpinButton *) prop_data->widgets[i]);
> +   break;
> default:
> g_warning ("This shouldn't be reached\n");
> break;
> @@ -237,6 +243,34 @@
> gtk_table_attach ((GtkTable *) table, w, 1, 2, row, 
> row + 1, GTK_FILL | GTK_EXPAND, 0, 0, 0);
> prop_data->widgets[i] = w;
> break;
> +   case CAMEL_ARG_INT:
> +   label = gtk_label_new (prop->description);
> +   gtk_misc_set_alignment ((GtkMisc *) label, 0.0, 0.5);
> +   gtk_widget_show (label);
> +   gtk_table_attach ((GtkTable *) table, label, 0, 1, 
> row, row + 1, GTK_FILL, 0, 0, 0);
> +   
> +   w = gtk_spin_button_new_with

Re: [Evolution-hackers] evolution build fails on em-folder-properties.c

2008-05-16 Thread Reid Thompson
On Fri, 2008-05-16 at 14:26 -0400, Jeffrey Stedfast wrote:
> try rev 35503

compilation completes now.

thanks - reid
___
Evolution-hackers mailing list
Evolution-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/evolution-hackers


Re: [Evolution-hackers] [plugin-development] Adding a new filter action (replace subject in mail) [SEC=UNCLASSIFIED]

2008-05-16 Thread Mats Taraldsvik
Hi

What I want to do was to add this action in the mailing filters ( like
"Move to folder", "Set status"... they are in  in
filtertypes.xml ), but I was told this is not possible.

I was also told that modifying the subject of a mail, or the "display"
of the subject of this mail in evolution, is not possible either.

Is this correct?

Mats Taraldsvik


On Fri, 2008-05-16 at 09:45 +0200, Mats Taraldsvik wrote:
> Hi!
> 
> Thanks for the tip. As stated, I'm a beginner both in coding and plugin
> development. However, I will give it a shot after my exams.
> 
> I'll get back to this thread once and if I make any progress.
> 
> (No need to reply to me directly - I'm following the list)
> 
> Mats Taraldsvik
> 
> 
> On Fri, 2008-05-16 at 16:43 +1000, Shane McEwan wrote:
> > G'day!
> > 
> > I have been wanting a plugin that would add a pre-defined string to the
> > subject line. Unfortunately I'm not a good enough coder to write the
> > plugin. If I can't do it in Perl I can't do it. :-(
> > 
> > Your suggested plugin sounds very close to what I want so I'll be
> > interested to give it a try if you manage to get it working.
> > 
> > The closest I got was looking at the Attachment Reminder plugin which
> > does almost everything you want except modify the subject. You could
> > probably modify Attachment Reminder to do what you want if your coding
> > skills are better than mine! :-)
> > 
> > I look forward to hearing about your progress and am willing to test
> > things if you need it.
> > 
> > Good luck!
> > 
> > On Thu, 2008-05-15 at 18:08 +0200, Mats Taraldsvik wrote:
> > > Hi!
> > > 
> > > I'd like to make a plugin which replaces the subject (or parts of it)
> > > with text from the mail contents by regular expressions. 
> > > 
> > > Rationale: Forums and others send you messages with subject like "new
> > > reply in forum", but the topic is not specified. This is annoying if you
> > > have one email per response, since you have to look through all this
> > > mail to see if other topics you are subscribed to has unread responses.
> > > 
> > > As I have no earlier experience in contributing, I'd like some help on
> > > where to start, please. I have looked in the Eplugins doc, but couldn't
> > > figure out filter actions.
> > > 
> > > cheers,
> > > Mats Taraldsvik
> > > 
> > > (this was also posted on evolution-list, but I was advised to post here)
> > > 
> > > ___
> > > Evolution-hackers mailing list
> > > Evolution-hackers@gnome.org
> > > http://mail.gnome.org/mailman/listinfo/evolution-hackers
> > --
> >  Shane McEwan - Bureau of Meteorology - Cape Grim BAPS
> > 
> >   There are 10 kinds of people . . .
> >   those who understand binary and those who don't.
> > 
> >  159 Nelson St, Smithton, Tasmania - Ph 03 6452 1629 - Fax 03 6452 2600
> 
> ___
> Evolution-hackers mailing list
> Evolution-hackers@gnome.org
> http://mail.gnome.org/mailman/listinfo/evolution-hackers

___
Evolution-hackers mailing list
Evolution-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/evolution-hackers