Project

General

Profile

Default tracker problem when fetching emails from IMAP

Added by Fëanor Elthamare almost 14 years ago

Hi,

we want Redmine to fetch emails from IMAP, and it works fine so far. The problem is that we need to receive new issues with the tracker set to "Petición de Cambio", but it is always set to the default "Incidencias".

This is the script we are using:

rake redmine:email:receive_imap RAILS_ENV="production" 
host=my.host.es username=USER password=PASS 
project=repositorio tracker="Petición de Cambio" 
allow_override=project,tracker,priority 
unknown_user=accept unknown_user=create --trace

I've tried without "" and using the ID instead of the name, but nothing seems to work.

I guess it's a problem with the spaces, but how could we solve this?

Thanks.


Replies (6)

RE: Default tracker problem when fetching emails from IMAP - Added by Felix Schäfer almost 14 years ago

Try putting backslashes in front of the blanks.

RE: Default tracker problem when fetching emails from IMAP - Added by Fëanor Elthamare almost 14 years ago

Same result using backslashses. I think that also the accent of "Petición" might be causing the problem.

RE: Default tracker problem when fetching emails from IMAP - Added by Fëanor Elthamare almost 14 years ago

Ok, I've tried using other tracker name with blanks and it works, it doesn't need backslashes, just the quotes.

To solve the accent problem I've tried to edit the batch script using old MS-DOS EDIT, then I get de "ó" displayed correctly, but doesn't work either. I suppose that it's due to the char encoding, but I don't know how to use UTF-8 in a .bat file.

I'm sure I'm doing something wrong.

RE: Default tracker problem when fetching emails from IMAP - Added by Fëanor Elthamare almost 14 years ago

We've decided that the accent wasn't so important, so it's gone and email fetching is working and using the correct tracker.

Anyway, if somebody knows something about this I could use the help.
Thanks.

RE: Default tracker problem when fetching emails from IMAP - Added by Felix Schäfer almost 14 years ago

Try asking on the IRC channel, there might be people there with some clues. I just had a quick look at the code and couldn't find anything that would barf on an ó, so I think it's just the issue of getting the .bat right.

    (1-6/6)