summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-02-28 18:16:03 (UTC)
committer zautrix <zautrix>2005-02-28 18:16:03 (UTC)
commit27466d3bc668e7a4c4bdedb6f407e14844908347 (patch) (unidiff)
treeecc5f637b7430d34161a267bd4047cdd0de056f3
parent16575cca67c9047de72530080dfeb5793a66c935 (diff)
downloadkdepimpi-27466d3bc668e7a4c4bdedb6f407e14844908347.zip
kdepimpi-27466d3bc668e7a4c4bdedb6f407e14844908347.tar.gz
kdepimpi-27466d3bc668e7a4c4bdedb6f407e14844908347.tar.bz2
ompi fixes
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--bin/kdepim/WhatsNew.txt2
-rw-r--r--bin/kdepim/kopiemail/germantranslation.txt14
-rw-r--r--kmicromail/editaccounts.cpp12
-rw-r--r--kmicromail/opiemail.cpp8
-rw-r--r--kmicromail/selectsmtp.cpp2
5 files changed, 27 insertions, 11 deletions
diff --git a/bin/kdepim/WhatsNew.txt b/bin/kdepim/WhatsNew.txt
index a9b6c87..943aaef 100644
--- a/bin/kdepim/WhatsNew.txt
+++ b/bin/kdepim/WhatsNew.txt
@@ -1,138 +1,140 @@
1Info about the changes in new versions of KDE-Pim/Pi 1Info about the changes in new versions of KDE-Pim/Pi
2 2
3********** VERSION 2.0.13 ************ 3********** VERSION 2.0.13 ************
4 4
5Fixed a problem in the addressee select dialog and made it more user friendly by adding a minimize splitter. 5Fixed a problem in the addressee select dialog and made it more user friendly by adding a minimize splitter.
6 6
7In the search dialog you can switch now the focus from search line edit to the list view by pressing key "arrow down". 7In the search dialog you can switch now the focus from search line edit to the list view by pressing key "arrow down".
8 8
9OM/Pi: 9OM/Pi:
10Fixed a refresh problem of outgoing/sent/sendfailed folders after sending mails. 10Fixed a refresh problem of outgoing/sent/sendfailed folders after sending mails.
11Added missing German translation.
12Added warning if path is specified in local folder settings of account config.
11 13
12********** VERSION 2.0.12 ************ 14********** VERSION 2.0.12 ************
13 15
14KO/Pi: 16KO/Pi:
15Fixed a bug in todo start/due date handling for non recurring todos with a start and due date. 17Fixed a bug in todo start/due date handling for non recurring todos with a start and due date.
16Fixed some layout problems in the KO/Pi agenda view when there were many conflicting itmes. 18Fixed some layout problems in the KO/Pi agenda view when there were many conflicting itmes.
17Fixed several problems of the keyboard focus in the desktop versions when opening the search dialog/event viewer. 19Fixed several problems of the keyboard focus in the desktop versions when opening the search dialog/event viewer.
18 20
19Fixed problem in pi-sync mode when wrong password was sent. 21Fixed problem in pi-sync mode when wrong password was sent.
20 22
21OM/Pi: 23OM/Pi:
22Fixed a crash when displaying mails with "Show mail as html" was checked in the config. 24Fixed a crash when displaying mails with "Show mail as html" was checked in the config.
23Added a check before displaying the mail if the mail is in html format, if "Show mail as html" is enabled. 25Added a check before displaying the mail if the mail is in html format, if "Show mail as html" is enabled.
24 26
25********** VERSION 2.0.11 ************ 27********** VERSION 2.0.11 ************
26 28
27Fixed some problems in pi-sync mode 29Fixed some problems in pi-sync mode
28(e.g. details of events were not synced properly) 30(e.g. details of events were not synced properly)
29 31
30********** VERSION 2.0.10 ************ 32********** VERSION 2.0.10 ************
31 33
32KO/Pi: 34KO/Pi:
33In the desktop versions the context menu in the search dialog was broken after introducing the What'sThis info for the list view. 35In the desktop versions the context menu in the search dialog was broken after introducing the What'sThis info for the list view.
34This is fixed. 36This is fixed.
35Changed the search dialog a bit to make it more user friendly. 37Changed the search dialog a bit to make it more user friendly.
36(E.g.: Removed message box about "no items found" and set key focus to search line edit after search). 38(E.g.: Removed message box about "no items found" and set key focus to search line edit after search).
37 39
38Added config option to hide the week number in KO/Pi toolbar. 40Added config option to hide the week number in KO/Pi toolbar.
39 41
40********** VERSION 2.0.9 ************ 42********** VERSION 2.0.9 ************
41 43
42Made month view icons for multiday events a bit nicer. 44Made month view icons for multiday events a bit nicer.
43Some minor fixes in KO/Pi 45Some minor fixes in KO/Pi
44(e.g. go to today did not work for new week view properly). 46(e.g. go to today did not work for new week view properly).
45 47
46 48
47********** VERSION 2.0.8 ************ 49********** VERSION 2.0.8 ************
48 50
49Fixed a problem in dependency info in the ipk files for the Zaurus. 51Fixed a problem in dependency info in the ipk files for the Zaurus.
50 52
51Added icon for the stealth new week view and made navigation more user friendly in monthview by adding a prev/next week button to the navigator bar. 53Added icon for the stealth new week view and made navigation more user friendly in monthview by adding a prev/next week button to the navigator bar.
52 54
53Added a "go today" button to the datepicker. 55Added a "go today" button to the datepicker.
54 56
55Added "created" and "last modified" to event/todo viewer (and What'sThis viewer) 57Added "created" and "last modified" to event/todo viewer (and What'sThis viewer)
56and made it configureable to show these values. 58and made it configureable to show these values.
57 59
58Fixed a problem for events (from external iCal files) that do have a duration but no end date. 60Fixed a problem for events (from external iCal files) that do have a duration but no end date.
59 61
60 62
61********** VERSION 2.0.7 ************ 63********** VERSION 2.0.7 ************
62 64
63Added global application font settings 65Added global application font settings
64(for all KDE-Pim/Pi apps) to the general settings. 66(for all KDE-Pim/Pi apps) to the general settings.
65 67
66Fixed a problem in OM/Pi when trying to login to some IMAP servers 68Fixed a problem in OM/Pi when trying to login to some IMAP servers
67(like the IMAP server of Apple: mail.mac.com ) 69(like the IMAP server of Apple: mail.mac.com )
68 70
69Added recurring todos to KO/Pi. 71Added recurring todos to KO/Pi.
70 72
71 73
72********** VERSION 2.0.6 ************ 74********** VERSION 2.0.6 ************
73 75
74Some bugfixes in the pi-sync mode. 76Some bugfixes in the pi-sync mode.
75Added German translation for pi-sync mode. 77Added German translation for pi-sync mode.
76 78
77KO/Pi: 79KO/Pi:
78Made the todolist using alternate background. 80Made the todolist using alternate background.
79 81
80Other minor fixes in KO/Pi. 82Other minor fixes in KO/Pi.
81 83
82 84
83********** VERSION 2.0.5 ************ 85********** VERSION 2.0.5 ************
84 86
85Bugfixes in KO/Pi. 87Bugfixes in KO/Pi.
86 88
87********** VERSION 2.0.4 ************ 89********** VERSION 2.0.4 ************
88 90
89KO/Pi: 91KO/Pi:
90Fixed problem loading translations for summary/location edit boxes in event/todo editor. 92Fixed problem loading translations for summary/location edit boxes in event/todo editor.
91 93
92Added a general "select week number" to the toolbar. 94Added a general "select week number" to the toolbar.
93 95
94Fixed some small problem of the new features introduced in version 2.0.3. 96Fixed some small problem of the new features introduced in version 2.0.3.
95 97
96Made it possible to specify one specific category as category color, 98Made it possible to specify one specific category as category color,
97if more than one categories are selected. 99if more than one categories are selected.
98 100
99Fixed a bug in saving colors for categories with non-ascii characters. 101Fixed a bug in saving colors for categories with non-ascii characters.
100(Like, e.g. German Umlauts). 102(Like, e.g. German Umlauts).
101Propably you have to set your colors again for those categories. 103Propably you have to set your colors again for those categories.
102 104
103 105
104********** VERSION 2.0.3 ************ 106********** VERSION 2.0.3 ************
105 107
106KO/Pi: 108KO/Pi:
107Added feature for changing alarm settings for many items at once: 109Added feature for changing alarm settings for many items at once:
108Open list view (or search dialog), select the desired items and choose in 110Open list view (or search dialog), select the desired items and choose in
109the popup menu: Set alarm for selected... 111the popup menu: Set alarm for selected...
110 112
111Added to the event/todo viewer the option to send an email to 113Added to the event/todo viewer the option to send an email to
112all attendees or all selected (with RSVP) attendees. 114all attendees or all selected (with RSVP) attendees.
113 115
114Made the week-month mode changing in month view faster. 116Made the week-month mode changing in month view faster.
115 117
116Made month view better useable with keyboard. 118Made month view better useable with keyboard.
117Now TAB key jumps to next cell with an event/todo. 119Now TAB key jumps to next cell with an event/todo.
118Scroll in cell with coursor keys, scroll in time (next week) with 120Scroll in cell with coursor keys, scroll in time (next week) with
119Shift/Control + coursorkeys. 121Shift/Control + coursorkeys.
120 122
121Fixed bug that the todo view flat mode was reset after first view update. 123Fixed bug that the todo view flat mode was reset after first view update.
122 124
123If a todo is displayed closed in the todo view, 125If a todo is displayed closed in the todo view,
124it is now displayed in overdue/due today color depending on the subtodos overdue/due today properties. 126it is now displayed in overdue/due today color depending on the subtodos overdue/due today properties.
125 127
126Added info about the numbers of years to the caption (title) information about a birthday event. 128Added info about the numbers of years to the caption (title) information about a birthday event.
127 129
128Made completion date in todo editor editable. 130Made completion date in todo editor editable.
129 131
130Added possibility to save/load templates for journals. 132Added possibility to save/load templates for journals.
131(Which is just a simple "save text to file" or "insert text from file". 133(Which is just a simple "save text to file" or "insert text from file".
132 134
133********** VERSION 2.0.2 ************ 135********** VERSION 2.0.2 ************
134 136
135KO/Pi: 137KO/Pi:
136Fixed the layout problem of the day label buttons 138Fixed the layout problem of the day label buttons
137of the agenda view introduced in version 2.0.1. 139of the agenda view introduced in version 2.0.1.
138 140
diff --git a/bin/kdepim/kopiemail/germantranslation.txt b/bin/kdepim/kopiemail/germantranslation.txt
index 0d858a8..86a9569 100644
--- a/bin/kdepim/kopiemail/germantranslation.txt
+++ b/bin/kdepim/kopiemail/germantranslation.txt
@@ -140,135 +140,139 @@
140{ "Use SSL","Benutze SSL" }, 140{ "Use SSL","Benutze SSL" },
141{ "User","Benutzer" }, 141{ "User","Benutzer" },
142{ "Password","Passwort" }, 142{ "Password","Passwort" },
143{ "Use Login","Benutze Login" }, 143{ "Use Login","Benutze Login" },
144{ "Newsgroup","Newsgroup" }, 144{ "Newsgroup","Newsgroup" },
145{ "Get newsgroup list from server","Hole Newsgroup Liste vom Server" }, 145{ "Get newsgroup list from server","Hole Newsgroup Liste vom Server" },
146{ "Filter:","Filter:" }, 146{ "Filter:","Filter:" },
147{ "Show subscribed","Zeige abbonnierte" }, 147{ "Show subscribed","Zeige abbonnierte" },
148{ "Groups","NewsGroups" }, 148{ "Groups","NewsGroups" },
149{ "Configure IMAP","Konfiguriere IMAP" }, 149{ "Configure IMAP","Konfiguriere IMAP" },
150{ "Use secure sockets:","Benutze sichere Verbindung:" }, 150{ "Use secure sockets:","Benutze sichere Verbindung:" },
151{ "ssh $SERVER exec","ssh $SERVER exec" }, 151{ "ssh $SERVER exec","ssh $SERVER exec" },
152{ "Prefix","Prefix" }, 152{ "Prefix","Prefix" },
153{ "Local storage folder:","Lokales Verzeichnis:" }, 153{ "Local storage folder:","Lokales Verzeichnis:" },
154{ "Get only messages smaller","Hole nur Nachrichten kleiner" }, 154{ "Get only messages smaller","Hole nur Nachrichten kleiner" },
155{ "kB","kB" }, 155{ "kB","kB" },
156{ "Leave Messages on Server","Belasse Nachrichten auf dem Server" }, 156{ "Leave Messages on Server","Belasse Nachrichten auf dem Server" },
157{ "Configure POP3","Konfiguriere POP3" }, 157{ "Configure POP3","Konfiguriere POP3" },
158{ "ssh $SERVER exec imapd","ssh $SERVER exec imapd" }, 158{ "ssh $SERVER exec imapd","ssh $SERVER exec imapd" },
159{ "Configure SMTP","Konfiguriere SMTP" }, 159{ "Configure SMTP","Konfiguriere SMTP" },
160{ "Name of the SMTP Server","Name des SMTP Servers" }, 160{ "Name of the SMTP Server","Name des SMTP Servers" },
161{ "Port of the SMTP Server","Port des SMTP Servers" }, 161{ "Port of the SMTP Server","Port des SMTP Servers" },
162{ "Fetching folder list","Hole Verzeichnis Liste" }, 162{ "Fetching folder list","Hole Verzeichnis Liste" },
163{ "Fetch ","Hole " }, 163{ "Fetch ","Hole " },
164{ "Fetching header list","Hole Titel Liste" }, 164{ "Fetching header list","Hole Titel Liste" },
165{ "Mailbox has %1 mails","Mailbox hat %1 Mails" }, 165{ "Mailbox has %1 mails","Mailbox hat %1 Mails" },
166{ "Read this mail","Lies diese Mail" }, 166{ "Read this mail","Lies diese Mail" },
167{ "Move/Copy this mail","Verschiebe/kopiere diese Mail" }, 167{ "Move/Copy this mail","Verschiebe/kopiere diese Mail" },
168{ "Delete this mail","Lösche diese Mail" }, 168{ "Delete this mail","Lösche diese Mail" },
169{ "Move/Copy all selected mail","Verschiebe/kopiere selektierte Mails" }, 169{ "Move/Copy all selected mail","Verschiebe/kopiere selektierte Mails" },
170{ "Delete all selected mails","Lösche alle selektierten Mails" }, 170{ "Delete all selected mails","Lösche alle selektierten Mails" },
171{ "Clear selection","Selektion aufheben" }, 171{ "Clear selection","Selektion aufheben" },
172{ "Reply","Antworten" }, 172{ "Reply","Antworten" },
173{ "Forward","Weiterleiten" }, 173{ "Forward","Weiterleiten" },
174{ "Attachments","Anhang" }, 174{ "Attachments","Anhang" },
175{ "Show Html","Zeige in html" }, 175{ "Show Html","Zeige in html" },
176{ "Description","Beschreibung" }, 176{ "Description","Beschreibung" },
177{ "Filename","Dateiname" }, 177{ "Filename","Dateiname" },
178{ "E-Mail by %1","E-Mail von %1" }, 178{ "E-Mail by %1","E-Mail von %1" },
179{ "Cc","Kopie" }, 179{ "Cc","Kopie" },
180{ "To","An" }, 180{ "To","An" },
181{ "From","Von" }, 181{ "From","Von" },
182{ "<p>Do you really want to delete this mail? <br><br>","<p>Wollen Sie diese Mail wirklich löschen? <br><br>" }, 182{ "<p>Do you really want to delete this mail? <br><br>","<p>Wollen Sie diese Mail wirklich löschen? <br><br>" },
183{ "Mailbox has %1 mail(s)","Mailbox hat %1 Mail(s)" }, 183{ "Mailbox has %1 mail(s)","Mailbox hat %1 Mail(s)" },
184{ "Move/Copie all mails","Verschiebe/kopiere alle Mails" }, 184{ "Move/Copie all mails","Verschiebe/kopiere alle Mails" },
185{ "Delete all mails","Lösche alle Mails" }, 185{ "Delete all mails","Lösche alle Mails" },
186{ "Create new subfolder","Neues Unterverzeichnis" }, 186{ "Create new subfolder","Neues Unterverzeichnis" },
187{ "Delete folder","Lösche Verzeichnis" }, 187{ "Delete folder","Lösche Verzeichnis" },
188{ "Refresh folder list","Aktualisiere Liste" }, 188{ "Refresh folder list","Aktualisiere Liste" },
189{ "Create new folder","Neues Verzeichnis" }, 189{ "Create new folder","Neues Verzeichnis" },
190{ "Disconnect","Diskonnect" }, 190{ "Disconnect","Diskonnect" },
191{ "Set offline","Gehe offline" }, 191{ "Set offline","Gehe offline" },
192{ "Select target box","Wähle Ziel Box" }, 192{ "Select target box","Wähle Ziel Box" },
193{ "<b>Store mail(s) to</b>","<b>Speichere Mail(s) nach</b>" }, 193{ "<b>Store mail(s) to</b>","<b>Speichere Mail(s) nach</b>" },
194{ "Folder:","Verzeichnis:" }, 194{ "Folder:","Verzeichnis:" },
195{ "Account:","Zugang:" }, 195{ "Account:","Zugang:" },
196{ "Prefix will prepend, do not enter","Pfad-Prefix wird vorangestellt" }, 196{ "Prefix will prepend, do not enter","Pfad-Prefix wird vorangestellt" },
197{ "Move mail(s)","Verschiebe Mail(s)" }, 197{ "Move mail(s)","Verschiebe Mail(s)" },
198{ "only mails smaller","nur Mails kleiner" }, 198{ "only mails smaller","nur Mails kleiner" },
199{ " kB"," kB" }, 199{ " kB"," kB" },
200{ " message %1 of %2"," Nachricht %1 von %2" }, 200{ " message %1 of %2"," Nachricht %1 von %2" },
201{ "Copying...","Am Kopieren..." }, 201{ "Copying...","Am Kopieren..." },
202{ "Copy message %1 of %2","Kopiere Nachricht %1 von %2" }, 202{ "Copy message %1 of %2","Kopiere Nachricht %1 von %2" },
203{ "Do you really want to delete\nall selected mails?","Wollen Sie wirklich alle\nselektierten Mails Löschen?" }, 203{ "Do you really want to delete\nall selected mails?","Wollen Sie wirklich alle\nselektierten Mails Löschen?" },
204{ "Delete All Mails","Lösche alle Mails" }, 204{ "Delete All Mails","Lösche alle Mails" },
205{ "Deleting ...","Am Löschen..." }, 205{ "Deleting ...","Am Löschen..." },
206{ "Delete message %1 of %2","Lösche Nachricht %1 von %2" }, 206{ "Delete message %1 of %2","Lösche Nachricht %1 von %2" },
207{ "Compose Message","Verfasse Nachricht" }, 207{ "Compose Message","Verfasse Nachricht" },
208{ "Reply-To","Antwort-An" }, 208{ "Reply-To","Antwort-An" },
209{ "BCC","BCC" }, 209{ "BCC","BCC" },
210{ "Signature","Signatur" }, 210{ "Signature","Signatur" },
211{ "CC","Kopie" }, 211{ "CC","Kopie" },
212{ "Options","Optionen" }, 212{ "Options","Optionen" },
213{ "Delete File","Lösche Datei" }, 213{ "Delete File","Lösche Datei" },
214{ "Add File","Füge Datei hinzu" }, 214{ "Add File","Füge Datei hinzu" },
215{ "Attachment","Anhang" }, 215{ "Attachment","Anhang" },
216{ "send later","sende später" }, 216{ "send later","sende später" },
217{ "use:","via:" }, 217{ "use:","via:" },
218{ "Save","Speichern" }, 218{ "Save","Speichern" },
219{ "Name","Name" }, 219{ "Name","Name" },
220{ "No Receiver spezified","Kein Empfänger angegeben" }, 220{ "No Receiver spezified","Kein Empfänger angegeben" },
221{ "Sending mail","Sende Mail" }, 221{ "Sending mail","Sende Mail" },
222{ "No","Nein" }, 222{ "No","Nein" },
223{ "Yes","Ja" }, 223{ "Yes","Ja" },
224{ "Store message into drafts?\n","Speichere Nachricht in Entwürfe?\n" }, 224{ "Store message into drafts?\n","Speichere Nachricht in Entwürfe?\n" },
225{ "Store message?","Nachricht speichern?" }, 225{ "Store message?","Nachricht speichern?" },
226{ "Select Type","Selektiere Typ" }, 226{ "Select Type","Selektiere Typ" },
227{ "Select Account Type","Wähle Art des Zugangs" }, 227{ "Select Account Type","Wähle Art des Zugangs" },
228{ "IMAP","IMAP (online lesen)" }, 228{ "IMAP","IMAP (online lesen)" },
229{ "POP3","POP3 (holen)" }, 229{ "POP3","POP3 (holen)" },
230{ "SMTP","SMTP (senden)" }, 230{ "SMTP","SMTP (senden)" },
231{ "<p>Do you really want to delete the selected Account?</p>","<p>Möchten Sie wirklich den ausgewählten Account löschen?</p>" }, 231{ "<p>Do you really want to delete the selected Account?</p>","<p>Möchten Sie wirklich den ausgewählten Account löschen?</p>" },
232{ "Question","Eine Frage..." }, 232{ "Question","Eine Frage..." },
233{ "Send this message?","Nachricht wirklich senden?" }, 233{ "Send this message?","Nachricht wirklich senden?" },
234{ "Stop editing message","Stop editing message" }, 234{ "Stop editing message","Stop editing message" },
235{ "Sending mail %1 of %2","Sende Mail %1 von %2" }, 235{ "Sending mail %1 of %2","Sende Mail %1 von %2" },
236{ "%1 of %2 bytes send","%1 von %2 Bytes gesendet" }, 236{ "%1 of %2 bytes send","%1 von %2 Bytes gesendet" },
237{ "Refresh header list","Aktualisiere Titel Liste" }, 237{ "Refresh header list","Aktualisiere Titel Liste" },
238{ "Define a smtp\n account first!\n","Bitte zuerst einen\nSMTP Account anlegen!\n" }, 238{ "Define a smtp\n account first!\n","Bitte zuerst einen\nSMTP Account anlegen!\n" },
239{ "Mail queue flushed","Gespeicherte Mails gesendet!" }, 239{ "Mail queue flushed","Gespeicherte Mails gesendet!" },
240{ "Please create an\nSMTP account first.\nThe SMTP is needed\nfor sending mail.\n","Bitte legen Sie einen\nSMTP Account an.\nDer SMTP Account wird\nfür das Versenden von\nMails benötigt!" }, 240{ "Please create an\nSMTP account first.\nThe SMTP is needed\nfor sending mail.\n","Bitte legen Sie einen\nSMTP Account an.\nDer SMTP Account wird\nfür das Versenden von\nMails benötigt!" },
241{ "Show next mail","Zeige nächste Mail" }, 241{ "Show next mail","Zeige nächste Mail" },
242{ "End of List","Ende der Liste" }, 242{ "End of List","Ende der Liste" },
243{ "Language","Sprache" }, 243{ "Language","Sprache" },
244{ "Time Format","Zeit Format" }, 244{ "Time Format","Zeit Format" },
245{ "%1 groups subscribed","%1 Guppen abboniert" }, 245{ "%1 groups subscribed","%1 Guppen abboniert" },
246{ "Your current storage dir is:\n%1\nYour mail is stored in:\n(storagedir)/apps/kopiemail/localmail","Aktuelles Speicherverzeichnis ist:\n%1\nIhre Mail wird gespeichert in:\n(speicherverz.)/apps/kopiemail/localmail" }, 246{ "Your current storage dir is:\n%1\nYour mail is stored in:\n(storagedir)/apps/kopiemail/localmail","Aktuelles Speicherverzeichnis ist:\n%1\nIhre Mail wird gespeichert in:\n(speicherverz.)/apps/kopiemail/localmail" },
247{ "<b>New data storage dir:</b>","<b>Neues Datenspeicherverzeichnis:</b>" }, 247{ "<b>New data storage dir:</b>","<b>Neues Datenspeicherverzeichnis:</b>" },
248{ "New dirs are created automatically","Neue Verzeichnisse werden aut. erstellt" }, 248{ "New dirs are created automatically","Neue Verzeichnisse werden aut. erstellt" },
249{ "Save settings","Speichere Einstellungen" }, 249{ "Save settings","Speichere Einstellungen" },
250{ "Save standard","Speichere Standard" }, 250{ "Save standard","Speichere Standard" },
251{ "<b>New settings are used\nafter a restart</b>","<b>Neue Einstellungen werden nach\neinem Neustart genutzt</b>" }, 251{ "<b>New settings are used\nafter a restart</b>","<b>Neue Einstellungen werden nach\neinem Neustart genutzt</b>" },
252{ "Settings are stored in\n%1","Einstellungen werden gespeichert in:\n%1" }, 252{ "Settings are stored in\n%1","Einstellungen werden gespeichert in:\n%1" },
253{ "Data storage path","Daten Speicherpfad" }, 253{ "Data storage path","Daten Speicherpfad" },
254{ "userdefined","benutzerdefiniert" }, 254{ "userdefined","benutzerdefiniert" },
255{ "Reply to this mail","Beantworte diese Mail" }, 255{ "Reply to this mail","Beantworte diese Mail" },
256{ "Su:","Be:" }, 256{ "Su:","Be:" },
257{ "Fr:","Vo:" }, 257{ "Fr:","Vo:" },
258{ "To:","An:" }, 258{ "To:","An:" },
259{ "Download Mail","Mail runterladen" }, 259{ "Download Mail","Mail runterladen" },
260{ "View Source","Zeige Source" }, 260{ "View Source","Zeige Source" },
261{ "Show "To" field in list view","Zeige "An" Feld in Listenansicht" }, 261{ "Show "To" field in list view","Zeige "An" Feld in Listenansicht" },
262{ "Show info fields at startup","Zeige Info Felder beim Start" }, 262{ "Show info fields at startup","Zeige Info Felder beim Start" },
263{ "Show "Subject" info field","Zeige "Betreff" Info Feld" }, 263{ "Show "Subject" info field","Zeige "Betreff" Info Feld" },
264{ "Show "From" info field","Zeige "Von" Info Feld" }, 264{ "Show "From" info field","Zeige "Von" Info Feld" },
265{ "Show "To" info field","Zeige "An" Info Feld" }, 265{ "Show "To" info field","Zeige "An" Info Feld" },
266{ "Mail saved as draft!","Mail als Entwurf gespeichert!" }, 266{ "Mail saved as draft!","Mail als Entwurf gespeichert!" },
267{ "Save signature","Speichere Signatur" }, 267{ "Save signature","Speichere Signatur" },
268{ "No paths allowed in\nlocal folder settings.\nPlease specify a folder\nname or leave empty\nto create local folder\nwith account name\nautomatically.","Beim lokalen Verzeichnis\nsind keine Pfade erlaubt.\nBitte Verzeichnisnamen\nangeben oder leer lassen\num automatisch ein lokales\nVerzeichnis mit dem\nZugangsnamen anzulegen." },
269{ "Do you really want to\nsend all queued mails?","Möchten sie wirklich\nalle Mails im\nOutgoing-Ordner\nsenden?" },
270{ "Sending all mails","Senden aller Mails" },
271{ "SMTP Account:","SMTP Zugang:" },
272{ "Select SMTP Account","Wähle SMTP Zugang" },
273{ "Error sending mail:\n%1","Fehler beim Mailversand:\n%1\nHaben Sie vergessen\ndie Post ausreichend\nzu frankieren? ;-)" },
274{ "Error sending mail","Fehler beim Mailversand" },
275{ "Error sending queued mail.\nBreaking.","Fehler beim Mailversand.\nAbbruch." },
268{ "","" }, 276{ "","" },
269{ "","" }, 277{ "","" },
270{ "","" }, 278{ "","" }, \ No newline at end of file
271{ "","" },
272{ "","" },
273{ "","" },
274{ "","" },
diff --git a/kmicromail/editaccounts.cpp b/kmicromail/editaccounts.cpp
index 8253c91..f1075c0 100644
--- a/kmicromail/editaccounts.cpp
+++ b/kmicromail/editaccounts.cpp
@@ -256,329 +256,341 @@ void EditAccounts::slotNewNews()
256} 256}
257 257
258void EditAccounts::slotEditNews() 258void EditAccounts::slotEditNews()
259{ 259{
260 if ( !newsList->currentItem() ) 260 if ( !newsList->currentItem() )
261 { 261 {
262 QMessageBox::information( this, i18n( "Error" ), 262 QMessageBox::information( this, i18n( "Error" ),
263 i18n( "<p>Please select an account.</p>" ), 263 i18n( "<p>Please select an account.</p>" ),
264 i18n( "Ok" ) ); 264 i18n( "Ok" ) );
265 return; 265 return;
266 } 266 }
267 267
268 Account *a = ((AccountListItem *) newsList->currentItem())->getAccount(); 268 Account *a = ((AccountListItem *) newsList->currentItem())->getAccount();
269 slotEditAccount( a ); 269 slotEditAccount( a );
270} 270}
271 271
272void EditAccounts::slotDeleteNews() 272void EditAccounts::slotDeleteNews()
273{ 273{
274 if ( !newsList->currentItem() ) 274 if ( !newsList->currentItem() )
275 { 275 {
276 QMessageBox::information( this, i18n( "Error" ), 276 QMessageBox::information( this, i18n( "Error" ),
277 i18n( "<p>Please select an account.</p>" ), 277 i18n( "<p>Please select an account.</p>" ),
278 i18n( "Ok" ) ); 278 i18n( "Ok" ) );
279 return; 279 return;
280 } 280 }
281 281
282 Account *a = ((AccountListItem *) newsList->currentItem())->getAccount(); 282 Account *a = ((AccountListItem *) newsList->currentItem())->getAccount();
283 slotDeleteAccount( a ); 283 slotDeleteAccount( a );
284} 284}
285 285
286void EditAccounts::slotAdjustColumns() 286void EditAccounts::slotAdjustColumns()
287{ 287{
288 int currPage = configTab->currentPageIndex(); 288 int currPage = configTab->currentPageIndex();
289 289
290 configTab->showPage( mailTab ); 290 configTab->showPage( mailTab );
291 mailList->setColumnWidth( 0, mailList->visibleWidth() - 50 ); 291 mailList->setColumnWidth( 0, mailList->visibleWidth() - 50 );
292 mailList->setColumnWidth( 1, 50 ); 292 mailList->setColumnWidth( 1, 50 );
293 293
294 configTab->showPage( newsTab ); 294 configTab->showPage( newsTab );
295 newsList->setColumnWidth( 0, newsList->visibleWidth() ); 295 newsList->setColumnWidth( 0, newsList->visibleWidth() );
296 296
297 configTab->setCurrentPage( currPage ); 297 configTab->setCurrentPage( currPage );
298} 298}
299 299
300void EditAccounts::accept() 300void EditAccounts::accept()
301{ 301{
302 settings->saveAccounts(); 302 settings->saveAccounts();
303 303
304 QDialog::accept(); 304 QDialog::accept();
305} 305}
306 306
307/** 307/**
308 * SelectMailType 308 * SelectMailType
309 */ 309 */
310 310
311SelectMailType::SelectMailType( QString *selection, QWidget *parent, const char *name, bool modal, WFlags flags ) 311SelectMailType::SelectMailType( QString *selection, QWidget *parent, const char *name, bool modal, WFlags flags )
312 : SelectMailTypeUI( parent, name, modal, flags ) 312 : SelectMailTypeUI( parent, name, modal, flags )
313{ 313{
314 selected = selection; 314 selected = selection;
315 selected->replace( 0, selected->length(), typeBox->currentText() ); 315 selected->replace( 0, selected->length(), typeBox->currentText() );
316 connect( typeBox, SIGNAL( activated(const QString&) ), SLOT( slotSelection(const QString&) ) ); 316 connect( typeBox, SIGNAL( activated(const QString&) ), SLOT( slotSelection(const QString&) ) );
317} 317}
318 318
319void SelectMailType::slotSelection( const QString &sel ) 319void SelectMailType::slotSelection( const QString &sel )
320{ 320{
321 selected->replace( 0, selected->length(), sel ); 321 selected->replace( 0, selected->length(), sel );
322} 322}
323 323
324/** 324/**
325 * IMAPconfig 325 * IMAPconfig
326 */ 326 */
327 327
328IMAPconfig::IMAPconfig( IMAPaccount *account, QWidget *parent, const char *name, bool modal, WFlags flags ) 328IMAPconfig::IMAPconfig( IMAPaccount *account, QWidget *parent, const char *name, bool modal, WFlags flags )
329 : IMAPconfigUI( parent, name, modal, flags ) 329 : IMAPconfigUI( parent, name, modal, flags )
330{ 330{
331 data = account; 331 data = account;
332 332
333 fillValues(); 333 fillValues();
334 334
335 connect( ComboBox1, SIGNAL( activated(int) ), SLOT( slotConnectionToggle(int) ) ); 335 connect( ComboBox1, SIGNAL( activated(int) ), SLOT( slotConnectionToggle(int) ) );
336 ComboBox1->insertItem( "Only if available", 0 ); 336 ComboBox1->insertItem( "Only if available", 0 );
337 ComboBox1->insertItem( "Always, Negotiated", 1 ); 337 ComboBox1->insertItem( "Always, Negotiated", 1 );
338 ComboBox1->insertItem( "Connect on secure port", 2 ); 338 ComboBox1->insertItem( "Connect on secure port", 2 );
339 ComboBox1->insertItem( "Run command instead", 3 ); 339 ComboBox1->insertItem( "Run command instead", 3 );
340 CommandEdit->hide(); 340 CommandEdit->hide();
341 ComboBox1->setCurrentItem( data->ConnectionType() ); 341 ComboBox1->setCurrentItem( data->ConnectionType() );
342} 342}
343 343
344void IMAPconfig::slotConnectionToggle( int index ) 344void IMAPconfig::slotConnectionToggle( int index )
345{ 345{
346 if ( index == 2 ) 346 if ( index == 2 )
347 { 347 {
348 portLine->setText( IMAP_SSL_PORT ); 348 portLine->setText( IMAP_SSL_PORT );
349 } 349 }
350 else if ( index == 3 ) 350 else if ( index == 3 )
351 { 351 {
352 portLine->setText( IMAP_PORT ); 352 portLine->setText( IMAP_PORT );
353 CommandEdit->show(); 353 CommandEdit->show();
354 } 354 }
355 else 355 else
356 { 356 {
357 portLine->setText( IMAP_PORT ); 357 portLine->setText( IMAP_PORT );
358 } 358 }
359} 359}
360 360
361void IMAPconfig::fillValues() 361void IMAPconfig::fillValues()
362{ 362{
363 accountLine->setText( data->getAccountName() ); 363 accountLine->setText( data->getAccountName() );
364 serverLine->setText( data->getServer() ); 364 serverLine->setText( data->getServer() );
365 portLine->setText( data->getPort() ); 365 portLine->setText( data->getPort() );
366 ComboBox1->setCurrentItem( data->ConnectionType() ); 366 ComboBox1->setCurrentItem( data->ConnectionType() );
367 userLine->setText( data->getUser() ); 367 userLine->setText( data->getUser() );
368 passLine->setText( data->getPassword() ); 368 passLine->setText( data->getPassword() );
369 prefixLine->setText(data->getPrefix()); 369 prefixLine->setText(data->getPrefix());
370 localFolder->setText( data->getLocalFolder() ); 370 localFolder->setText( data->getLocalFolder() );
371 int max = data->getMaxMailSize() ; 371 int max = data->getMaxMailSize() ;
372 if ( max ) { 372 if ( max ) {
373 CheckBoxDown->setChecked( true ); 373 CheckBoxDown->setChecked( true );
374 SpinBoxDown->setValue ( max ); 374 SpinBoxDown->setValue ( max );
375 } else { 375 } else {
376 CheckBoxDown->setChecked( false ); 376 CheckBoxDown->setChecked( false );
377 SpinBoxDown->setValue ( 5 ); 377 SpinBoxDown->setValue ( 5 );
378 } 378 }
379 CheckBoxLeaveOn->setChecked( data->getLeaveOnServer() ); 379 CheckBoxLeaveOn->setChecked( data->getLeaveOnServer() );
380} 380}
381 381
382void IMAPconfig::accept() 382void IMAPconfig::accept()
383{ 383{
384 if ( localFolder->text().contains("/") ||localFolder->text().contains("\\") ) {
385 QMessageBox::information( this, i18n( "Error" ),
386 i18n( "No paths allowed in\nlocal folder settings.\nPlease specify a folder\nname or leave empty\nto create local folder\nwith account name\nautomatically." ),
387 i18n( "Ok" ) );
388 return;
389 }
384 data->setAccountName( accountLine->text() ); 390 data->setAccountName( accountLine->text() );
385 data->setServer( serverLine->text() ); 391 data->setServer( serverLine->text() );
386 data->setPort( portLine->text() ); 392 data->setPort( portLine->text() );
387 data->setConnectionType( ComboBox1->currentItem() ); 393 data->setConnectionType( ComboBox1->currentItem() );
388 data->setUser( userLine->text() ); 394 data->setUser( userLine->text() );
389 data->setPassword( passLine->text() ); 395 data->setPassword( passLine->text() );
390 data->setPrefix(prefixLine->text()); 396 data->setPrefix(prefixLine->text());
391 data->setLocalFolder( localFolder->text() ); 397 data->setLocalFolder( localFolder->text() );
392 data->setMaxMailSize( CheckBoxDown->isChecked()?SpinBoxDown->value():0 ) ; 398 data->setMaxMailSize( CheckBoxDown->isChecked()?SpinBoxDown->value():0 ) ;
393 data->setLeaveOnServer( CheckBoxLeaveOn->isChecked() ); 399 data->setLeaveOnServer( CheckBoxLeaveOn->isChecked() );
394 400
395 QDialog::accept(); 401 QDialog::accept();
396} 402}
397 403
398/** 404/**
399 * POP3config 405 * POP3config
400 */ 406 */
401 407
402POP3config::POP3config( POP3account *account, QWidget *parent, const char *name, bool modal, WFlags flags ) 408POP3config::POP3config( POP3account *account, QWidget *parent, const char *name, bool modal, WFlags flags )
403 : POP3configUI( parent, name, modal, flags ) 409 : POP3configUI( parent, name, modal, flags )
404{ 410{
405 data = account; 411 data = account;
406 fillValues(); 412 fillValues();
407 413
408 connect( ComboBox1, SIGNAL( activated(int) ), SLOT( slotConnectionToggle(int) ) ); 414 connect( ComboBox1, SIGNAL( activated(int) ), SLOT( slotConnectionToggle(int) ) );
409 ComboBox1->insertItem( "Only if available", 0 ); 415 ComboBox1->insertItem( "Only if available", 0 );
410 ComboBox1->insertItem( "Always, Negotiated", 1 ); 416 ComboBox1->insertItem( "Always, Negotiated", 1 );
411 ComboBox1->insertItem( "Connect on secure port", 2 ); 417 ComboBox1->insertItem( "Connect on secure port", 2 );
412 ComboBox1->insertItem( "Run command instead", 3 ); 418 ComboBox1->insertItem( "Run command instead", 3 );
413 CommandEdit->hide(); 419 CommandEdit->hide();
414 ComboBox1->setCurrentItem( data->ConnectionType() ); 420 ComboBox1->setCurrentItem( data->ConnectionType() );
415} 421}
416 422
417void POP3config::slotConnectionToggle( int index ) 423void POP3config::slotConnectionToggle( int index )
418{ 424{
419 // 2 is ssl connection 425 // 2 is ssl connection
420 if ( index == 2 ) 426 if ( index == 2 )
421 { 427 {
422 portLine->setText( POP3_SSL_PORT ); 428 portLine->setText( POP3_SSL_PORT );
423 } 429 }
424 else if ( index == 3 ) 430 else if ( index == 3 )
425 { 431 {
426 portLine->setText( POP3_PORT ); 432 portLine->setText( POP3_PORT );
427 CommandEdit->show(); 433 CommandEdit->show();
428 } 434 }
429 else 435 else
430 { 436 {
431 portLine->setText( POP3_PORT ); 437 portLine->setText( POP3_PORT );
432 } 438 }
433} 439}
434 440
435void POP3config::fillValues() 441void POP3config::fillValues()
436{ 442{
437 accountLine->setText( data->getAccountName() ); 443 accountLine->setText( data->getAccountName() );
438 serverLine->setText( data->getServer() ); 444 serverLine->setText( data->getServer() );
439 portLine->setText( data->getPort() ); 445 portLine->setText( data->getPort() );
440 ComboBox1->setCurrentItem( data->ConnectionType() ); 446 ComboBox1->setCurrentItem( data->ConnectionType() );
441 userLine->setText( data->getUser() ); 447 userLine->setText( data->getUser() );
442 passLine->setText( data->getPassword() ); 448 passLine->setText( data->getPassword() );
443 localFolder->setText( data->getLocalFolder() ); 449 localFolder->setText( data->getLocalFolder() );
444 int max = data->getMaxMailSize() ; 450 int max = data->getMaxMailSize() ;
445 if ( max ) { 451 if ( max ) {
446 CheckBoxDown->setChecked( true ); 452 CheckBoxDown->setChecked( true );
447 SpinBoxDown->setValue ( max ); 453 SpinBoxDown->setValue ( max );
448 } else { 454 } else {
449 CheckBoxDown->setChecked( false ); 455 CheckBoxDown->setChecked( false );
450 SpinBoxDown->setValue ( 5 ); 456 SpinBoxDown->setValue ( 5 );
451 } 457 }
452 CheckBoxLeaveOn->setChecked( data->getLeaveOnServer() ); 458 CheckBoxLeaveOn->setChecked( data->getLeaveOnServer() );
453} 459}
454 460
455void POP3config::accept() 461void POP3config::accept()
456{ 462{
463 if ( localFolder->text().contains("/") ||localFolder->text().contains("\\") ) {
464 QMessageBox::information( this, i18n( "Error" ),
465 i18n( "No paths allowed in\nlocal folder settings.\nPlease specify a folder\nname or leave empty\nto create local folder\nwith account name\nautomatically." ),
466 i18n( "Ok" ) );
467 return;
468 }
457 data->setAccountName( accountLine->text() ); 469 data->setAccountName( accountLine->text() );
458 data->setServer( serverLine->text() ); 470 data->setServer( serverLine->text() );
459 data->setPort( portLine->text() ); 471 data->setPort( portLine->text() );
460 data->setConnectionType( ComboBox1->currentItem() ); 472 data->setConnectionType( ComboBox1->currentItem() );
461 data->setUser( userLine->text() ); 473 data->setUser( userLine->text() );
462 data->setPassword( passLine->text() ); 474 data->setPassword( passLine->text() );
463 data->setLocalFolder( localFolder->text() ); 475 data->setLocalFolder( localFolder->text() );
464 data->setMaxMailSize( CheckBoxDown->isChecked()?SpinBoxDown->value():0 ) ; 476 data->setMaxMailSize( CheckBoxDown->isChecked()?SpinBoxDown->value():0 ) ;
465 data->setLeaveOnServer( CheckBoxLeaveOn->isChecked() ); 477 data->setLeaveOnServer( CheckBoxLeaveOn->isChecked() );
466 478
467 QDialog::accept(); 479 QDialog::accept();
468} 480}
469 481
470/** 482/**
471 * SMTPconfig 483 * SMTPconfig
472 */ 484 */
473 485
474SMTPconfig::SMTPconfig( SMTPaccount *account, QWidget *parent, const char *name, bool modal, WFlags flags ) 486SMTPconfig::SMTPconfig( SMTPaccount *account, QWidget *parent, const char *name, bool modal, WFlags flags )
475 : SMTPconfigUI( parent, name, modal, flags ) 487 : SMTPconfigUI( parent, name, modal, flags )
476{ 488{
477 data = account; 489 data = account;
478 490
479 connect( loginBox, SIGNAL( toggled(bool) ), userLine, SLOT( setEnabled(bool) ) ); 491 connect( loginBox, SIGNAL( toggled(bool) ), userLine, SLOT( setEnabled(bool) ) );
480 connect( loginBox, SIGNAL( toggled(bool) ), passLine, SLOT( setEnabled(bool) ) ); 492 connect( loginBox, SIGNAL( toggled(bool) ), passLine, SLOT( setEnabled(bool) ) );
481 493
482 fillValues(); 494 fillValues();
483 QIconSet icon; 495 QIconSet icon;
484 //icon = SmallIcon("fileexport"); 496 //icon = SmallIcon("fileexport");
485 icon = SmallIcon("fileopen"); 497 icon = SmallIcon("fileopen");
486 SignaturButton->setText(""); 498 SignaturButton->setText("");
487 SignaturButton->setIconSet (icon ) ; 499 SignaturButton->setIconSet (icon ) ;
488 SignaturButton->setMaximumSize ( SignaturButton->sizeHint().height()+4,SignaturButton->sizeHint().height()) ; 500 SignaturButton->setMaximumSize ( SignaturButton->sizeHint().height()+4,SignaturButton->sizeHint().height()) ;
489 connect( SignaturButton, SIGNAL( clicked() ), this, SLOT( chooseSig() ) ); 501 connect( SignaturButton, SIGNAL( clicked() ), this, SLOT( chooseSig() ) );
490 connect( ComboBox1, SIGNAL( activated(int) ), SLOT( slotConnectionToggle(int) ) ); 502 connect( ComboBox1, SIGNAL( activated(int) ), SLOT( slotConnectionToggle(int) ) );
491 ComboBox1->insertItem( "Only if available", 0 ); 503 ComboBox1->insertItem( "Only if available", 0 );
492 ComboBox1->insertItem( "Always, Negotiated", 1 ); 504 ComboBox1->insertItem( "Always, Negotiated", 1 );
493 ComboBox1->insertItem( "Connect on secure port", 2 ); 505 ComboBox1->insertItem( "Connect on secure port", 2 );
494 ComboBox1->insertItem( "Run command instead", 3 ); 506 ComboBox1->insertItem( "Run command instead", 3 );
495 CommandEdit->hide(); 507 CommandEdit->hide();
496 ComboBox1->setCurrentItem( data->ConnectionType() ); 508 ComboBox1->setCurrentItem( data->ConnectionType() );
497} 509}
498void SMTPconfig::chooseSig() 510void SMTPconfig::chooseSig()
499{ 511{
500 QString lnk = KFileDialog::getOpenFileName( "", "Choose Signatur File", this ); 512 QString lnk = KFileDialog::getOpenFileName( "", "Choose Signatur File", this );
501 if ( !lnk.isEmpty() ) { 513 if ( !lnk.isEmpty() ) {
502 SignaturEdit->setText( lnk ); 514 SignaturEdit->setText( lnk );
503 } 515 }
504} 516}
505void SMTPconfig::slotConnectionToggle( int index ) 517void SMTPconfig::slotConnectionToggle( int index )
506{ 518{
507 // 2 is ssl connection 519 // 2 is ssl connection
508 if ( index == 2 ) 520 if ( index == 2 )
509 { 521 {
510 portLine->setText( SMTP_SSL_PORT ); 522 portLine->setText( SMTP_SSL_PORT );
511 } 523 }
512 else if ( index == 3 ) 524 else if ( index == 3 )
513 { 525 {
514 portLine->setText( SMTP_PORT ); 526 portLine->setText( SMTP_PORT );
515 CommandEdit->show(); 527 CommandEdit->show();
516 } 528 }
517 else 529 else
518 { 530 {
519 portLine->setText( SMTP_PORT ); 531 portLine->setText( SMTP_PORT );
520 } 532 }
521} 533}
522 534
523void SMTPconfig::fillValues() 535void SMTPconfig::fillValues()
524{ 536{
525 accountLine->setText( data->getAccountName() ); 537 accountLine->setText( data->getAccountName() );
526 serverLine->setText( data->getServer() ); 538 serverLine->setText( data->getServer() );
527 portLine->setText( data->getPort() ); 539 portLine->setText( data->getPort() );
528 ComboBox1->setCurrentItem( data->ConnectionType() ); 540 ComboBox1->setCurrentItem( data->ConnectionType() );
529 loginBox->setChecked( data->getLogin() ); 541 loginBox->setChecked( data->getLogin() );
530 userLine->setText( data->getUser() ); 542 userLine->setText( data->getUser() );
531 passLine->setText( data->getPassword() ); 543 passLine->setText( data->getPassword() );
532 SignaturEdit->setText( data->getSigFile() ); 544 SignaturEdit->setText( data->getSigFile() );
533} 545}
534 546
535void SMTPconfig::accept() 547void SMTPconfig::accept()
536{ 548{
537 data->setAccountName( accountLine->text() ); 549 data->setAccountName( accountLine->text() );
538 data->setServer( serverLine->text() ); 550 data->setServer( serverLine->text() );
539 data->setPort( portLine->text() ); 551 data->setPort( portLine->text() );
540 data->setConnectionType( ComboBox1->currentItem() ); 552 data->setConnectionType( ComboBox1->currentItem() );
541 data->setLogin( loginBox->isChecked() ); 553 data->setLogin( loginBox->isChecked() );
542 data->setUser( userLine->text() ); 554 data->setUser( userLine->text() );
543 data->setPassword( passLine->text() ); 555 data->setPassword( passLine->text() );
544 data->setSigFile( SignaturEdit->text() ); 556 data->setSigFile( SignaturEdit->text() );
545 557
546 QDialog::accept(); 558 QDialog::accept();
547} 559}
548 560
549/** 561/**
550 * NNTPconfig 562 * NNTPconfig
551 */ 563 */
552 564
553NNTPconfig::NNTPconfig( NNTPaccount *account, QWidget *parent, const char *name, bool modal, WFlags flags ) 565NNTPconfig::NNTPconfig( NNTPaccount *account, QWidget *parent, const char *name, bool modal, WFlags flags )
554 : NNTPconfigUI( parent, name, modal, flags ) 566 : NNTPconfigUI( parent, name, modal, flags )
555{ 567{
556 data = account; 568 data = account;
557 569
558 connect( loginBox, SIGNAL( toggled(bool) ), userLine, SLOT( setEnabled(bool) ) ); 570 connect( loginBox, SIGNAL( toggled(bool) ), userLine, SLOT( setEnabled(bool) ) );
559 connect( loginBox, SIGNAL( toggled(bool) ), passLine, SLOT( setEnabled(bool) ) ); 571 connect( loginBox, SIGNAL( toggled(bool) ), passLine, SLOT( setEnabled(bool) ) );
560 connect( GetNGButton, SIGNAL( clicked() ), this, SLOT( slotGetNG() ) ); 572 connect( GetNGButton, SIGNAL( clicked() ), this, SLOT( slotGetNG() ) );
561 connect( ShowSubcribed, SIGNAL( clicked() ), this, SLOT( slotShowSub() ) ); 573 connect( ShowSubcribed, SIGNAL( clicked() ), this, SLOT( slotShowSub() ) );
562 connect( FilterButton, SIGNAL( clicked() ), this, SLOT( slotShowFilter() ) ); 574 connect( FilterButton, SIGNAL( clicked() ), this, SLOT( slotShowFilter() ) );
563 fillValues(); 575 fillValues();
564 576
565 connect( sslBox, SIGNAL( toggled(bool) ), SLOT( slotSSL(bool) ) ); 577 connect( sslBox, SIGNAL( toggled(bool) ), SLOT( slotSSL(bool) ) );
566} 578}
567 579
568void NNTPconfig::slotShowSub() 580void NNTPconfig::slotShowSub()
569{ 581{
570 save(); 582 save();
571 data->save(); 583 data->save();
572 ListViewGroups->clear(); 584 ListViewGroups->clear();
573 for ( QStringList::Iterator it = subscribedGroups.begin(); it != subscribedGroups.end(); ++it ) { 585 for ( QStringList::Iterator it = subscribedGroups.begin(); it != subscribedGroups.end(); ++it ) {
574 QCheckListItem *item; 586 QCheckListItem *item;
575 item = new QCheckListItem( ListViewGroups, (*it), QCheckListItem::CheckBox ); 587 item = new QCheckListItem( ListViewGroups, (*it), QCheckListItem::CheckBox );
576 item->setOn( true ); 588 item->setOn( true );
577 } 589 }
578 topLevelWidget()->setCaption( i18n("%1 groups subscribed").arg( subscribedGroups.count())); 590 topLevelWidget()->setCaption( i18n("%1 groups subscribed").arg( subscribedGroups.count()));
579} 591}
580void NNTPconfig::slotShowFilter() 592void NNTPconfig::slotShowFilter()
581{ 593{
582 save(); 594 save();
583 data->save(); 595 data->save();
584 ListViewGroups->clear(); 596 ListViewGroups->clear();
diff --git a/kmicromail/opiemail.cpp b/kmicromail/opiemail.cpp
index 197f7ec..b701446 100644
--- a/kmicromail/opiemail.cpp
+++ b/kmicromail/opiemail.cpp
@@ -80,273 +80,271 @@ void OpieMail::message(const QCString &msg, const QByteArray &data)
80 mPendingEmail = QString::null; 80 mPendingEmail = QString::null;
81 mPendingName = QString::null; 81 mPendingName = QString::null;
82 if (msg == "writeMail(QString,QString)") 82 if (msg == "writeMail(QString,QString)")
83 { 83 {
84 //qDebug("writeMail(QString,QString) "); 84 //qDebug("writeMail(QString,QString) ");
85 QDataStream stream(data,IO_ReadOnly); 85 QDataStream stream(data,IO_ReadOnly);
86 stream >> mPendingName >> mPendingEmail; 86 stream >> mPendingName >> mPendingEmail;
87 // removing the whitespaces at beginning and end is needed! 87 // removing the whitespaces at beginning and end is needed!
88 QTimer::singleShot ( 50, this, SLOT(slotComposeMail() ) ); 88 QTimer::singleShot ( 50, this, SLOT(slotComposeMail() ) );
89 } 89 }
90 else if (msg == "newMail()") 90 else if (msg == "newMail()")
91 { 91 {
92 //qDebug("slotComposeMail() "); 92 //qDebug("slotComposeMail() ");
93 // we cannot call slotComposeMail(); directly, because may be executing a QCOP call 93 // we cannot call slotComposeMail(); directly, because may be executing a QCOP call
94 // and a QCOP call does not like a processevents in his execution 94 // and a QCOP call does not like a processevents in his execution
95 // with the Qtimer we call slotComposeMail() after we reached the main event loop 95 // with the Qtimer we call slotComposeMail() after we reached the main event loop
96 QTimer::singleShot ( 50, this, SLOT(slotComposeMail() ) ); 96 QTimer::singleShot ( 50, this, SLOT(slotComposeMail() ) );
97 // slotComposeMail(); 97 // slotComposeMail();
98 } 98 }
99 else if (msg == "newMail(QString)") 99 else if (msg == "newMail(QString)")
100 { 100 {
101 //qDebug(" newMail(QString)"); 101 //qDebug(" newMail(QString)");
102 QDataStream stream(data,IO_ReadOnly); 102 QDataStream stream(data,IO_ReadOnly);
103 stream >> mPendingName; 103 stream >> mPendingName;
104 // the format is 104 // the format is
105 // NAME <EMAIL>:SUBJECT 105 // NAME <EMAIL>:SUBJECT
106 QTimer::singleShot ( 50, this, SLOT(slotComposeMail() ) ); 106 QTimer::singleShot ( 50, this, SLOT(slotComposeMail() ) );
107 } else { 107 } else {
108 mPendingData = data; 108 mPendingData = data;
109 mPendingMessage = msg; 109 mPendingMessage = msg;
110 QTimer::singleShot ( 50, this, SLOT(slotExtAppHandler() ) ); 110 QTimer::singleShot ( 50, this, SLOT(slotExtAppHandler() ) );
111 } 111 }
112 112
113 //qDebug("END OpieMail::message "); 113 //qDebug("END OpieMail::message ");
114} 114}
115void OpieMail::slotExtAppHandler() 115void OpieMail::slotExtAppHandler()
116{ 116{
117 ExternalAppHandler::instance()->appMessage ( mPendingMessage, mPendingData ); 117 ExternalAppHandler::instance()->appMessage ( mPendingMessage, mPendingData );
118} 118}
119void OpieMail::slotwriteMail2(const QString& namemail ) 119void OpieMail::slotwriteMail2(const QString& namemail )
120{ 120{
121 //qDebug("OpieMail::slotwriteMail2 "); 121 //qDebug("OpieMail::slotwriteMail2 ");
122 //qApp->processEvents(); 122 //qApp->processEvents();
123 ComposeMail compose( settings, this, 0, true ); 123 ComposeMail compose( settings, this, 0, true );
124 if ( !namemail.isEmpty() ) { 124 if ( !namemail.isEmpty() ) {
125 QString to = namemail; 125 QString to = namemail;
126 if ( namemail.find( " <") > 1 ) { 126 if ( namemail.find( " <") > 1 ) {
127 to = "\"" +to.replace( QRegExp( " <"), "\" <") ; 127 to = "\"" +to.replace( QRegExp( " <"), "\" <") ;
128 } else 128 } else
129 if ( namemail.find( "<") > 1 ) { 129 if ( namemail.find( "<") > 1 ) {
130 to = "\"" +to.replace( QRegExp( "<"), "\" <") ; 130 to = "\"" +to.replace( QRegExp( "<"), "\" <") ;
131 } 131 }
132 int sub = to.find( ">:"); 132 int sub = to.find( ">:");
133 if ( sub > 0 ) { 133 if ( sub > 0 ) {
134 compose.setTo( to.left(sub+1) ); 134 compose.setTo( to.left(sub+1) );
135 compose.setSubject( to.mid(sub+2) ); 135 compose.setSubject( to.mid(sub+2) );
136 } else 136 } else
137 compose.setTo( to ); 137 compose.setTo( to );
138 } 138 }
139 compose.slotAdjustColumns(); 139 compose.slotAdjustColumns();
140#ifndef DESKTOP_VERSION 140#ifndef DESKTOP_VERSION
141 compose.showMaximized(); 141 compose.showMaximized();
142#endif 142#endif
143 mCurrentComposer = &compose; 143 mCurrentComposer = &compose;
144 compose.exec(); 144 compose.exec();
145 mCurrentComposer = 0; 145 mCurrentComposer = 0;
146 folderView->refreshOutgoing(); 146 folderView->refreshOutgoing();
147 raise(); 147 raise();
148 //qDebug("retttich "); 148 //qDebug("retttich ");
149} 149}
150void OpieMail::slotwriteMail(const QString&name,const QString&email) 150void OpieMail::slotwriteMail(const QString&name,const QString&email)
151{ 151{
152 // qDebug("OpieMail::slotwriteMail "); 152 // qDebug("OpieMail::slotwriteMail ");
153 ComposeMail compose( settings, this, 0, true ); 153 ComposeMail compose( settings, this, 0, true );
154 if (!email.isEmpty()) 154 if (!email.isEmpty())
155 { 155 {
156 if (!name.isEmpty()) 156 if (!name.isEmpty())
157 { 157 {
158 compose.setTo("\"" + name + "\"" + " " + "<"+ email + ">"); 158 compose.setTo("\"" + name + "\"" + " " + "<"+ email + ">");
159 } 159 }
160 else 160 else
161 { 161 {
162 compose.setTo(email); 162 compose.setTo(email);
163 } 163 }
164 } 164 }
165 compose.slotAdjustColumns(); 165 compose.slotAdjustColumns();
166#ifndef DESKTOP_VERSION 166#ifndef DESKTOP_VERSION
167 compose.showMaximized(); 167 compose.showMaximized();
168#endif 168#endif
169 169
170 mCurrentComposer = &compose; 170 mCurrentComposer = &compose;
171 compose.exec(); 171 compose.exec();
172 mCurrentComposer = 0; 172 mCurrentComposer = 0;
173 folderView->refreshOutgoing(); 173 folderView->refreshOutgoing();
174 raise(); 174 raise();
175} 175}
176 176
177void OpieMail::slotComposeMail() 177void OpieMail::slotComposeMail()
178{ 178{
179 if ( mPendingEmail == QString::null && mPendingName == QString::null) 179 if ( mPendingEmail == QString::null && mPendingName == QString::null)
180 slotwriteMail2( QString () ); 180 slotwriteMail2( QString () );
181 else { 181 else {
182 if ( mPendingEmail == QString::null ) 182 if ( mPendingEmail == QString::null )
183 slotwriteMail2( mPendingName ); 183 slotwriteMail2( mPendingName );
184 else 184 else
185 slotwriteMail( mPendingName, mPendingEmail ); 185 slotwriteMail( mPendingName, mPendingEmail );
186 } 186 }
187 //slotwriteMail(0l,0l); 187 //slotwriteMail(0l,0l);
188} 188}
189 189
190void OpieMail::slotSendQueued() 190void OpieMail::slotSendQueued()
191{ 191{
192 SMTPaccount *smtp = 0; 192 SMTPaccount *smtp = 0;
193 193
194 QList<Account> list = settings->getAccounts(); 194 QList<Account> list = settings->getAccounts();
195 QList<SMTPaccount> smtpList; 195 QList<SMTPaccount> smtpList;
196 smtpList.setAutoDelete(false); 196 smtpList.setAutoDelete(false);
197 Account *it; 197 Account *it;
198 for ( it = list.first(); it; it = list.next() ) 198 for ( it = list.first(); it; it = list.next() )
199 { 199 {
200 if ( it->getType() == MAILLIB::A_SMTP ) 200 if ( it->getType() == MAILLIB::A_SMTP )
201 { 201 {
202 smtp = static_cast<SMTPaccount *>(it); 202 smtp = static_cast<SMTPaccount *>(it);
203 smtpList.append(smtp); 203 smtpList.append(smtp);
204 } 204 }
205 } 205 }
206 if (smtpList.count()==0) 206 if (smtpList.count()==0)
207 { 207 {
208 QMessageBox::information(0,i18n("Info"),i18n("Define a smtp account first!\n")); 208 QMessageBox::information(0,i18n("Info"),i18n("Define a smtp\n account first!\n"));
209 return; 209 return;
210 } 210 }
211 if ( QMessageBox::warning(this, i18n("Sending all mails"), i18n("Do you really want to send\nall queued mails?" ) , QMessageBox::Yes, QMessageBox::No ) == QMessageBox::No ) 211 if ( QMessageBox::warning(this, i18n("Sending all mails"), i18n("Do you really want to\nsend all queued mails?" ) , QMessageBox::Yes, QMessageBox::No ) == QMessageBox::No )
212 return; 212 return;
213 if (smtpList.count()==1) 213 if (smtpList.count()==1)
214 { 214 {
215 smtp = smtpList.at(0); 215 smtp = smtpList.at(0);
216 } 216 }
217 else 217 else
218 { 218 {
219 smtp = 0; 219 smtp = 0;
220 selectsmtp selsmtp; 220 selectsmtp selsmtp;
221 selsmtp.setSelectionlist(&smtpList); 221 selsmtp.setSelectionlist(&smtpList);
222#ifndef DESKTOP_VERSION 222 selsmtp.resize( selsmtp.sizeHint() );
223 selsmtp.showMaximized();
224#endif
225 if ( selsmtp.exec() == QDialog::Accepted ) 223 if ( selsmtp.exec() == QDialog::Accepted )
226 { 224 {
227 smtp = selsmtp.selected_smtp(); 225 smtp = selsmtp.selected_smtp();
228 } 226 }
229 } 227 }
230 if (smtp) 228 if (smtp)
231 { 229 {
232 230
233 Global::statusMessage("Sending mails...!"); 231 Global::statusMessage("Sending mails...!");
234 SMTPwrapper * wrap = new SMTPwrapper(smtp); 232 SMTPwrapper * wrap = new SMTPwrapper(smtp);
235 if ( wrap->flushOutbox() ) 233 if ( wrap->flushOutbox() )
236 { 234 {
237 Global::statusMessage("Mails sent!"); 235 Global::statusMessage("Mails sent!");
238 } 236 }
239 delete wrap; 237 delete wrap;
240 } 238 }
241 folderView->refreshOutgoing(); 239 folderView->refreshOutgoing();
242} 240}
243 241
244void OpieMail::slotSearchMails() 242void OpieMail::slotSearchMails()
245{ 243{
246 qDebug("OpieMail::slotSearchMails():not implemented "); 244 qDebug("OpieMail::slotSearchMails():not implemented ");
247} 245}
248 246
249void OpieMail::slotEditSettings() 247void OpieMail::slotEditSettings()
250{ 248{
251 249
252 KOPrefsDialog settingsDialog( this, "koprefs", true ); 250 KOPrefsDialog settingsDialog( this, "koprefs", true );
253#ifndef DESKTOP_VERSION 251#ifndef DESKTOP_VERSION
254 settingsDialog.showMaximized(); 252 settingsDialog.showMaximized();
255#endif 253#endif
256 settingsDialog.exec(); 254 settingsDialog.exec();
257 255
258 slotSetCodec( KOPrefs::instance()->mCurrentCodec ); 256 slotSetCodec( KOPrefs::instance()->mCurrentCodec );
259 // KApplication::execDialog(settingsDialog); 257 // KApplication::execDialog(settingsDialog);
260} 258}
261 259
262void OpieMail::slotEditAccounts() 260void OpieMail::slotEditAccounts()
263{ 261{
264 EditAccounts eaDialog( settings, this, 0, true ); 262 EditAccounts eaDialog( settings, this, 0, true );
265 eaDialog.slotAdjustColumns(); 263 eaDialog.slotAdjustColumns();
266#ifndef DESKTOP_VERSION 264#ifndef DESKTOP_VERSION
267 eaDialog.showMaximized(); 265 eaDialog.showMaximized();
268#endif 266#endif
269 eaDialog.exec(); 267 eaDialog.exec();
270 if ( settings ) delete settings; 268 if ( settings ) delete settings;
271 settings = new Settings(); 269 settings = new Settings();
272 270
273 folderView->populate( settings->getAccounts() ); 271 folderView->populate( settings->getAccounts() );
274} 272}
275void OpieMail::replyMail() 273void OpieMail::replyMail()
276{ 274{
277 275
278 QListViewItem*item = mailView->currentItem(); 276 QListViewItem*item = mailView->currentItem();
279 if (!item) return; 277 if (!item) return;
280 RecMailP mail = ((MailListViewItem*)item)->data(); 278 RecMailP mail = ((MailListViewItem*)item)->data();
281 RecBodyP body = folderView->fetchBody(mail); 279 RecBodyP body = folderView->fetchBody(mail);
282 280
283 QString rtext; 281 QString rtext;
284 rtext += QString("* %1 wrote on %2:\n") // no i18n on purpose 282 rtext += QString("* %1 wrote on %2:\n") // no i18n on purpose
285 .arg( mail->getFrom()) 283 .arg( mail->getFrom())
286 .arg( mail->getDate()); 284 .arg( mail->getDate());
287 285
288 QString text = body->Bodytext(); 286 QString text = body->Bodytext();
289 QStringList lines = QStringList::split(QRegExp("\\n"), text); 287 QStringList lines = QStringList::split(QRegExp("\\n"), text);
290 QStringList::Iterator it; 288 QStringList::Iterator it;
291 for (it = lines.begin(); it != lines.end(); it++) 289 for (it = lines.begin(); it != lines.end(); it++)
292 { 290 {
293 rtext += "> " + *it + "\n"; 291 rtext += "> " + *it + "\n";
294 } 292 }
295 rtext += "\n"; 293 rtext += "\n";
296 294
297 QString prefix; 295 QString prefix;
298 if ( mail->getSubject().find(QRegExp("^Re: .*$")) != -1) prefix = ""; 296 if ( mail->getSubject().find(QRegExp("^Re: .*$")) != -1) prefix = "";
299 else prefix = "Re: "; // no i18n on purpose 297 else prefix = "Re: "; // no i18n on purpose
300 298
301 Settings *settings = new Settings(); 299 Settings *settings = new Settings();
302 ComposeMail composer( settings ,this, 0, true); 300 ComposeMail composer( settings ,this, 0, true);
303 if (mail->Replyto().isEmpty()) { 301 if (mail->Replyto().isEmpty()) {
304 composer.setTo( mail->getFrom()); 302 composer.setTo( mail->getFrom());
305 } else { 303 } else {
306 composer.setTo( mail->Replyto()); 304 composer.setTo( mail->Replyto());
307 } 305 }
308 composer.setSubject( prefix + mail->getSubject()); 306 composer.setSubject( prefix + mail->getSubject());
309 composer.setMessage( rtext ); 307 composer.setMessage( rtext );
310 composer.setInReplyTo( mail->Msgid()); 308 composer.setInReplyTo( mail->Msgid());
311 composer.setCharset( body->getCharset() ); 309 composer.setCharset( body->getCharset() );
312 310
313 mCurrentComposer = &composer; 311 mCurrentComposer = &composer;
314 if ( QDialog::Accepted == KApplication::execDialog( &composer ) ) 312 if ( QDialog::Accepted == KApplication::execDialog( &composer ) )
315 { 313 {
316 mail->Wrapper()->answeredMail(mail); 314 mail->Wrapper()->answeredMail(mail);
317 } 315 }
318 mCurrentComposer = 0; 316 mCurrentComposer = 0;
319 folderView->refreshOutgoing(); 317 folderView->refreshOutgoing();
320 delete settings; 318 delete settings;
321 319
322} 320}
323void OpieMail::closeViewMail(ViewMail * vm) 321void OpieMail::closeViewMail(ViewMail * vm)
324{ 322{
325 vm->hide(); 323 vm->hide();
326} 324}
327 325
328void OpieMail::slotDownloadMail( ) 326void OpieMail::slotDownloadMail( )
329{ 327{
330 QListViewItem*item = mailView->currentItem(); 328 QListViewItem*item = mailView->currentItem();
331 if (!item ) { 329 if (!item ) {
332 Global::statusMessage("Error: No item slected!"); 330 Global::statusMessage("Error: No item slected!");
333 return; 331 return;
334 } 332 }
335 RecMailP mail = ((MailListViewItem*)item)->data(); 333 RecMailP mail = ((MailListViewItem*)item)->data();
336 Account * acc = mail->Wrapper()->getAccount(); 334 Account * acc = mail->Wrapper()->getAccount();
337 if ( !acc ) { 335 if ( !acc ) {
338 Global::statusMessage("Mail is already stored locally!"); 336 Global::statusMessage("Mail is already stored locally!");
339 return; 337 return;
340 } 338 }
341 QString lfName = acc->getLocalFolder(); 339 QString lfName = acc->getLocalFolder();
342 //qDebug("local folder " + lfName ); 340 //qDebug("local folder " + lfName );
343 if ( lfName.isEmpty() ) 341 if ( lfName.isEmpty() )
344 lfName = acc->getAccountName(); 342 lfName = acc->getAccountName();
345 AbstractMail* targetMail = folderView->allAccounts()[0]->getWrapper(); 343 AbstractMail* targetMail = folderView->allAccounts()[0]->getWrapper();
346 //qDebug("target %d %d ",targetMail,mail->Wrapper() ); 344 //qDebug("target %d %d ",targetMail,mail->Wrapper() );
347 if ( targetMail == mail->Wrapper() ) { 345 if ( targetMail == mail->Wrapper() ) {
348 Global::statusMessage("Mail is already locally stored!"); 346 Global::statusMessage("Mail is already locally stored!");
349 return; 347 return;
350 } 348 }
351 if ( !targetMail->createMbox(lfName)) { 349 if ( !targetMail->createMbox(lfName)) {
352 Global::statusMessage("Error creating folder!"); 350 Global::statusMessage("Error creating folder!");
diff --git a/kmicromail/selectsmtp.cpp b/kmicromail/selectsmtp.cpp
index ff8b524..10b6d79 100644
--- a/kmicromail/selectsmtp.cpp
+++ b/kmicromail/selectsmtp.cpp
@@ -1,64 +1,64 @@
1#include "selectsmtp.h" 1#include "selectsmtp.h"
2#include <libmailwrapper/mailwrapper.h> 2#include <libmailwrapper/mailwrapper.h>
3 3
4#include <qcombobox.h> 4#include <qcombobox.h>
5#include <qcheckbox.h> 5#include <qcheckbox.h>
6#include <qmessagebox.h> 6#include <qmessagebox.h>
7#include <qpushbutton.h> 7#include <qpushbutton.h>
8#include <qlineedit.h> 8#include <qlineedit.h>
9#include <qlabel.h> 9#include <qlabel.h>
10#include <qtabwidget.h> 10#include <qtabwidget.h>
11#include <qlistview.h> 11#include <qlistview.h>
12#include <klocale.h> 12#include <klocale.h>
13selectsmtp::selectsmtp(QWidget* parent, const char* name, bool modal, WFlags fl) 13selectsmtp::selectsmtp(QWidget* parent, const char* name, bool modal, WFlags fl)
14 : selectstoreui(parent,name,modal,fl) 14 : selectstoreui(parent,name,modal,fl)
15{ 15{
16 //m_smtpList.setAutoDelete(false); 16 //m_smtpList.setAutoDelete(false);
17 m_smtpList = 0; 17 m_smtpList = 0;
18 //headlabel->setText(i18n("<center>Select SMTP account to use</center>")); 18 //headlabel->setText(i18n("<center>Select SMTP account to use</center>"));
19 headlabel->hide(); 19 headlabel->hide();
20 folderSelection->hide(); 20 folderSelection->hide();
21 folderLabel->hide(); 21 folderLabel->hide();
22 accountlabel->setText("<center>SMTP Accounts</center>"); 22 //accountlabel->setText(i18n("SMTP\nAccount:"));
23 Line1->hide(); 23 Line1->hide();
24 newFoldersel->hide(); 24 newFoldersel->hide();
25 newFolderedit->hide(); 25 newFolderedit->hide();
26 newFolderLabel->hide(); 26 newFolderLabel->hide();
27 Line2->hide(); 27 Line2->hide();
28 selMove->hide(); 28 selMove->hide();
29 m_current_smtp = 0; 29 m_current_smtp = 0;
30 setCaption(i18n("Select SMTP Account")); 30 setCaption(i18n("Select SMTP Account"));
31} 31}
32 32
33selectsmtp::~selectsmtp() 33selectsmtp::~selectsmtp()
34{ 34{
35} 35}
36 36
37void selectsmtp::slotAccountselected(int which) 37void selectsmtp::slotAccountselected(int which)
38{ 38{
39 if (!m_smtpList || (unsigned)which>=m_smtpList->count() || which < 0) { 39 if (!m_smtpList || (unsigned)which>=m_smtpList->count() || which < 0) {
40 m_current_smtp = 0; 40 m_current_smtp = 0;
41 return; 41 return;
42 } 42 }
43 m_current_smtp = m_smtpList->at(which); 43 m_current_smtp = m_smtpList->at(which);
44} 44}
45 45
46void selectsmtp::setSelectionlist(QList<SMTPaccount>*list) 46void selectsmtp::setSelectionlist(QList<SMTPaccount>*list)
47{ 47{
48 m_smtpList = list; 48 m_smtpList = list;
49 accountSelection->clear(); 49 accountSelection->clear();
50 if (!m_smtpList || m_smtpList->count()==0) { 50 if (!m_smtpList || m_smtpList->count()==0) {
51 accountSelection->setEnabled(false); 51 accountSelection->setEnabled(false);
52 return; 52 return;
53 } 53 }
54 accountSelection->setEnabled(true); 54 accountSelection->setEnabled(true);
55 for (unsigned i = 0; m_smtpList!=0 && i < m_smtpList->count(); ++i) { 55 for (unsigned i = 0; m_smtpList!=0 && i < m_smtpList->count(); ++i) {
56 accountSelection->insertItem( m_smtpList->at(i)->getAccountName()); 56 accountSelection->insertItem( m_smtpList->at(i)->getAccountName());
57 } 57 }
58 m_current_smtp = m_smtpList->at(0); 58 m_current_smtp = m_smtpList->at(0);
59} 59}
60 60
61SMTPaccount*selectsmtp::selected_smtp() 61SMTPaccount*selectsmtp::selected_smtp()
62{ 62{
63 return m_current_smtp; 63 return m_current_smtp;
64} 64}