~cairo-dock-team/ubuntu/precise/cairo-dock-plug-ins/3.0.0.0rc1

« back to all changes in this revision

Viewing changes to mail/src/cd-mail-applet-accounts.c

  • Committer: Bazaar Package Importer
  • Author(s): Julien Lavergne, Matthieu Baerts (matttbe), Julien Lavergne
  • Date: 2009-10-05 19:27:17 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20091005192717-mvqvb395guktr401
Tags: 2.0.9-0ubuntu1
[ Matthieu Baerts (matttbe) ]
* New upstream release (LP: #435590)
* debian/control: 
 - Remove ${shlibs:Depends} for integration plug-ins to avoid
   pulling shared libraries which are detected automatically.
 - Added curl as depends for cairo-dock-plug-ins
* debian/rules:
 - Add --enable-dnd2share and --enable-musicplayer to enable new applets.
 - Remove --enable-rhythmbox and --enable-nvidia to remove those applets,
   not maintained upstream.
* Update *.install to take all generated applets.

[ Julien Lavergne ]
* Adjust changelog with Daniel Holbach suggestions.
* cairo-dock-plug-ins.changelogs:  Install specific changelog for 2.0.9
* Build-depends on cairo-dock-dev (>= 2.0.9)

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
18
*/
19
19
 
20
 
/******************************************************************************
21
 
 
22
 
This file is a part of the cairo-dock program,
23
 
released under the terms of the GNU General Public License.
24
 
 
25
 
Written by Christophe Chapuis (for any bug report, please mail me to tofe@users.berlios.de)
26
 
 
27
 
******************************************************************************/
28
 
 
29
20
#include <string.h>
30
21
#include <cairo-dock.h>
31
22
#include <libetpan/libetpan.h>
36
27
 
37
28
#define _add_icon(pMailAccount)\
38
29
                pIcon = g_new0 (Icon, 1);\
39
 
                pIcon->acName = g_strdup (pMailAccount->name);\
40
 
                pIcon->acFileName = g_strdup (myConfig.cNoMailUserImage);\
 
30
                pIcon->cName = g_strdup (pMailAccount->name);\
 
31
                pIcon->cFileName = g_strdup (myConfig.cNoMailUserImage);\
41
32
                pIcon->cQuickInfo = g_strdup ("...");\
42
33
                pIcon->fOrder = i;\
43
34
                pIcon->fScale = 1.;\
44
35
                pIcon->fAlpha = 1.;\
45
36
                pIcon->fWidthFactor = 1.;\
46
37
                pIcon->fHeightFactor = 1.;\
47
 
                pIcon->acCommand = g_strdup ("none");\
48
 
                pIcon->cParentDockName = g_strdup (myIcon->acName);\
49
 
                cd_debug (" + %s (%s)\n", pIcon->acName, pIcon->acFileName);\
 
38
                pIcon->cCommand = g_strdup ("none");\
 
39
                pIcon->cParentDockName = g_strdup (myIcon->cName);\
 
40
                cd_debug (" + %s (%s)\n", pIcon->cName, pIcon->cFileName);\
50
41
                pIconList = g_list_append (pIconList, pIcon);\
51
42
                pMailAccount->icon = pIcon;
52
43
 
472
463
                                r = pop3_mailstorage_init(pMailAccount->storage, pMailAccount->server, pMailAccount->port,
473
464
                                        NULL, pMailAccount->connection_type,
474
465
                                        pMailAccount->auth_type, pMailAccount->user, pMailAccount->password,
475
 
                                        FALSE /*cached*/, NULL /*cache_directory*/, NULL /*flags_directory*/);
 
466
                                        myData.cWorkingDirPath!=NULL?TRUE:FALSE /*cached*/, myData.cWorkingDirPath /*cache_directory*/, myData.cWorkingDirPath /*flags_directory*/);
476
467
                        break;
477
468
 
478
469
                        case IMAP_STORAGE:
479
470
                                r = imap_mailstorage_init(pMailAccount->storage, pMailAccount->server, pMailAccount->port,
480
471
                                        NULL, pMailAccount->connection_type,
481
472
                                        IMAP_AUTH_TYPE_PLAIN, pMailAccount->user, pMailAccount->password,
482
 
                                        FALSE /*cached*/, NULL /*cache_directory*/);
 
473
                                        myData.cWorkingDirPath!=NULL?TRUE:FALSE /*cached*/, myData.cWorkingDirPath /*cache_directory*/);
483
474
                        break;
484
475
 
485
476
                        case NNTP_STORAGE:
486
477
                                r = nntp_mailstorage_init(pMailAccount->storage, pMailAccount->server, pMailAccount->port,
487
478
                                        NULL, pMailAccount->connection_type,
488
479
                                        NNTP_AUTH_TYPE_PLAIN, pMailAccount->user, pMailAccount->password,
489
 
                                        FALSE /*cached*/, NULL /*cache_directory*/, NULL /*flags_directory*/);
 
480
                                        myData.cWorkingDirPath!=NULL?TRUE:FALSE /*cached*/, myData.cWorkingDirPath /*cache_directory*/, myData.cWorkingDirPath /*flags_directory*/);
490
481
                        break;
491
482
 
492
483
                        case MBOX_STORAGE:
493
484
                                r = mbox_mailstorage_init(pMailAccount->storage, pMailAccount->path,
494
 
                                        FALSE /*cached*/, NULL /*cache_directory*/, NULL /*flags_directory*/);
 
485
                                        myData.cWorkingDirPath!=NULL?TRUE:FALSE /*cached*/, myData.cWorkingDirPath /*cache_directory*/, myData.cWorkingDirPath /*flags_directory*/);
495
486
                        break;
496
487
 
497
488
                        case MH_STORAGE:
498
489
                                r = mh_mailstorage_init(pMailAccount->storage, pMailAccount->path,
499
 
                                        FALSE /*cached*/, NULL /*cache_directory*/, NULL /*flags_directory*/);
 
490
                                        myData.cWorkingDirPath!=NULL?TRUE:FALSE /*cached*/, myData.cWorkingDirPath /*cache_directory*/, myData.cWorkingDirPath /*flags_directory*/);
500
491
                        break;
501
492
                        
502
493
                        case MAILDIR_STORAGE:
503
494
                                r = maildir_mailstorage_init(pMailAccount->storage, pMailAccount->path,
504
 
                                        FALSE /*cached*/, NULL /*cache_directory*/, NULL /*flags_directory*/);
 
495
                                        myData.cWorkingDirPath!=NULL?TRUE:FALSE /*cached*/, myData.cWorkingDirPath /*cache_directory*/, myData.cWorkingDirPath /*flags_directory*/);
505
496
                        break;
506
497
                        
507
498
                        case FEED_STORAGE:
508
499
                                r = feed_mailstorage_init(pMailAccount->storage, pMailAccount->path,
509
 
                                        FALSE /*cached*/, NULL /*cache_directory*/, NULL /*flags_directory*/);
 
500
                                        myData.cWorkingDirPath!=NULL?TRUE:FALSE /*cached*/, myData.cWorkingDirPath /*cache_directory*/, myData.cWorkingDirPath /*flags_directory*/);
510
501
                        break;
511
502
                        default :
512
503
                                r = -1;
579
570
        g_list_foreach (pMailAccount->pUnseenMessageList, (GFunc) g_free, NULL);
580
571
        g_list_free (pMailAccount->pUnseenMessageList);
581
572
        
 
573
        g_list_foreach (pMailAccount->pUnseenMessageUid, (GFunc) g_free, NULL);
 
574
        g_list_free (pMailAccount->pUnseenMessageUid);
 
575
        
582
576
        g_free( pMailAccount );
583
577
}
584
578