Monotone-Parent: eafd3c0c3b5dc6879988981674509a8d1ccfc286
Monotone-Revision: b2324fd0b056d26c1f593b22e0516160fd06bd3c Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-08-31T13:49:31 Monotone-Branch: ca.inverse.sogomaint-2.0.2
parent
f591023b2c
commit
d4c7a0520a
16
ChangeLog
16
ChangeLog
|
@ -1,3 +1,19 @@
|
||||||
|
2010-08-31 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||||
|
|
||||||
|
* UI/WebServerResources/UIxMailEditor.js
|
||||||
|
(onMenuCheckReturnReceipt): new function.
|
||||||
|
(getMenus): added entries for initializing the new "Options" menu
|
||||||
|
as well as the "Priority" menu.
|
||||||
|
|
||||||
|
* UI/MailerUI/UIxMailEditor.m (-setReceipt, -receipt): new
|
||||||
|
accessors for the "receipt" hidden input field, meant to interract
|
||||||
|
the the "return receipt" entry in the "Options" menu.
|
||||||
|
(-setReplyTo, -replyTo): removed obsolete methods.
|
||||||
|
|
||||||
|
* SoObjects/Mailer/SOGoDraftObject.m (-setHeaders:)
|
||||||
|
(-mimeHeaderMapWithHeaders:excluding:): added handling for the
|
||||||
|
"Disposition-Notification-To" header.
|
||||||
|
|
||||||
2010-08-30 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
2010-08-30 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||||
|
|
||||||
* Tools/SOGoToolRemoveDoubles.m, UI/MailerUI/UIxMailFormatter.m:
|
* Tools/SOGoToolRemoveDoubles.m, UI/MailerUI/UIxMailFormatter.m:
|
||||||
|
|
|
@ -186,7 +186,7 @@ static NSString *userAgent = nil;
|
||||||
{
|
{
|
||||||
id headerValue;
|
id headerValue;
|
||||||
unsigned int count;
|
unsigned int count;
|
||||||
NSString *messageID, *priority;
|
NSString *messageID, *priority, *pureSender;
|
||||||
|
|
||||||
for (count = 0; count < 8; count++)
|
for (count = 0; count < 8; count++)
|
||||||
{
|
{
|
||||||
|
@ -206,7 +206,6 @@ static NSString *userAgent = nil;
|
||||||
}
|
}
|
||||||
|
|
||||||
priority = [newHeaders objectForKey: @"priority"];
|
priority = [newHeaders objectForKey: @"priority"];
|
||||||
|
|
||||||
if (!priority || [priority isEqualToString: @"NORMAL"])
|
if (!priority || [priority isEqualToString: @"NORMAL"])
|
||||||
{
|
{
|
||||||
[headers removeObjectForKey: @"X-Priority"];
|
[headers removeObjectForKey: @"X-Priority"];
|
||||||
|
@ -227,6 +226,15 @@ static NSString *userAgent = nil;
|
||||||
{
|
{
|
||||||
[headers setObject: @"5 (Lowest)" forKey: @"X-Priority"];
|
[headers setObject: @"5 (Lowest)" forKey: @"X-Priority"];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ([[newHeaders objectForKey: @"receipt"] isEqualToString: @"true"])
|
||||||
|
{
|
||||||
|
pureSender = [[newHeaders objectForKey: @"from"] pureEMailAddress];
|
||||||
|
if (pureSender)
|
||||||
|
[headers setObject: pureSender forKey: @"Disposition-Notification-To"];
|
||||||
|
}
|
||||||
|
else
|
||||||
|
[headers removeObjectForKey: @"Disposition-Notification-To"];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSDictionary *) headers
|
- (NSDictionary *) headers
|
||||||
|
@ -446,7 +454,6 @@ static NSString *userAgent = nil;
|
||||||
while ((currentAddress = [addresses nextObject]))
|
while ((currentAddress = [addresses nextObject]))
|
||||||
if ([currentAddress email])
|
if ([currentAddress email])
|
||||||
[_ma addObject: [currentAddress email]];
|
[_ma addObject: [currentAddress email]];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) _addRecipients: (NSArray *) recipients
|
- (void) _addRecipients: (NSArray *) recipients
|
||||||
|
@ -1328,6 +1335,9 @@ static NSString *userAgent = nil;
|
||||||
if ([(s = [headers objectForKey: @"X-Priority"]) length] > 0)
|
if ([(s = [headers objectForKey: @"X-Priority"]) length] > 0)
|
||||||
[map setObject: s
|
[map setObject: s
|
||||||
forKey: @"X-Priority"];
|
forKey: @"X-Priority"];
|
||||||
|
if ([(s = [headers objectForKey: @"Disposition-Notification-To"]) length] > 0)
|
||||||
|
[map setObject: s
|
||||||
|
forKey: @"Disposition-Notification-To"];
|
||||||
|
|
||||||
[self _addHeaders: _headers toHeaderMap: map];
|
[self _addHeaders: _headers toHeaderMap: map];
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
"Contacts" = "Contatos";
|
"Contacts" = "Contatos";
|
||||||
"Attach" = "Anexo";
|
"Attach" = "Anexo";
|
||||||
"Save" = "Salvar";
|
"Save" = "Salvar";
|
||||||
"Priority" = "Prioridade";
|
"Options" = "Options";
|
||||||
"Size" = "Size";
|
"Size" = "Size";
|
||||||
|
|
||||||
/* Tooltips */
|
/* Tooltips */
|
||||||
|
@ -109,6 +109,9 @@
|
||||||
"Edit Draft..." = "Editar Rascunho...";
|
"Edit Draft..." = "Editar Rascunho...";
|
||||||
"Load Images" = "Carregar Imagens";
|
"Load Images" = "Carregar Imagens";
|
||||||
|
|
||||||
|
"Return Receipt" = "Return Receipt";
|
||||||
|
|
||||||
|
"Priority" = "Prioridade";
|
||||||
"highest" = "Muito Alta";
|
"highest" = "Muito Alta";
|
||||||
"high" = "Alta";
|
"high" = "Alta";
|
||||||
"normal" = "Normal";
|
"normal" = "Normal";
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
"Contacts" = "Kontakty";
|
"Contacts" = "Kontakty";
|
||||||
"Attach" = "Přiložit";
|
"Attach" = "Přiložit";
|
||||||
"Save" = "Uložit";
|
"Save" = "Uložit";
|
||||||
"Priority" = "Priorita";
|
"Options" = "Options";
|
||||||
"Size" = "Velikost";
|
"Size" = "Velikost";
|
||||||
|
|
||||||
/* Tooltips */
|
/* Tooltips */
|
||||||
|
@ -109,6 +109,9 @@
|
||||||
"Edit Draft..." = "Upravit koncept...";
|
"Edit Draft..." = "Upravit koncept...";
|
||||||
"Load Images" = "Nahrát obrázky";
|
"Load Images" = "Nahrát obrázky";
|
||||||
|
|
||||||
|
"Return Receipt" = "Return Receipt";
|
||||||
|
|
||||||
|
"Priority" = "Priorita";
|
||||||
"highest" = "Nejvyšší";
|
"highest" = "Nejvyšší";
|
||||||
"high" = "Vysoká";
|
"high" = "Vysoká";
|
||||||
"normal" = "Normální";
|
"normal" = "Normální";
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
"Contacts" = "Adresboek";
|
"Contacts" = "Adresboek";
|
||||||
"Attach" = "Bijlage";
|
"Attach" = "Bijlage";
|
||||||
"Save" = "Opslaan";
|
"Save" = "Opslaan";
|
||||||
"Priority" = "Prioriteit";
|
"Options" = "Options";
|
||||||
"Size" = "Size";
|
"Size" = "Size";
|
||||||
|
|
||||||
/* Tooltips */
|
/* Tooltips */
|
||||||
|
@ -109,6 +109,9 @@
|
||||||
"Edit Draft..." = "Concept aanpassen...";
|
"Edit Draft..." = "Concept aanpassen...";
|
||||||
"Load Images" = "Afbeeldingen laden";
|
"Load Images" = "Afbeeldingen laden";
|
||||||
|
|
||||||
|
"Return Receipt" = "Ontvangstbevestiging";
|
||||||
|
|
||||||
|
"Priority" = "Prioriteit";
|
||||||
"highest" = "Hoogste";
|
"highest" = "Hoogste";
|
||||||
"high" = "Hoog";
|
"high" = "Hoog";
|
||||||
"normal" = "Normaal";
|
"normal" = "Normaal";
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
"Contacts" = "Contacts";
|
"Contacts" = "Contacts";
|
||||||
"Attach" = "Attach";
|
"Attach" = "Attach";
|
||||||
"Save" = "Save";
|
"Save" = "Save";
|
||||||
"Priority" = "Priority";
|
"Options" = "Options";
|
||||||
"Size" = "Size";
|
"Size" = "Size";
|
||||||
|
|
||||||
/* Tooltips */
|
/* Tooltips */
|
||||||
|
@ -109,6 +109,9 @@
|
||||||
"Edit Draft..." = "Edit Draft...";
|
"Edit Draft..." = "Edit Draft...";
|
||||||
"Load Images" = "Load Images";
|
"Load Images" = "Load Images";
|
||||||
|
|
||||||
|
"Return Receipt" = "Return Receipt";
|
||||||
|
|
||||||
|
"Priority" = "Priority";
|
||||||
"highest" = "Highest";
|
"highest" = "Highest";
|
||||||
"high" = "High";
|
"high" = "High";
|
||||||
"normal" = "Normal";
|
"normal" = "Normal";
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
"Contacts" = "Contacts";
|
"Contacts" = "Contacts";
|
||||||
"Attach" = "Joindre";
|
"Attach" = "Joindre";
|
||||||
"Save" = "Enregistrer";
|
"Save" = "Enregistrer";
|
||||||
"Priority" = "Priorité";
|
"Options" = "Options";
|
||||||
"Size" = "Taille";
|
"Size" = "Taille";
|
||||||
|
|
||||||
/* Tooltips */
|
/* Tooltips */
|
||||||
|
@ -109,6 +109,9 @@
|
||||||
"Edit Draft..." = "Modifier le brouillon...";
|
"Edit Draft..." = "Modifier le brouillon...";
|
||||||
"Load Images" = "Télécharger les images";
|
"Load Images" = "Télécharger les images";
|
||||||
|
|
||||||
|
"Return Receipt" = "Accusé de réception";
|
||||||
|
|
||||||
|
"Priority" = "Priorité";
|
||||||
"highest" = "Maximale";
|
"highest" = "Maximale";
|
||||||
"high" = "Haute";
|
"high" = "Haute";
|
||||||
"normal" = "Normale";
|
"normal" = "Normale";
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
"Contacts" = "Kontakte";
|
"Contacts" = "Kontakte";
|
||||||
"Attach" = "Anhang";
|
"Attach" = "Anhang";
|
||||||
"Save" = "Speichern";
|
"Save" = "Speichern";
|
||||||
"Priority" = "Priorität";
|
"Options" = "Options";
|
||||||
"Size" = "Größe";
|
"Size" = "Größe";
|
||||||
|
|
||||||
/* Tooltips */
|
/* Tooltips */
|
||||||
|
@ -109,6 +109,9 @@
|
||||||
"Edit Draft..." = "Entwurf bearbeiten...";
|
"Edit Draft..." = "Entwurf bearbeiten...";
|
||||||
"Load Images" = "Bilder laden";
|
"Load Images" = "Bilder laden";
|
||||||
|
|
||||||
|
"Return Receipt" = "Empfangsbestätigung";
|
||||||
|
|
||||||
|
"Priority" = "Priorität";
|
||||||
"highest" = "Sehr hoch";
|
"highest" = "Sehr hoch";
|
||||||
"high" = "Hoch";
|
"high" = "Hoch";
|
||||||
"normal" = "Normal";
|
"normal" = "Normal";
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
"Contacts" = "Kapcsolatok";
|
"Contacts" = "Kapcsolatok";
|
||||||
"Attach" = "Melléklet";
|
"Attach" = "Melléklet";
|
||||||
"Save" = "Mentés";
|
"Save" = "Mentés";
|
||||||
"Priority" = "Sürgősség";
|
"Options" = "Options";
|
||||||
"Size" = "Méret";
|
"Size" = "Méret";
|
||||||
|
|
||||||
/* Tooltips */
|
/* Tooltips */
|
||||||
|
@ -109,6 +109,9 @@
|
||||||
"Edit Draft..." = "Piszkozat szerkesztése...";
|
"Edit Draft..." = "Piszkozat szerkesztése...";
|
||||||
"Load Images" = "Képek betöltése";
|
"Load Images" = "Képek betöltése";
|
||||||
|
|
||||||
|
"Return Receipt" = "Return Receipt";
|
||||||
|
|
||||||
|
"Priority" = "Sürgősség";
|
||||||
"highest" = "nagyon sürgős";
|
"highest" = "nagyon sürgős";
|
||||||
"high" = "sürgős";
|
"high" = "sürgős";
|
||||||
"normal" = "átlagos";
|
"normal" = "átlagos";
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
"Contacts" = "Contatti";
|
"Contacts" = "Contatti";
|
||||||
"Attach" = "Allegato";
|
"Attach" = "Allegato";
|
||||||
"Save" = "Salva";
|
"Save" = "Salva";
|
||||||
"Priority" = "Priorità";
|
"Options" = "Options";
|
||||||
"Size" = "Size";
|
"Size" = "Size";
|
||||||
|
|
||||||
/* Tooltips */
|
/* Tooltips */
|
||||||
|
@ -109,6 +109,9 @@
|
||||||
"Edit Draft..." = "Modifica bozza...";
|
"Edit Draft..." = "Modifica bozza...";
|
||||||
"Load Images" = "Carica Immagini";
|
"Load Images" = "Carica Immagini";
|
||||||
|
|
||||||
|
"Return Receipt" = "Return Receipt";
|
||||||
|
|
||||||
|
"Priority" = "Priorità";
|
||||||
"highest" = "Molto alta";
|
"highest" = "Molto alta";
|
||||||
"high" = "Alta";
|
"high" = "Alta";
|
||||||
"normal" = "Normale";
|
"normal" = "Normale";
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
"Contacts" = "Kontakty";
|
"Contacts" = "Kontakty";
|
||||||
"Attach" = "Załącz";
|
"Attach" = "Załącz";
|
||||||
"Save" = "Zapisz";
|
"Save" = "Zapisz";
|
||||||
"Priority" = "Priorytet";
|
"Options" = "Options";
|
||||||
"Size" = "Rozmiar";
|
"Size" = "Rozmiar";
|
||||||
|
|
||||||
/* Tooltips */
|
/* Tooltips */
|
||||||
|
@ -109,6 +109,9 @@
|
||||||
"Edit Draft..." = "Edytuj szkic...";
|
"Edit Draft..." = "Edytuj szkic...";
|
||||||
"Load Images" = "Załaduj obrazki";
|
"Load Images" = "Załaduj obrazki";
|
||||||
|
|
||||||
|
"Return Receipt" = "Return Receipt";
|
||||||
|
|
||||||
|
"Priority" = "Priorytet";
|
||||||
"highest" = "Najwyższy";
|
"highest" = "Najwyższy";
|
||||||
"high" = "Wysoki";
|
"high" = "Wysoki";
|
||||||
"normal" = "Normalny";
|
"normal" = "Normalny";
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
"Contacts" = "Адресная книга";
|
"Contacts" = "Адресная книга";
|
||||||
"Attach" = "Вложить";
|
"Attach" = "Вложить";
|
||||||
"Save" = "Сохранить";
|
"Save" = "Сохранить";
|
||||||
"Priority" = "Важность";
|
"Options" = "Options";
|
||||||
"Size" = "Size";
|
"Size" = "Size";
|
||||||
|
|
||||||
/* Tooltips */
|
/* Tooltips */
|
||||||
|
@ -109,6 +109,9 @@
|
||||||
"Edit Draft..." = "Редактировать черновик...";
|
"Edit Draft..." = "Редактировать черновик...";
|
||||||
"Load Images" = "Загрузить изображения";
|
"Load Images" = "Загрузить изображения";
|
||||||
|
|
||||||
|
"Return Receipt" = "Return Receipt";
|
||||||
|
|
||||||
|
"Priority" = "Важность";
|
||||||
"highest" = "Самый высокий";
|
"highest" = "Самый высокий";
|
||||||
"high" = "Высокий";
|
"high" = "Высокий";
|
||||||
"normal" = "Обычный";
|
"normal" = "Обычный";
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
"Contacts" = "Contactos";
|
"Contacts" = "Contactos";
|
||||||
"Attach" = "Adjuntar";
|
"Attach" = "Adjuntar";
|
||||||
"Save" = "Guardar";
|
"Save" = "Guardar";
|
||||||
"Priority" = "Priority";
|
"Options" = "Options";
|
||||||
"Size" = "Size";
|
"Size" = "Size";
|
||||||
|
|
||||||
/* Tooltips */
|
/* Tooltips */
|
||||||
|
@ -109,6 +109,9 @@
|
||||||
"Edit Draft..." = "Modificar borrador...";
|
"Edit Draft..." = "Modificar borrador...";
|
||||||
"Load Images" = "Load Images";
|
"Load Images" = "Load Images";
|
||||||
|
|
||||||
|
"Return Receipt" = "Return Receipt";
|
||||||
|
|
||||||
|
"Priority" = "Priority";
|
||||||
"highest" = "Highest";
|
"highest" = "Highest";
|
||||||
"high" = "High";
|
"high" = "High";
|
||||||
"normal" = "Normal";
|
"normal" = "Normal";
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
"Contacts" = "Kontakter";
|
"Contacts" = "Kontakter";
|
||||||
"Attach" = "Bifoga";
|
"Attach" = "Bifoga";
|
||||||
"Save" = "Spara";
|
"Save" = "Spara";
|
||||||
"Priority" = "Prioritet";
|
"Options" = "Options";
|
||||||
"Size" = "Storlek";
|
"Size" = "Storlek";
|
||||||
|
|
||||||
/* Tooltips */
|
/* Tooltips */
|
||||||
|
@ -109,6 +109,9 @@
|
||||||
"Edit Draft..." = "Redigera utkast...";
|
"Edit Draft..." = "Redigera utkast...";
|
||||||
"Load Images" = "Ladda bilder";
|
"Load Images" = "Ladda bilder";
|
||||||
|
|
||||||
|
"Return Receipt" = "Return Receipt";
|
||||||
|
|
||||||
|
"Priority" = "Prioritet";
|
||||||
"highest" = "Högst";
|
"highest" = "Högst";
|
||||||
"high" = "Hög";
|
"high" = "Hög";
|
||||||
"normal" = "Normal";
|
"normal" = "Normal";
|
||||||
|
|
|
@ -6,7 +6,9 @@
|
||||||
image = "tb-compose-send-flat-24x24.png";
|
image = "tb-compose-send-flat-24x24.png";
|
||||||
cssClass = "tbicon_send";
|
cssClass = "tbicon_send";
|
||||||
label = "Send";
|
label = "Send";
|
||||||
tooltip = "Send this message now"; },
|
tooltip = "Send this message now"; }
|
||||||
|
),
|
||||||
|
(
|
||||||
{ link = "#";
|
{ link = "#";
|
||||||
onclick = "return onContactAdd(null);";
|
onclick = "return onContactAdd(null);";
|
||||||
image = "tb-compose-contacts-flat-24x24.png";
|
image = "tb-compose-contacts-flat-24x24.png";
|
||||||
|
@ -27,10 +29,11 @@
|
||||||
cssClass = "tbicon_save";
|
cssClass = "tbicon_save";
|
||||||
label = "Save";
|
label = "Save";
|
||||||
tooltip = "Save this message"; },
|
tooltip = "Save this message"; },
|
||||||
{ link = "#";
|
{ link = "#";
|
||||||
hasMenu = YES;
|
hasMenu = YES;
|
||||||
label = "Priority";
|
onclick = "return onSelectOptions(event);";
|
||||||
onclick = "return onSelectPriority(event);";
|
image = "options.png";
|
||||||
image = "priority.png"; },
|
cssClass = "tbicon_options";
|
||||||
|
label = "Options"; }
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
|
@ -78,6 +78,7 @@
|
||||||
SOGoMailFolder *sentFolder;
|
SOGoMailFolder *sentFolder;
|
||||||
|
|
||||||
NSString *priority;
|
NSString *priority;
|
||||||
|
NSString *receipt;
|
||||||
id item;
|
id item;
|
||||||
|
|
||||||
/* these are for the inline attachment list */
|
/* these are for the inline attachment list */
|
||||||
|
@ -97,8 +98,8 @@ static NSArray *infoKeys = nil;
|
||||||
if (!infoKeys)
|
if (!infoKeys)
|
||||||
infoKeys = [[NSArray alloc] initWithObjects:
|
infoKeys = [[NSArray alloc] initWithObjects:
|
||||||
@"subject", @"to", @"cc", @"bcc",
|
@"subject", @"to", @"cc", @"bcc",
|
||||||
@"from", @"replyTo", @"inReplyTo",
|
@"from", @"inReplyTo",
|
||||||
@"priority", nil];
|
@"priority", @"receipt", nil];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (id) init
|
- (id) init
|
||||||
|
@ -106,6 +107,7 @@ static NSArray *infoKeys = nil;
|
||||||
if ((self = [super init]))
|
if ((self = [super init]))
|
||||||
{
|
{
|
||||||
priority = @"NORMAL";
|
priority = @"NORMAL";
|
||||||
|
receipt = nil;
|
||||||
}
|
}
|
||||||
|
|
||||||
return self;
|
return self;
|
||||||
|
@ -115,6 +117,7 @@ static NSArray *infoKeys = nil;
|
||||||
{
|
{
|
||||||
[item release];
|
[item release];
|
||||||
[priority release];
|
[priority release];
|
||||||
|
[receipt release];
|
||||||
[sentFolder release];
|
[sentFolder release];
|
||||||
[fromEMails release];
|
[fromEMails release];
|
||||||
[from release];
|
[from release];
|
||||||
|
@ -158,7 +161,7 @@ static NSArray *infoKeys = nil;
|
||||||
|
|
||||||
- (void) setPriority: (NSString *) _priority
|
- (void) setPriority: (NSString *) _priority
|
||||||
{
|
{
|
||||||
ASSIGN(priority, _priority);
|
ASSIGN (priority, _priority);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSString *) priority
|
- (NSString *) priority
|
||||||
|
@ -166,6 +169,16 @@ static NSArray *infoKeys = nil;
|
||||||
return priority;
|
return priority;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void) setReceipt: (NSString *) newReceipt
|
||||||
|
{
|
||||||
|
ASSIGN (receipt, newReceipt);
|
||||||
|
}
|
||||||
|
|
||||||
|
- (NSString *) receipt
|
||||||
|
{
|
||||||
|
return receipt;
|
||||||
|
}
|
||||||
|
|
||||||
- (NSString *) itemPriorityText
|
- (NSString *) itemPriorityText
|
||||||
{
|
{
|
||||||
return [self labelForKey: [NSString stringWithFormat: @"%@", [item lowercaseString]]];
|
return [self labelForKey: [NSString stringWithFormat: @"%@", [item lowercaseString]]];
|
||||||
|
@ -221,16 +234,6 @@ static NSArray *infoKeys = nil;
|
||||||
return from;
|
return from;
|
||||||
}
|
}
|
||||||
|
|
||||||
// - (void) setReplyTo: (NSString *) ignore
|
|
||||||
// {
|
|
||||||
// }
|
|
||||||
|
|
||||||
// - (NSString *) replyTo
|
|
||||||
// {
|
|
||||||
// /* we are here for future extensibility */
|
|
||||||
// return @"";
|
|
||||||
// }
|
|
||||||
|
|
||||||
- (void) setSubject: (NSString *) newSubject
|
- (void) setSubject: (NSString *) newSubject
|
||||||
{
|
{
|
||||||
ASSIGN (subject, newSubject);
|
ASSIGN (subject, newSubject);
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
"Contacts" = "Адреса";
|
"Contacts" = "Адреса";
|
||||||
"Attach" = "Вкладення";
|
"Attach" = "Вкладення";
|
||||||
"Save" = "Зберегти";
|
"Save" = "Зберегти";
|
||||||
"Priority" = "Важливість";
|
"Options" = "Options";
|
||||||
"Size" = "Розмір";
|
"Size" = "Розмір";
|
||||||
|
|
||||||
/* Tooltips */
|
/* Tooltips */
|
||||||
|
@ -109,6 +109,9 @@
|
||||||
"Edit Draft..." = "Редагувати чернетку...";
|
"Edit Draft..." = "Редагувати чернетку...";
|
||||||
"Load Images" = "Завантажити зображення";
|
"Load Images" = "Завантажити зображення";
|
||||||
|
|
||||||
|
"Return Receipt" = "Return Receipt";
|
||||||
|
|
||||||
|
"Priority" = "Важливість";
|
||||||
"highest" = "Найвища";
|
"highest" = "Найвища";
|
||||||
"high" = "Висока";
|
"high" = "Висока";
|
||||||
"normal" = "Звичайна";
|
"normal" = "Звичайна";
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
"Contacts" = "Cysylltiadau";
|
"Contacts" = "Cysylltiadau";
|
||||||
"Attach" = "Atodi";
|
"Attach" = "Atodi";
|
||||||
"Save" = "Cadw";
|
"Save" = "Cadw";
|
||||||
"Priority" = "Blaenoriaeth";
|
"Options" = "Options";
|
||||||
"Size" = "Size";
|
"Size" = "Size";
|
||||||
|
|
||||||
/* Tooltips */
|
/* Tooltips */
|
||||||
|
@ -109,6 +109,9 @@
|
||||||
"Edit Draft..." = "Golygu Drafft...";
|
"Edit Draft..." = "Golygu Drafft...";
|
||||||
"Load Images" = "Llwytho Delweddau";
|
"Load Images" = "Llwytho Delweddau";
|
||||||
|
|
||||||
|
"Return Receipt" = "Return Receipt";
|
||||||
|
|
||||||
|
"Priority" = "Blaenoriaeth";
|
||||||
"highest" = "Uchaf";
|
"highest" = "Uchaf";
|
||||||
"high" = "Uchel";
|
"high" = "Uchel";
|
||||||
"normal" = "Normal";
|
"normal" = "Normal";
|
||||||
|
|
|
@ -32,7 +32,15 @@
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="menu" id="priority-menu">
|
<div class="menu" id="optionsMenu">
|
||||||
|
<ul class="choiceMenu">
|
||||||
|
<li><var:string label:value="Return Receipt"/></li>
|
||||||
|
<li><!-- separator --></li>
|
||||||
|
<li><var:string label:value="Priority"/></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="menu" id="priorityMenu">
|
||||||
<ul id="itemPriorityList" class="choiceMenu">
|
<ul id="itemPriorityList" class="choiceMenu">
|
||||||
<var:foreach list="priorityClasses" item="item">
|
<var:foreach list="priorityClasses" item="item">
|
||||||
<li var:priority="item"><var:string
|
<li var:priority="item"><var:string
|
||||||
|
@ -42,8 +50,8 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form const:href="" name="pageform" enctype="multipart/form-data" autocomplete="off">
|
<form const:href="" name="pageform" enctype="multipart/form-data" autocomplete="off">
|
||||||
<input type="hidden" name="priority" id="priority"
|
<input type="hidden" name="priority" id="priority" var:value="priority"/>
|
||||||
var:value="priority"/>
|
<input type="hidden" name="receipt" id="receipt" var:value="receipt"/>
|
||||||
|
|
||||||
<div id="attachmentsArea">
|
<div id="attachmentsArea">
|
||||||
<var:string label:value="Attachments:" />
|
<var:string label:value="Attachments:" />
|
||||||
|
|
|
@ -433,7 +433,7 @@ function focusCKEditor(event) {
|
||||||
|
|
||||||
function initializePriorityMenu() {
|
function initializePriorityMenu() {
|
||||||
var priority = $("priority").value.toUpperCase();
|
var priority = $("priority").value.toUpperCase();
|
||||||
var priorityMenu = $("priority-menu").childNodesWithTag("ul")[0];
|
var priorityMenu = $("priorityMenu").childNodesWithTag("ul")[0];
|
||||||
var menuEntries = $(priorityMenu).childNodesWithTag("li");
|
var menuEntries = $(priorityMenu).childNodesWithTag("li");
|
||||||
var chosenNode;
|
var chosenNode;
|
||||||
if (priority == "HIGHEST")
|
if (priority == "HIGHEST")
|
||||||
|
@ -448,19 +448,39 @@ function initializePriorityMenu() {
|
||||||
chosenNode = menuEntries[2];
|
chosenNode = menuEntries[2];
|
||||||
priorityMenu.chosenNode = chosenNode;
|
priorityMenu.chosenNode = chosenNode;
|
||||||
$(chosenNode).addClassName("_chosen");
|
$(chosenNode).addClassName("_chosen");
|
||||||
|
}
|
||||||
|
|
||||||
var menuItems = $("itemPriorityList").childNodesWithTag("li");
|
function onMenuCheckReturnReceipt() {
|
||||||
for (var i = 0; i < menuItems.length; i++)
|
event.cancelBubble = true;
|
||||||
menuItems[i].observe("mousedown",
|
|
||||||
onMenuSetPriority.bindAsEventListener(menuItems[i]),
|
this.enabled = !this.enabled;
|
||||||
false);
|
var enabled = this.enabled;
|
||||||
|
if (enabled) {
|
||||||
|
this.addClassName("_chosen");
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
this.removeClassName("_chosen");
|
||||||
|
}
|
||||||
|
|
||||||
|
var receiptInput = $("receipt");
|
||||||
|
receiptInput.value = (enabled ? "true" : "false") ;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getMenus() {
|
function getMenus() {
|
||||||
return { "attachmentsMenu": new Array(null, onRemoveAttachments,
|
return {
|
||||||
onSelectAllAttachments,
|
"attachmentsMenu": [ null, onRemoveAttachments,
|
||||||
"-",
|
onSelectAllAttachments,
|
||||||
clickedEditorAttach, null) };
|
"-",
|
||||||
|
clickedEditorAttach, null],
|
||||||
|
"optionsMenu": [ onMenuCheckReturnReceipt,
|
||||||
|
"-",
|
||||||
|
"priorityMenu" ],
|
||||||
|
"priorityMenu": [ onMenuSetPriority,
|
||||||
|
onMenuSetPriority,
|
||||||
|
onMenuSetPriority,
|
||||||
|
onMenuSetPriority,
|
||||||
|
onMenuSetPriority ]
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
function onRemoveAttachments() {
|
function onRemoveAttachments() {
|
||||||
|
@ -537,12 +557,12 @@ function onSelectAllAttachments() {
|
||||||
nodes[i].selectElement();
|
nodes[i].selectElement();
|
||||||
}
|
}
|
||||||
|
|
||||||
function onSelectPriority(event) {
|
function onSelectOptions(event) {
|
||||||
if (event.button == 0 || (isSafari() && event.button == 1)) {
|
if (event.button == 0 || (isSafari() && event.button == 1)) {
|
||||||
var node = getTarget(event);
|
var node = getTarget(event);
|
||||||
if (node.tagName != 'A')
|
if (node.tagName != 'A')
|
||||||
node = $(node).up("A");
|
node = $(node).up("A");
|
||||||
popupToolbarMenu(node, "priority-menu");
|
popupToolbarMenu(node, "optionsMenu");
|
||||||
Event.stop(event);
|
Event.stop(event);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 855 B |
Binary file not shown.
Before Width: | Height: | Size: 806 B |
|
@ -391,7 +391,6 @@ sogo: image-file-in-usr-lib usr/lib/GNUstep/SOGo/WebServerResources/non_sorted.g
|
||||||
sogo: image-file-in-usr-lib usr/lib/GNUstep/SOGo/WebServerResources/offline-settings.png
|
sogo: image-file-in-usr-lib usr/lib/GNUstep/SOGo/WebServerResources/offline-settings.png
|
||||||
sogo: image-file-in-usr-lib usr/lib/GNUstep/SOGo/WebServerResources/plus.png
|
sogo: image-file-in-usr-lib usr/lib/GNUstep/SOGo/WebServerResources/plus.png
|
||||||
sogo: image-file-in-usr-lib usr/lib/GNUstep/SOGo/WebServerResources/previous.gif
|
sogo: image-file-in-usr-lib usr/lib/GNUstep/SOGo/WebServerResources/previous.gif
|
||||||
sogo: image-file-in-usr-lib usr/lib/GNUstep/SOGo/WebServerResources/priority.png
|
|
||||||
sogo: image-file-in-usr-lib usr/lib/GNUstep/SOGo/WebServerResources/properties.png
|
sogo: image-file-in-usr-lib usr/lib/GNUstep/SOGo/WebServerResources/properties.png
|
||||||
sogo: embedded-javascript-library usr/lib/GNUstep/SOGo/WebServerResources/prototype.js
|
sogo: embedded-javascript-library usr/lib/GNUstep/SOGo/WebServerResources/prototype.js
|
||||||
sogo: image-file-in-usr-lib usr/lib/GNUstep/SOGo/WebServerResources/quota-level-alert.png
|
sogo: image-file-in-usr-lib usr/lib/GNUstep/SOGo/WebServerResources/quota-level-alert.png
|
||||||
|
|
Loading…
Reference in New Issue