Wiki Forum Sign up! Explore Home

Not signed in (Sign In)

LiveSearch

Welcome, Guest

Want to take part in these discussions? Sign in if you have an account, or apply for one below

Vanilla 1.1.2 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthoradmin
    • CommentTimeDec 23rd 2007
     permalink
    Tasks now have an email address, so it's possible to add comments to tasks by just replying to the notification emails (as long as you reply from the email address that got the email in the first place). If you attach a file it will be added to the task as well.

    More email commands and features will come. :-)

    -- Erlend
    • CommentAuthordarkpollo
    • CommentTimeDec 24th 2007
     permalink
    :O
    That is a very useful feature... :D
    • CommentAuthordarkpollo
    • CommentTimeDec 24th 2007 edited
     permalink
    Do i need to config something in the server to make it work?
    I mean in a local installation. Thanks
    • CommentAuthoradmin
    • CommentTimeDec 26th 2007
     permalink
    You need to setup your email solution so that it sends all emails for a subdomain to your rails user, and setup the alias so that it runs the mailman script. I described some of the steps in the commit message, so try a 'darcs changes --last 20' or something to see.

    -- Erlend
    • CommentAuthordarkpollo
    • CommentTimeJan 8th 2008 edited
     permalink
    I paste here the info for other users:

    Add support for receiving mails into tasks

    - Supports attaching files to tasks included in the email

    To enable, add a catch-all rule for your mail system for your chosen domain,
    and add something like this to the alias getting all mails:

    cit: "|/path/to/cit/script/runner -e production 'Mailman.receive(STDIN.read)'"


    And also ask for more help. :D
    i am not sure where to add that line of code. I am using an smtp server.
    Thanks
    • CommentAuthordarkpollo
    • CommentTimeJan 8th 2008
     permalink
    My server has an option like that, but is not on the same machina as the cit installation. So i am not sure that is going to work...
    • CommentAuthoradmin
    • CommentTimeJan 8th 2008
     permalink
    Then you'd need to get your server to forward the email to the machine running the install, or install ClockingIT there as well and just run the Mailman part which pushes it into the database.

    -- Erlend
    • CommentAuthorrtginc
    • CommentTimeJan 30th 2008
     permalink
    Its indeed a very useful feature but please specify how to get it done in a sequence.
    • CommentAuthoradmin
    • CommentTimeJan 30th 2008
     permalink
    As it depends a lot on what mail server you're using, it's hard to give good instructions.

    -- Erlend
    • CommentAuthordarkpollo
    • CommentTimeJan 31st 2008
     permalink
    very hard, i am still trying to make it work with two machines... :P
    • CommentAuthordarkpollo
    • CommentTimeApr 18th 2008
     permalink
    How could i just run the mailman part?
    I am not sure how to forward mail to a machine, i know how to forward mail to another account, but no to a server, sorry, i am new on servers...:S
    Thanks
    • CommentAuthordarkpollo
    • CommentTimeApr 18th 2008
     permalink
    My server allowed to catch-all rule for my mail system for my domain, but it gives me this options:

    Forward to email address

    Discard with error to sender (at SMTP time)

    Discard (Not Recommended)

    Pipe to a Program:

    I understand that Discard is not an option :P but i am not sure if i can install the mailman on a comercial server or if it is better to forward into one email account that i could open in my clockingit server with mailman.
    • CommentAuthorsubu
    • CommentTimeJun 8th 2008
     permalink
    Hello,
    i have problems with using this email interface. i get an error:
    <cit@lamp.eml.ee> (expanded from <task-82@edss.cl.ebeling.ee>): Command died
    with status 1: "/var/www/localhost/htdocs/clockingit/cit/script/runner -e
    production 'Mailman.receive(STDIN.read)'". Command output:
    /var/www/localhost/htdocs/clockingit/cit/vendor/rails/railties/lib/commands/runner.rb:47:
    undefined method `name' for nil:NilClass (NoMethodError) from
    /var/www/localhost/htdocs/clockingit/cit/app/models/mailman.rb:47:in `each'
    from /var/www/localhost/htdocs/clockingit/cit/app/models/mailman.rb:47:in
    `receive' from
    /var/www/localhost/htdocs/clockingit/cit/vendor/rails/actionmailer/lib/action_mailer/base.rb:373:in
    `receive' from (eval):1 from
    /var/www/localhost/htdocs/clockingit/cit/script/runner:3:in `eval' from
    /var/www/localhost/htdocs/clockingit/cit/vendor/rails/railties/lib/commands/runner.rb:47
    from /var/www/localhost/htdocs/clockingit/cit/script/runner:3:in `require'
    from /var/www/localhost/htdocs/clockingit/cit/script/runner:3

    tried to find a solution myself, but failed. would be nice if someone can help me.
    thanks in advance.
    • CommentAuthoradmin
    • CommentTimeJun 15th 2008
     permalink
    Please try a git pull, as clockingit.com was hardcoded in the email header parsing.

    -- Erlend
    • CommentAuthorrex
    • CommentTimeNov 5th 2008 edited
     permalink
    I'm not sure if something is broken. ClockingIT is storing our emails but it doesn't appear in the task in the webpage anywhere.

    Side note:
    I did a slight problem with permissions, if whatever process is calling "|/path/to/cit/script/runner -e production 'Mailman.receive(STDIN.read)'" does not have write permission to production.log, the whole process fails.

    I see this in the logs, and there's no other sql to sugest that any other tables are being updated.

    SQL (0.000306) SET NAMES 'utf8'
    SQL (0.000208) SET SQL_AUTO_IS_NULL=0
    Email Columns (0.001619) SHOW FIELDS FROM `emails`
    Company Columns (0.001729) SHOW FIELDS FROM `companies`
    Company Load (0.000789) SELECT * FROM `companies` WHERE (`companies`.`subdomain` = 'projects') LIMIT 1
    User Columns (0.005159) SHOW FIELDS FROM `users`
    User Load (0.001146) SELECT * FROM `users` WHERE (company_id = 1) AND (`users`.`email` = 'info@ish.com.au') LIMIT 1
    SQL (0.000211) BEGIN
    Email Create (0.000701) INSERT INTO `emails` (`updated_at`, `body`, `from`, `to`, `subject`, `company_id`, `user_id`, `created_at`) VALUES('2008-11-05 00:52:53', 'Another email\n\nOn Wed, 5 Nov 2008 11:28:35 +1100\nprojects@ish.com.au wrote:\n\n> [#370] Get email integration working\n> ------------------------------------\n> \n> Client: ish\n> Project: ClockingIT\n> Task Type: Task\n> Severity: Normal\n> Priority: Normal\n> Assigned To: Rex Chan\n> Created By: Ari Maniatis\n> \n> \n> --\n> Message automatically generated by ClockingIT\n> http://projects.ish.com.au/tasks/view/370\n\n\n-- \n\nRex Chan\n--------------------------> \nish\nhttp://www.ish.com.au\nLevel 1, 30 Wilson Street Newtown 2042 Australia\nphone +61 2 9550 5001 fax +61 2 9550 4001\n', 'info@ish.com.au', 'task-370@projects.ish.com.au', 'Re: [Projects at ish] Created: [#370] Get email integration working [ClockingIT] (Rex Chan)', 1, 4, '2008-11-05 00:52:53')
    SQL (0.001951) COMMIT
    • CommentAuthoradmin
    • CommentTimeNov 5th 2008
     permalink
    Is info@ish.com.au a registered clockingit user? If not, the user lookup fails, and you don't get any more than that.

    -- Erlend
    • CommentAuthorrex
    • CommentTimeNov 5th 2008
     permalink
    the user is valid... I can in the database that the Emails table has data relating to this sql operation.
    Is there another table that stores or lookups the emails table that might not be updated?
    • CommentAuthoradmin
    • CommentTimeNov 5th 2008
     permalink
    Hmm, acutally, I see that it's set both user_id and company_id, and that means it was able to do the lookups.

    Meh.. Do a git pull please, and you should at least get further.

    -- Erlend
    • CommentAuthorari
    • CommentTimeNov 5th 2008
     permalink
    OK. Now the email bounces with this:

    The original message was received at Wed, 5 Nov 2008 18:36:55 +1100 (EST)
    from daemon@ip-129.ish.com.au [203.29.62.129]

    ----- The following addresses had permanent fatal errors -----
    "|/usr/local/www/clockingit/script/runner -e production 'Mailman.receive(STDIN.read)'"
    (reason: 1)
    (expanded from: )

    ----- Transcript of session follows -----
    Action Mailer: iconv not loaded; ignoring conversion from US-ASCII to utf-8 (/usr/local/www/clockingit/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/quoting.rb:112)
    Action Mailer: iconv not loaded; ignoring conversion from US-ASCII to utf-8 (/usr/local/www/clockingit/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/quoting.rb:112)
    Action Mailer: iconv not loaded; ignoring conversion from to utf-8 (/usr/local/www/clockingit/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/quoting.rb:112)
    /usr/local/www/clockingit/vendor/rails/railties/lib/commands/runner.rb:47: /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- lib/misc (MissingSourceFile)
    from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
    from /usr/local/www/clockingit/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:510:in `require'
    from /usr/local/www/clockingit/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:355:in `new_constants_in'
    from /usr/local/www/clockingit/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:510:in `require'
    from /usr/local/www/clockingit/app/models/notifications.rb:3
    from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
    from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
    from /usr/local/www/clockingit/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:510:in `require'
    ... 12 levels...
    from /usr/local/www/clockingit/vendor/rails/railties/lib/commands/runner.rb:47
    from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
    from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
    from /usr/local/www/clockingit/script/runner:3
    Looking for projects..
    looking for a task
    Looking for task[370] from [ish]
    target[Get email integration working]
    Found target [Get email integration working]
    Possible participants[xxx@ish.com.au, xxx@ish.com.au, xxx@ish.com.au, xxx@ish.com.au, xxx@ish.com.au, xxx@ish.com.au, xxx@ish.com.au, xxx@ish.com.au, xxx@ish.com.au]
    554 5.3.0 unknown mailer error 1
    Reporting-MTA: dns; astonish.ish.com.au
    Received-From-MTA: DNS; ip-129.ish.com.au
    Arrival-Date: Wed, 5 Nov 2008 18:36:55 +1100 (EST)
    • CommentAuthorari
    • CommentTimeNov 5th 2008
     permalink
    OK. Under FreeBSD you need to:

    # portinstall converters/ruby-iconv

    I've added that to the install instructions on the wiki.
    • CommentAuthoradmin
    • CommentTimeNov 5th 2008
     permalink
    There seemed to be another problem as well, which should be fixed in git now. Thanks for attempting this, good to get some external testing of this and weeding out the problems I don't notice with my setup.

    -- Erlend
    • CommentAuthorrex
    • CommentTimeNov 10th 2008
     permalink
    Hi Erlend,

    what behaviour should we expect from ClockingIT when somebody who's not either a user or a contact in the system sends an email to say "task-123@domain.com"?
    Should we expect to see messages in the web interface?
    • CommentAuthoradmin
    • CommentTimeNov 10th 2008
     permalink
    Not at the moment, no. Full helpdesk support isn't complete yet.

    -- Erlend
    • CommentAuthorari
    • CommentTimeNov 10th 2008
     permalink
    Doesn't have to be 'full helpdesk', but the current behaviour is odd. The email is saved in the email table (so if we are being DoSed by a spam attack, that is not ideal). But there is no link being created to any task. I'd argue this is the worst choice. Either it should:

    1. Bounce the email to the original sender, or
    2. Attach it to the right task anyway

    Personally I'd prefer the latter.
    • CommentAuthoradmin
    • CommentTimeNov 10th 2008
     permalink
    The email logging is mostly a debug thingie, I just wanted to keep a record of all emails received to make it easier to figure out what went wrong and why. It can be dropped later on.

    The problem with always attaching it to the task is that I don't really handle comments/actions without a user, so that'll need to be done first.

    -- Erlend
    • CommentAuthorrex
    • CommentTimeNov 11th 2008
     permalink
    Emails sent to tasks are not generating notifications. Is this a bug?
    • CommentAuthoradmin
    • CommentTimeNov 11th 2008
     permalink
    Humm.. They should generate notifications, but not for the person replying to the email... I'll have to dig into the code to check, it's probably something simple.

    -- Erlen d