Skip to content

Commit

Permalink
revert german, false positives
Browse files Browse the repository at this point in the history
  • Loading branch information
barrydegraaff committed Dec 15, 2015
1 parent 228048b commit 43566a5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015-2016 Barry de Graaff
Copyright (c) 2015 Barry de Graaff

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ If you find Zimbra OpenPGP Zimlet useful and want to support its continued devel
su zimbra
cd /tmp
rm tk_barrydegraaff_attachmentalert*
wget https://github.com/Zimbra-Community/attachmentalert-zimlet/releases/download/0.2/tk_barrydegraaff_attachmentalert.zip
wget https://github.com/Zimbra-Community/attachmentalert-zimlet/raw/master/tk_barrydegraaff_attachmentalert.zip
zmzimletctl deploy tk_barrydegraaff_attachmentalert.zip
(wait 15 minutes for the deploy to propagate; or zmprov fc all && zmmailboxdctl restart)

Expand All @@ -40,7 +40,7 @@ If you find Zimbra OpenPGP Zimlet useful and want to support its continued devel

### License

Copyright (C) 2015-2016 Barry de Graaff
Copyright (C) 2015 Barry de Graaff
The MIT License

Copyright (C) 2013, 2014, 2015 Dennis Ploeger
Expand Down
8 changes: 2 additions & 6 deletions tk_barrydegraaff_attachmentalert.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (C) 2015-2016 Barry de Graaff
Copyright (C) 2015 Barry de Graaff
The MIT License
Copyright (C) 2013, 2014, 2015 Dennis Ploeger
Expand Down Expand Up @@ -45,11 +45,7 @@ var ConfigurableAttachAlertZimlet = tk_barrydegraaff_attachalert_HandlerObject;
* Defines the "zimlet name".
*/
ConfigurableAttachAlertZimlet.ZIMLET_NAME = "ConfigurableAttachAlertZimlet";
/* Be carefull when adding new languages, NOT to trigger false positives in other languages, for example
* the german word `anhang` should match, but it also matches `aanhanger` in dutch language, therefore we
* need to define the regular expression as ' anhang ' (spaces on both sides to match).
*/
ConfigurableAttachAlertZimlet.AttachmentAlertKeywordsDefault = 'attach,bijlage,adjunto,fichero adjunto,env\u00EDo el fichero,allegat,im anhang,ang\\.,angeh\u00E4ngt,anbei, anhang ,';
ConfigurableAttachAlertZimlet.AttachmentAlertKeywordsDefault = 'attach,bijlage,adjunto,fichero adjunto,env\u00EDo el fichero,allegat';
/**
* Initializes the zimlet.
*
Expand Down
2 changes: 1 addition & 1 deletion tk_barrydegraaff_attachmentalert.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<zimlet name="tk_barrydegraaff_attachmentalert" version="0.2" label="Attachment Alert" description="Alerts you when forgetting to attach an attachment when composing a message." target="main compose-window">
<zimlet name="tk_barrydegraaff_attachmentalert" version="0.1" label="Attachment Alert" description="Alerts you when forgetting to attach an attachment when composing a message." target="main compose-window">
<include>tk_barrydegraaff_attachmentalert.js</include>
<handlerObject>tk_barrydegraaff_attachalert_HandlerObject</handlerObject>
<zimletPanelItem label="Attachment Alert" icon="Attachment">
Expand Down

0 comments on commit 43566a5

Please sign in to comment.