Commit 352160bb authored by Laurent Montel's avatar Laurent Montel 😁

Fix autotest

parent 869a5a8a
require ["variables","date","fileinto","mailbox"];
require "date";
require "variables";
require "fileinto";
require "mailbox";
#SCRIPTNAME: Script part 0
# Extract date info
if currentdate :matches "year" "*" { set "year" "${1}"; }
if currentdate :matches "month" "*" { set "month" "${1}"; }
if currentdate :matches "year" "*"
{
set "year" "${1}";
}
#SCRIPTNAME: Script part 1
if currentdate :matches "month" "*"
{
set "month" "${1}";
}
#SCRIPTNAME: Script part 2
# Archive Dovecot mailing list items by year and month.
# Create folder when it does not exist.
if header :is "list-id" "dovecot.dovecot.org" {
fileinto :create "INBOX.Lists.${year}.${month}.dovecot";
}
if header :is "list-id" "dovecot.dovecot.org"
{
fileinto :create "INBOX.Lists.${year}.${month}.dovecot";
}
\ No newline at end of file
......@@ -6,6 +6,7 @@ require "imap4flags";
if allof (date :is "header" "day" "20"
, not date :matches "header" "hour" "08"
, not date :contains "header" "month" "08"
, not date :contains "header" "weekday" "5"
)
{
keep;
......
......@@ -6,6 +6,7 @@ require "date";
if allof (date :is "header" "day" "20"
, not date :matches "header" "hour" "08"
, not date :contains "header" "month" "8"
, not date :contains "header" "weekday" "5"
)
{
keep;
......
......@@ -270,6 +270,7 @@ void SelectDateWidget::setCode(const QString &type, const QString &value)
case Weekday:
case Year:
mStackWidget->setCurrentWidget(mDateValue);
mDateValue->setType(dateType);
mDateValue->setCode(value);
break;
case Date:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment